Safe H264 video saving to file
Myzhar
myzhar at gmail.com
Thu May 25 09:49:59 UTC 2017
>
>
> * 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: myzhar at gmail.com
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: http://gstreamer-devel.966125.n4.nabble.com/Safe-H264-video-saving-to-file-tp4683065p4683103.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20170525/3b5e16d5/attachment.html>
More information about the gstreamer-devel
mailing list