Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: Webcam Streaming to Perl/Tk with ffmpeg

by liverpole (Monsignor)
on Sep 02, 2009 at 00:25 UTC ( #792775=note: print w/replies, xml ) Need Help??


in reply to Webcam Streaming to Perl/Tk with ffmpeg

Hi Kirsle,

I did something similar to this a while back ... In Search of a Better Mousetrap.

It uses a capture program called "Fwink" for capturing the images, sends them over a network to a different computer, and lets you watch what's happening remotely.  It has a maximum throughput of 1 image per second (the limit is imposed by Fwink).

Hopefully it can give you some ideas.


s''(q.S:$/9=(T1';s;(..)(..);$..=substr+crypt($1,$2),2,3;eg;print$..$/
  • Comment on Re: Webcam Streaming to Perl/Tk with ffmpeg

Replies are listed 'Best First'.
Re^2: Webcam Streaming to Perl/Tk with ffmpeg
by Kirsle (Pilgrim) on Sep 02, 2009 at 18:00 UTC

    I know about Fwink from back when I used to use Windows more than any other OS... it was one of the first webcam programs I found for Win32 that aren't instant messengers.

    However, the overhead of Fwink (having to send the picture over the network, or saving it to disk first) doesn't make for very easy "streaming" - at the very least the Perl script would need to watch the jpg file on disk for change and have to open/close it over and over to update the Tk image. If Fwink had an option to send the jpegs through standard output it'd be a different story. :)

      Hi Kirsle, I need the perl script which stream video from server to any mobile device which contains that particular format please mail me a sample code for streaming a video on PC please Thanks, prasad
    A reply falls below the community's threshold of quality. You may see it by logging in.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (5)
As of 2021-10-21 15:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My first memorable Perl project was:







    Results (83 votes). Check out past polls.

    Notices?