I've used an external webcam before for a project, but it was a
network camera that supported video streaming. I found it easiest to
get it working in quicktime first - if you can get the stream playing
in quicktime it should work in QC too, and quicktime removes the
possibility that something else is wrong in your composition and you
waste days thinking it's the camera.

What you have to do is get the UNC path for the video stream. For my
camera it was rtsp://(ip address)/video.mp4 In quicktime you can test
if the stream is compatible by going file->open location and adding
the path there.

Then in QC, you just feed that path to the Movie Importer.

It'll show the quicktime logo while it connects and then start
streaming. If you're recording, you'll want to remove the logo from
the recorded output, and you'll want to detect + fix connection
interruptions - this gave me huge headaches! The quicktime logo is in
low resolution, so it's likely the output resolution will change when
the actual streaming starts. That's easy to detect and handle.

If there's a connection interruption (likely with a network camera!)
then in some cases it'll automatically handle it, in others it'll just
continue outputting the last frame forever. I handled this by using a
2-member queue and a core image filter to get the difference between
the current and last frames (the filter is something like "output =
abs(currentFrame - lastFrame)"). I then used the Area Maximum patch to
get the highest value, and an Image Pixel to get the actual value. A
video stream will always have a non-zero value, so if you detect a
zero you can reset the movie importer (it has a Reset Signal that will
restart the stream).

Hope that helps a bit!

Chris


On 6 January 2012 11:02, Charlie Francis <charl...@cellcastonline.com> wrote:
> Hi guys,
>
> I was just wondering if it's possible to be able to pull in an external
> webcam stream and display it through quartz. I have tried to use Quicktime
> Broadcaster, but I keep getting a connection error whenever I try and start
> broadcasting. Windows users need to be able to broadcast to it as well.
>
> I've had a look through Kineme's forum but can't find anything helping me
> display the stream.
>
> Thanks!
>
>  _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Quartzcomposer-dev mailing list      (Quartzcomposer-dev@lists.apple.com)
> Help/Unsubscribe/Update your Subscription:
> http://lists.apple.com/mailman/options/quartzcomposer-dev/psonice%40gmail.com
>
> This email sent to pson...@gmail.com
>
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Quartzcomposer-dev mailing list      (Quartzcomposer-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/quartzcomposer-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to