H264 stream to MP4 file without the first bytes on the H264 stream
ivan-perez
ivan at encore-lab.com
Tue Feb 14 09:45:27 UTC 2017
Tim Müller wrote
> On Sun, 2017-02-05 at 11:45 -0800, ivan-perez wrote:
>
> Hi,
>
>> For clarification, the H264 stream comes from the Raspberry camera,
>> and I directly pipe it into two GStreamer instances:
>>
>> * One instance is running all the time, as it takes care of producing
>> a RTP stream which clients may see at any time.
>> * Another instance only runs if some conditions are met (for example,
>> after some detection movement). In that case, I want to save a video
>> of 30 seconds (in MP4). My idea is to use the stream directly taken
>> from the Raspberry camera, but at the moment it doesn't work because
>> -I think- in order to work properly it'd need the first bytes of the
>> stream, which may contain some headers.
>
> You could also use rpicamsrc from
>
> https://github.com/thaytan/gst-rpicamsrc
>
> (which is preferably to raspivid) and run both things in the same
> application?
>
> e.g. here's a pipeline that can start/stop recording a stream (with a
> few seconds of backlog even) on demand:
>
> https://people.freedesktop.org/~tpm/code/test-backlog-recording-h264.c
>
> Just have to switch out the bit at the beginning with rpicamsrc.
>
> Cheers
> -Tim
>
> --
> Tim Müller, Centricular Ltd - http://www.centricular.com
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at .freedesktop
> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Thanks for your reply, Tim. It looks very promising! I'm going to check it
right now.
Kind regards
--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/H264-stream-to-MP4-file-without-the-first-bytes-on-the-H264-stream-tp4681699p4681878.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.
More information about the gstreamer-devel
mailing list