Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re^2: Windows Webcam access.

by Steve_BZ (Chaplain)
on Sep 01, 2009 at 11:22 UTC ( [id://792612]=note: print w/replies, xml ) Need Help??


in reply to Re: Windows Webcam access.
in thread Windows Webcam access.

In order to get the slider functions working I am planning to use something like:

ffmpeg -f vfwcap -r 25 -i 0  -f image2 temp_photos\foo_-%03d.jpeg

In order to give me a directory of "frames" without any exclusive lock. This works, although I'm not sure what the highest number is, or what it'll do to my disc fragmentation!

Then I can just do a while loop through them, and they'll look like a video. On exit, I'll do the opposite and recombine them into a video.

However, it's not the most elegant, if I could do it nearer to your method I would, however I do need to write something to a file, because wxMediaCtrl needs a filename or URL

Regards

Replies are listed 'Best First'.
Re^3: Windows Webcam access.
by Corion (Patriarch) on Sep 01, 2009 at 11:55 UTC

    I'm not sure where a slider control can come in helpful, because for me, time is still linear. I'd be very interested if you could show me how to control/adjust the flow of time through a slider, especially if it works in both directions :).

    But if you want to farm out start/stop/rewind of a movie to another control (which is sensible), my approach of reading single frames won't work out unless the control has a way for you to feed it single frames. Maybe you can hand the control a filehandle instead of an URL or a filename, but (pipe) filehandles have the disadvantage of not being seekable...

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://792612]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (7)
As of 2024-04-23 09:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found