How to play mpeg4 dump (in a fifo)

Tomer Margalit tomer.margalit at videocells.com
Mon Nov 28 06:06:55 PST 2011


Hi All,

You can ignore the question -- I have found the solution - gdp{pay,depay}.
However I have switched to a better mechanism shm{src,sink}.

Thanks,
  Tomer

On Mon, Nov 28, 2011 at 1:34 PM, Nezer Zaidenberg <nezer at videocells.com>wrote:

> Hi All,
>
> 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.
>
> 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.
> Specifically when I try to play the pipe instead of record it, I get
> choppy video and a warning is emitted about the timestamps.
>
> Does anyone know how I could record an mpeg stream from a fifo?
>
> For reference, here are the pipelines:
> source pipe:
> gst-launch rtspsrc location="<webcam>" ! rtpmp4vdepay ! filesink
> location=pipe
>
> record pipe:
> 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"
>
> play pipe:
> 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
>
> Thanks,
>   Tomer & Nezer
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20111128/9c16802b/attachment.html>


More information about the gstreamer-devel mailing list