Hi, 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 avconv which takes the video input and outputs the web stream and RTP streams for video and audio on local ports. I can then start and stop a second instance of avconv to record from the RTP streams to disk.
The full command lines I'm using are here: http://pastebin.com/XvKLd2G4 However, this makes a real mess when it starts dropping packets, or when packets arrive out of order. At best, the second avconv can't produce correct output until it sees a keyframe, which leaves a few seconds of garbage video at the beginning of every recorded clip. I have two questions: - Is there a better way to do this? Should I even be using RTP at all? - If this is a good way, what codec and parameters would be good for sending over RTP? Ideally the output would be lossless or nearly so, since I have plenty of disk bandwidth and can re-encode later. Conversely, perhaps being able to strongly compress the video might result in less packet traffic and thus fewer dropped packets? Thanks! Steven
_______________________________________________ libav-tools mailing list [email protected] https://lists.libav.org/mailman/listinfo/libav-tools
