<div dir="ltr">Hi All,<div><br></div><div>I have a live source (webcam) that I want to record continuously without losing any video - but also be able to playback everything up to the last minute. I am trying to dump the video to a fifo and then record it from the fifo one minute at a time.</div>
<div><br></div><div>The problem is that it seems there is a problem with the timestamps. It looks like gstreamer expects a clock to be supplied by the filesrc but that doesn't happen. </div><div>Specifically when I try to play the pipe instead of record it, I get choppy video and a warning is emitted about the timestamps.</div>
<div><br></div><div>Does anyone know how I could record an mpeg stream from a fifo?</div><div><br></div><div>For reference, here are the pipelines:</div><div>source pipe:</div><div>gst-launch rtspsrc location="<webcam>" ! rtpmp4vdepay ! filesink location=pipe</div>
<div><br></div><div>record pipe:</div><div>gst-launch filesrc location=pipe ! 'video/mpeg, mpegversion=4, systemstream=false, width=320, height=240. framerate=(fraction)30/1, codec_data=...' ! matroskamux ! filesink location="1.mkv"</div>
<div><br></div><div>play pipe:</div><div>gst-launch filesrc location=pipe ! 'video/mpeg, mpegversion=4, systemstream=false, width=320, height=240. framerate=(fraction)30/1, codec_data=...' ! ffdec_mpeg4 ! ffmpegcolorspace ! autovideosink</div>
<div><br></div><div>Thanks,</div><div> Tomer & Nezer</div><div><br></div><div><br></div></div>