Add video capture feature to CIVideoDemoGL

Hello,
I'm a little bit stuck with the CIVideoDemoGL. How do I add video capture feature to this demo instead of using a file as input?
I know how I capture the video stream from camera and captureOutput:didOutputVideoFrame:withSampleBuffer:fromConnection: is called every time a new frame comes. I can also see a preview of the captured video on screen on the CaptureView.
What I want to accomplish is methods to manipulate video on the fly (as in CIVideoDemoGL) directly from a camera (iSight or likely).
I have tried to change renderCurrentFrame in VideoView.m. Instead of
+inputImage = [CIImage imageWithCVImageBuffer:currentFrame];+ I have made a method that retrieve a CIImage* from VideoController (where I've place every captured frame from camera).
The method call is like this: +[delegate getCurrentCapturedFrame:self data:(CIImage*)inputImage];+
This method initializes the given CIImage with data from the captured frame.
When I run this code I retrieve the following error in console +Program received signal: “EXCBADACCESS”.+
So, something bad is going on but I don't know if I'm on the right way. Maybe it's my method getCurrentCapturedFrame that returns a bad object.
Any ideas?

Hello again,
Thanks for your help. There was something wrong with my code.
During this weekend I have managed to get captured video playing. But the video is almost black and white and if you zoom into it you can see red blue and green vertical lines. Even if I remove the filters I can see this happen. If I compare the video with the Capture view that I have implemented beside the OpenGL View I can see all colors on the first one. Any ideas?
I have modified the original renderCurrentFrame to the following:
- (void)renderCurrentFrame
NSRect frame = [self frame];
NSRect bounds = [self bounds];
CGRect imageRect;
CIImage *inputImage;
CIImage *timecodeImage;
// update timecode overlay
timecodeImage = [timeCodeOverlay getImageForTime:[self currentTime]];
if(!readyToGrabFrame)
return;
//Put captured image into inputImage
inputImage = [CIImage imageWithCVImageBuffer:mCurrentImageBuffer];
imageRect = [inputImage extent];
[colorCorrectionFilter setValue:inputImage forKey:@"inputImage"];
[effectFilter setValue:[colorCorrectionFilter valueForKey:@"outputImage"] forKey:@"inputImage"];
[compositeFilter setValue:[effectFilter valueForKey:@"outputImage"] forKey:@"inputBackgroundImage"];
[compositeFilter setValue:timecodeImage forKey:@"inputImage"];
CGPoint p = CGPointMake((int)((frame.size.width - imageRect.size.width) * 0.5), (int)((frame.size.height - imageRect.size.height) * 0.5));
// render our resulting image into our context
[ciContext drawImage:[compositeFilter valueForKey:@"outputImage"]
atPoint:p
fromRect:imageRect];
// housekeeping on the visual context
QTVisualContextTask(qtVisualContext);
My captureOutput:didOutputVideoFrame:withSampleBuffer:fromConnection is moved to VideoView class instead and I have also created an object that keeps the captured buffer with the name mCurrentImageBuffer
The method looks like this now:
- (void)captureOutput:(QTCaptureOutput *)captureOutput didOutputVideoFrame:(CVImageBufferRef)videoFrame withSampleBuffer:(QTSampleBuffer *)sampleBuffer fromConnection:(QTCaptureConnection *)connection
countFrames++;
[lock lock];
CVImageBufferRef releasedImageBuffer;
CVBufferRetain(videoFrame);
@synchronized(self)
//basically, have frame to be released refer to the current frame
//then update the reference to the current frame with the next frame in the "video stream"
releasedImageBuffer = mCurrentImageBuffer;
mCurrentImageBuffer = videoFrame;
CVBufferRelease(releasedImageBuffer);
readyToGrabFrame = YES;
[lock unlock];

Similar Messages

  • Screen Video Capture in Windows 8.1?

    Hi!
    did Windows 8.1 provide any screen video capturing features?
    Regards,

    MS Expression Encoder may suit your needs, and is a free download:
    http://www.microsoft.com/en-us/download/details.aspx?id=24601
    it is listed as compatible, for Win8.1:
    http://www.microsoft.com/en-au/windows/compatibility/CompatCenter/ProductViewerWithDefaultFilters?TempOsid=Windows%208.1&Locale=en-au&Architecture=X64&TextSearch=expression%2Bencoder%2B4&Type=Both&CurrentPage=0&TotalPages=1&ShowCriteria=0&SortCriteria=Relevance&Compatibility=Unknown&LastRequested=14
    Don
    (Please take a moment to "Vote as Helpful" and/or "Mark as Answer", where applicable.
    This helps the community, keeps the forums tidy, and recognises useful contributions. Thanks!)

  • Add Video without Library Replacement??

    I don't think this is possible, but it doesn't hurt to ask.
    I have a large music and video collection on a G5 desktop that I use as my main iTunes collection. I sync my 5G iPod with that desktop. I also have a PowerBook G4 that I use for travel, that I keep a much smaller collection of tunes on just for syncing with a mini when I travel.
    Here's my question. I'm on the road and would like to download last night's episode of "Lost" to watch on my 5g. Is there anyway to add the episode to the iPod without having to replace my entire library that is already on the iPod from my desktop?
    Thanks

    You can dissolve to a clip that's not on the primary storyline. You can also connect the clip and then overwrite it into the primary.
    the add Video only feature is broken
    How are you doing this? Insert will not wipe out what's in the timeline. Are you doing an overwrite from the browser? Don't. It overwrites, video and audio. The video and audio are a single track on the primary unless you detached the audio.

  • Add video without shift?

    Weird.... I've been using FCPX for months, and after upgrading to 10.0.2, I can't seem to simply place a shot over top of other video without it shifting the entire timeline.
    I have a talking head and want to dissolve to another shot. But when I add the shot (without audio) to the timeline, it shifts the audio as well, so after the shot, the audio is no longer in sync with the talking head. I don't want to use the Connect option because I need to dissolve to the shot, so it has to be in the primary storyline.
    So how do I cover the talking head without shifting the timeline???

    You can dissolve to a clip that's not on the primary storyline. You can also connect the clip and then overwrite it into the primary.
    the add Video only feature is broken
    How are you doing this? Insert will not wipe out what's in the timeline. Are you doing an overwrite from the browser? Don't. It overwrites, video and audio. The video and audio are a single track on the primary unless you detached the audio.

  • Video capture and system properties

    Hello,
    Two questions on mmapi and video capture:
    1. On a Samsung SGH-A707 phone, I get a return of 'false' when running
    System.getProperty("supports.video.capture"), indicating that it won't
    allow video capture thru mmapi. However, when running
    System.getProperty("video.encodings"), it returns
    'encodings=video/H263'. Isn't this a contradiction? If it doesn't
    support capture, why would it show an encoding? Does the return of false
    absolutely mean that the phone doesn't support video capture?
    What am I missing?
    2. On an LG CU500, I get a return of 'true' when running
    System.getProperty("supports.video.capture"), indicating that it will
    allow video capture thru mmapi. However, running
    System.getProperty("video.encodings"), it returns 'encodings=jpeg'. How
    is jpeg a video encoding? Isn't this only for snapshots? Do they mean
    motion-jpeg?
    These are both new-ish phones, and both support video capture natively
    (outside of java).
    Last question: How widespread is support for video capture thru j2me?

    Hello there,
    And welcome to Apple Discussions!
    I have recently bought a fifth generation ipod, and have used the video capture feature.
    First of all, this should have been posted in the +5th generation iPod Nano+ forum instead of the *5th generation iPod Video* one. Here is the link to this forum for future references.
    http://discussions.apple.com/category.jspa?categoryID=265
    When I sync the ipod to itunes on my mac, will I lose this video capture?
    No. Videos you take on your iPod have to manually be removed from the iPod either through the iPod itself or by opening up the necessary folders and files on your iPod through Windows Explorer.
    And if so, how can I sync the ipod to a new itunes library without losing the video recording I did on the ipod?
    Why would you need to worry about this? Was your nano previously synced with another iTunes library? If not, all you should have to do is hook it up to the new iTunes library and you should be good to go. For instructions on how to remove videos from your iPod, see pages 55-56 of your iPod's manual, which can be found below.
    http://manuals.info.apple.com/enUS/iPod_nano_5th_genUserGuide.pdf
    Hope this helps.
    B-rock

  • Video capture and computer sync

    Hi,
    I have recently bought a fifth generation ipod, and have used the video capture feature.
    When I sync the ipod to itunes on my mac, will I lose this video capture?
    And if so, how can I sync the ipod to a new itunes library without losing the video recording I did on the ipod?

    Hello there,
    And welcome to Apple Discussions!
    I have recently bought a fifth generation ipod, and have used the video capture feature.
    First of all, this should have been posted in the +5th generation iPod Nano+ forum instead of the *5th generation iPod Video* one. Here is the link to this forum for future references.
    http://discussions.apple.com/category.jspa?categoryID=265
    When I sync the ipod to itunes on my mac, will I lose this video capture?
    No. Videos you take on your iPod have to manually be removed from the iPod either through the iPod itself or by opening up the necessary folders and files on your iPod through Windows Explorer.
    And if so, how can I sync the ipod to a new itunes library without losing the video recording I did on the ipod?
    Why would you need to worry about this? Was your nano previously synced with another iTunes library? If not, all you should have to do is hook it up to the new iTunes library and you should be good to go. For instructions on how to remove videos from your iPod, see pages 55-56 of your iPod's manual, which can be found below.
    http://manuals.info.apple.com/enUS/iPod_nano_5th_genUserGuide.pdf
    Hope this helps.
    B-rock

  • Creative Cloud Video Sharing Features

    Hi there,
    I run a boutique video production company and I'm a CC subscriber. Does anyone know if Adobe is looking to add video sharing features like they have for PSD, AI, and Web Designs?
    For me it would be great to show a client a rough cut via Adobe's site and get comments through the site as opposed to an FTP upload and bouncing emails back and forth.
    Thanks!
    A.

    This feature of sharing video is not yet part of creative cloud.
    However we take this as a feedback for continous improvement for CCM.
    Please feel free to log the same as a feature request in the form given in the link below:
    https://www.adobe.com/cfusion/mmform/index.cfm?name=wishform
    Thanks
    Mandhir

  • How to add a 'Download' feature in image and video gallery?

    Hello,
    I have created an image gallery on one screen and placed few videos on another screen.
    Now, I want to add a download feature in photos & footages both.
    Does anyone know how so I do that?
    Prompt response will be highly appreciated.
    Thanks in advance.
    Jay

    Hi,
    Could you please provide additional information on what you mean by Download feature ? Where do you want to download these images and video from ?
    Olivier

  • Video capture add-on problem

    Background: hardware- newly built computer- Celeron D 3.33GHz, Windows 7 64 bit (legal purchase)
    software: Mozilla Firefox 27.0.1 downloaded from Mozilla, installer file=Firefox Setup Stub 27.0.1
    Problem:
    Firefox operates fine until I install a video capture add-on like Easy Youtube Video Downloader or Youtube and More-Easy Video Downloader from the Mozilla site.
    Once one of these are installed I get lots of windows popping open everytime I go near a site with videos. One window's URL started with jsf.jsticket.net..... and asks to download some software. Multiple windows have opened with all sort of software download/install links.
    I have uninstalled Firefox using RevoUninstaller and tried installing again using a freshly downloaded Firefox installer. When I put in one of these add-ons things go bad again.
    I have run a security sweep in Safe Mode-proceedure outlined at http://securitytango.com/windows.php
    software run in Safe Mode not attached to internet:
    Rkill
    Unhide
    TDSSKiller
    Stinger
    SuperAntiSpyware (update it first)
    Malwarebytes' Anti-Malware (update it first)
    antivirus program (update it first)
    There was now virus or malware detected.
    I'm going a bit crazy because I have another machine running with Windows 7 & Firefox 27.0.1 with Youtube and More-Easy Video Downloader 1.97.25 and it works just fine.
    Can anyone suggest a solution to this problem. Any help will be greatly appreciated.
    Dave

    We can't check if you have any malicious extensions without a list (this information is normally provided by the Troubleshooter add-on, which you declined to install).
    # Type ''about:support'' into the address bar and press Enter.
    # Copy the entire Extensions category to the clipboard.
    # Paste the clipboard contents into a reply here.
    ''dottney wrote:''
    Firefox operates fine until I install a video capture add-on like Easy Youtube Video Downloader or Youtube and More-Easy Video Downloader from the Mozilla site.
    Are you referring to the following two add-ons from the Firefox Add-ons site? They've both been fully reviewed and have user bases numbering in the hundreds of thousands. The odds of either containing malware should be slim to none.
    * https://addons.mozilla.org/firefox/addon/easy-youtube-video-download/
    * https://addons.mozilla.org/firefox/addon/video-downloader-pure/

  • Open plea to Apple re video capture

    Dear Apple,
    The election coming up is hugely important and there are a lot of worries about irregularities taking place, both with people being allowed to vote and with the voting technology itself. Video capture with the iPhone would make it possible for millions of people to document any situations that come up at the polling place, and help insure transparency in the process. Would you please either add that capability to the iPhone software, or allow app developers to offer it?
    Thanks,
    Uri W

    Hello Uri W.
    As stated by another poster. This is a user to user forum. And we all volunteer and assist with technical questions you may have.
    If you ever have any feature requests, bug reports, ideas, or general feedback to Apple. The link posted below is the best please to submit such info.
    Since this relates to iPhone the iPhone feedback page is below. But I also listed the general feedback page as well.
    http://www.apple.com/feedback/iphone.html
    http://www.apple.com/feedback/

  • Adobe premiere elements 12 with diamond vc500 one touch video capture device.

    Adobe premiere elements 12 and using Diamond vc500 one touch video capture device.
    AVI files will not load into Adobe premiere elements 12.
    I bought what I thought were the two best software and capture devices.
    I am archiving old VHS tapes and using Diamond vc500 capture software called EZ grabber. I thought the best archiving format would be AVI files. As I just started this project. I am willing to do what is needed.
    That even being, going and buy another capture device that being for a VCR to PC using a USB are even a Video card.
    EZ grabber software ask you to record in what format. I picked AVI. There is DVD - SVCD - VCD - MPG4. I want to archive then go back and edit. The DVD or SVCD format, is that not the same as mpeg 2?
    You and I know the drill. Saving in what long term archive format and that dare thing about video compression and losing quality of the videos. Its all a nightmare.
    Once again I am willing to buy another capture device for a VCR that will work with Adobe premiere elements 12.
    Help please with long term archiving format and capture device.
    Thanks

    The answer is B.
    Capturing the VHS content to computer (via the Diamond vc500 and USB connection and EZ grabber) to obtain an .avi file on your computer and then trying to import that into Premiere Elements with its Add Media/Files and Folders?
    When I do that, the Adobe premiere elements 12 crashes or only loads a 2 mins of video.
    The firewire connection device "Canopus" product sounds great. But I really don't want to spend that much on my home videos. My PC does not have a Firewire connection. So add a new card for that and the Canopus product. I could just pay someone to do my VHS tapes.
    Diamond vc500 $35
    Adobe premiere elements 12 $65
    Firewire card $50 plus
    Canopus $180
    $330 is way too much for simple home VHS videos

  • How do get rid of an addon when it's not listed in the Addons? It's a video capture app and (small red circle on the bar) . Help!

    I can't remember the name of the addon, it looks like a small red dot on my toolbar. I know that you need to install CSHelper extension in order for the video capture to work.
    I don't want to software but as I stated before the addon isn't listed in the Addon section and if it is I don't see it.
    I really don't want to have to uninstall it Firefox and reinstall it but I will as a last resort. :(
    Any help would be appreciated.

    Could be "Download Helper" (Video Download Helper). It has a screen capture option and that option requires CSHelper.
    *Info about the screen capture option of this add-on here - http://www.downloadhelper.net/screen-capture.php

  • 1080p live video capture from camcorder to MacBook

    Is there a device or adapter that will connect the 1080p from a video camcorder's HDMI out to a MacBook's thunderbolt or usb port with QuickTime receiving the camcorder's video and audio when "New Movie Recording" is selected from that application?
    Or more succinctly, can I turn my 1080p camcorder into a webcam?
    Camcorders have better image quality than webcams (okay, maybe not necessarily JVC, but Canon's do) and more features, such as 38x zoom.   And my MacBook has a much nicer and bigger screen than that little LCD fold-out piece all camcorders have.   So combining the superior video capture of the camcorder with the superior display capability of the MacBook along with the advantage of live recording directly to the MacBook's harddrive (no intermediate SD card file transfer step from device to device) would result in an enhanced video capturing experience.   All that is required is some adapter that will take HDMI from the camera and translate it into something the MacBook will see as a webcam (usb or thunderbolt).   So where do I find such an adapter?

    What brand and model is your camcorder?
    From this we can determine what format it outputs in, because you capture with the output format from your camcorder. You then, after editing, use PRE to Share your project as MPEG2.
    These are the import video sources supported by PRE:
    If your camcorder manual is telling you that it outputs MPEG2 (this is a standard definition format) try the 'DVD Camcorder or PC DVD Drive' format.
    Cheers,
    Neale
    Insanity is hereditary, you get it from your children

  • Qosmio F30-140: How to make composite-in or video-in feature working

    Hi,
    I was using windows XP MC version, but now I switched to windows 7 64-bit version and I don't know how to make the composite-in or the video-in feature work.
    Does win-7 driver support this feature! or I need to use a certain software to make use of it?!
    Another thing I'm missing in this new windows version is the Dolby effects equalizer.
    Could any body tell me how to add this option to my sound card device or send me a driver that has this option.
    Thanks in advance.

    Hi
    As far as I know there is not full Win 7 support for F30 Qosmio.
    I found some Win 7 32bit drivers on the driver page but there are no 64bit drivers.
    There are Vista 64bit drivers check it!
    The Sigma sound driver has been released for Windows Vista 64 Bit. Try it!
    The composite-in or video-in port can be used in order to receive video signals from some external devices. For example you can connect a Xbox to the F30 and can use it in connection with Windows Media Center.
    http://www.microsoft.com/windows/windows-media-center/default.aspx
    You can also conenct an camcorder or similar devices.

  • Adobe Connect 9 compatible Video Capture Card

    We have used an Osprey 260e Capture card successfully with version 8.  Unfortuantely this card does not work with the Adobe Connect 9 add-in.  Is there anyone in this community that has a decent capture card that works fine with Adobe Connect 9?  Thanks in advance for your help!

    Our Osprey 230 cards worked fine when Connect 9.0 was first released, but now we only get a black screen with Adobe Connect 9.02. Incredibly irritating. I've installed EZCap USB video capture devices until Adobe gets this fixed. Buy on eBay or go to http://ezcap.tv

Maybe you are looking for

  • Invoices for free of cost material

    Hi All, We are creating a delivery for free of cost material. while creating a billing document using T. Code VF01 with reference to delivery, i can create multiple invoices with reference to same delivery. How cani block creating the multiple invoic

  • Every day in calender is marked as if there is an event?

    Hello from Germany, since I created recuring events for all birthdays of friends and family in Outlook 2003, in calender every day is marked with this dot, even when there is no event? Thanks

  • Transform claim value (personalidentitynumber) ADFS 3.0

    Hi, If i want to send a personal identity nr as a claim to a web application, is it possible to remove the year-part of the number when sending the claim. For example if the attribute has a value of 191212121212 i would like to send it as 1212121212.

  • An error occurred while starting "Web Cache".

    We have corrected the issue. There was something wrong with the files in the WebCache Folder. Hello, When starting Web Cache we get the following message: An error occurred while starting "Web Cache". WebCache : WebCache - failed to start a managed p

  • Partitions

    Hi all, db:oracle 9.2.0.4 os:solaris 10 we have a 100 + datawarehouse tables. each table is having size of 20 + Gb ,all are partitioned. how to get the below info on oracle partitions. partition name,max value,length,tablespace,compression,rows,block