[FFmpeg-user] Simultaneous streaming and recording

Steven Bell botsnlinux at gmail.com
Fri Mar 29 17:36:52 CET 2013


I have a single live video input which I would like to stream online (via
Justin.tv) and record to my hard drive.  The catch is that I need to record
only short clips which I start and stop manually, without interrupting the
online stream.  My current solution is to have an instance of ffmpeg which
takes the video4linux input and outputs the web stream and an RTP stream on
a local port.  I can then start and stop a second instance of ffmpeg to
record from the RTP stream to disk.

However, this makes a complete mess when packets get dropped or arrive out
of order (which causes the receiving thread to quit).  Is there a better
way to do this?

Thanks!
Steven


More information about the ffmpeg-user mailing list