Showing posts with label mplayer. Show all posts
Showing posts with label mplayer. Show all posts

Friday, January 14, 2011

Extracting frames from a live stream

Many times, downloading and saving a stream locally is not an option. For example if the stream is a live stream. If you need to extract frames from a stream like this, you need to do it on-the-fly.

A good tool for dumping media content streamed over rtmp is rtmpdump and a good tool for extracting frames from a video is ffmpeg. Luckily for us those two can be piped together, since rtmpdump by default dumps the streamed media content to standard output and ffmpeg provides the option to read the input from a pipe.

To extract one frame per second from a stream try something like this:
rtmpdump -r <rtmp_video_url> | ffmpeg -i pipe:0 -r 1 frame%05d.jpg

Wednesday, November 01, 2006

Mplayer rc1

Mplayer entered in rc state. It must have been more than 2-3 years it was on a pre-release state.
I guess 1.0pre8 must have been the last pre-release version.
8 pre-releases is not that much... Links 2.1 is in pre-release 23 :)