Safe H264 video saving to file

Yurii Monakov monakov.y at gmail.com
Thu May 25 13:50:18 UTC 2017


IIRC, multifilesink with max-size policy does not preserve key frame
boundaries.

2017-05-25 12:49 GMT+03:00 Myzhar <myzhar at gmail.com>:

>
>> * Set config-interval on h264parse at 1 (second) to make sure it inserts
>> SPS/PPS at each GOP [1]
>
>
> This made the trick! Using mpegtsmux now I have playable files!
>
> Thank you very much for help
>
> PS
>
> FYI this is my pipeline:
>
> gst-launch-1.0 udpsrc do-timestamp=true multicast-iface=eth0
> multicast-group=239.0.0.11 auto-multicast=true port=16001 !
> "application/x-rtp, encoding-name=H264, payload=96" ! rtph264depay !
> h264parse config-interval=1 ! queue ! mux. \
> udpsrc do-timestamp=true multicast-iface="LAN_Console"
> multicast-group=239.0.0.11 auto-multicast=true port=16002 !
> "application/x-rtp, media=audio, clock-rate=44100, encoding-name=MP4A-LATM,
> cpresent=(string)0, config=(string)40002420, payload=97" ! rtpmp4adepay !
> aacparse ! avdec_aac ! audioconvert ! queue ! mix. \
> audiotestsrc wave=4 is-live=true do-timestamp=true ! queue ! mix. \
> liveadder name=mix ! queue ! audioconvert ! voaacenc ! aacparse ! queue !
> mux. \
> mpegtsmux name=mux ! multifilesink next-file=max-size
> max-file-size=10485760 location=test_%06d.mp4 -e
>
> I mix my audio UDP source with a "silent" stream (audiotestsrc wave=4) to
> be sure that video recording does not stop even if the audio stream is
> stopped/changed
>
> --
> *Walter Lucetti*
>
> email: [hidden email]
> <http:///user/SendEmail.jtp?type=node&node=4683103&i=0>
> web: *www.robot-home.it <http://www.robot-home.it/>*
> project:  http://myzharbot.robot-home.it
>
> <http://www.cgsrobotics.it/>
>
> ------------------------------
> View this message in context: Re: Safe H264 video saving to file
> <http://gstreamer-devel.966125.n4.nabble.com/Safe-H264-video-saving-to-file-tp4683065p4683103.html>
> Sent from the GStreamer-devel mailing list archive
> <http://gstreamer-devel.966125.n4.nabble.com/> at Nabble.com.
>
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20170525/8e6d54d3/attachment.html>


More information about the gstreamer-devel mailing list