<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><blockquote style='border-left:2px solid #CCCCCC;padding:0 1em' class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><br>* Set config-interval on h264parse at 1 (second) to make sure it inserts SPS/PPS at each GOP [1] </blockquote><div><br></div><div>This made the trick! Using mpegtsmux now I have playable files!<br><br>Thank you very much for help</div><div><br></div><div>PS<br><br>FYI this is my pipeline:</div><div><br></div><div>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. \</div><div>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. \ </div><div>audiotestsrc wave=4 is-live=true do-timestamp=true ! queue ! mix. \</div><div>liveadder name=mix ! queue ! audioconvert ! voaacenc ! aacparse ! queue ! mux. \ </div><div>mpegtsmux name=mux ! multifilesink next-file=max-size max-file-size=10485760 location=test_%06d.mp4 -e<br></div></div><br clear="all"><div>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</div><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><b>Walter Lucetti</b><br><br>email: <a href="/user/SendEmail.jtp?type=node&node=4683103&i=0" target="_top" rel="nofollow" link="external">[hidden email]</a><br>web: <i><a href="http://www.robot-home.it/" target="_blank" rel="nofollow" link="external">www.robot-home.it</a></i><br></div><div>project:  <a href="http://myzharbot.robot-home.it" target="_blank" rel="nofollow" link="external">http://myzharbot.robot-home.it</a></div><br><a href="http://www.cgsrobotics.it/" target="_blank" rel="nofollow" link="external"></a></div></div></div></div>
</div></div>


        
        
        
<br/><hr align="left" width="300" />
View this message in context: <a href="http://gstreamer-devel.966125.n4.nabble.com/Safe-H264-video-saving-to-file-tp4683065p4683103.html">Re: Safe H264 video saving to file</a><br/>
Sent from the <a href="http://gstreamer-devel.966125.n4.nabble.com/">GStreamer-devel mailing list archive</a> at Nabble.com.<br/>