<div dir="ltr">Adding the -e doesn't seem to fix it. <div><br></div><div>I've noticed that I can save a raw H.264 file with gstreamer and then convert that to an MP4 using ffmpeg and it works fine. That seems to indicate that there may be an issue with mp4mux?<div><br><div class="gmail_extra">I can send along the H.264 file if anyone is interested.</div><div class="gmail_extra"><br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
Message: 7<br>
Date: Wed, 13 Jan 2016 10:22:31 +0100<br>
From: Sérgio Agostinho <<a href="mailto:sergio.r.agostinho@gmail.com">sergio.r.agostinho@gmail.com</a>><br>
To: Discussion of the development of and with GStreamer<br>
        <<a href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a>><br>
Subject: Re: h264 recording<br>
Message-ID:<br>
        <CALUX5R0eAt7o5L01XQYpgktA=<a href="mailto:JuuqEkFhEmBupCn-C1avaz%2B-w@mail.gmail.com">JuuqEkFhEmBupCn-C1avaz+-w@mail.gmail.com</a>><br>
Content-Type: text/plain; charset="utf-8"<br>
<br>
See if passing the -e switch in your  mp4mux + filesink pipeline actually<br>
produces a proper file. mp4mux really needs to receive the EOS.<br>
<br>
Cheers<br>
<br>
2016-01-13 2:44 GMT+01:00 Robert Armstrong <<a href="mailto:orangerobot@gmail.com">orangerobot@gmail.com</a>>:<br>
<br>
> I'm continuing to debug an issue w/ recording/streaming H.264 from a<br>
> proprietary UVC USB camera.<br>
><br>
> This works fine:<br>
><br>
> gst-launch-1.0 v4l2src device=/dev/video1 num-buffers=150 ! queue !<br>
>  h264parse ! avimux ! filesink location=foo.avi<br>
><br>
> But this produces a file with only few frames:<br>
><br>
> gst-launch-1.0 v4l2src device=/dev/video1 num-buffers=150 ! queue !<br>
>  h264parse ! mp4mux faststart=true ! filesink location=foo.mp4<br>
><br>
> This has the same issues as the mp4mux:<br>
><br>
> gst-launch-1.0 -e v4l2src device=/dev/video1 !<br>
> video/x-h264,width=1280,height=720,framerate=30/1 ! h264parse ! queue !<br>
> rtph264pay ! udpsink host=192.168.168.121 port=5000<br>
><br>
> If I crank up the debug level on the mp4mux example, the main difference<br>
> seems to be this:<br>
><br>
> 0:00:01.864250954   847  0x9ae0db0 WARN               h264parse<br>
> gsth264parse.c:1205:gst_h264_parse_handle_frame:<h264parse0> broken/invalid<br>
> nal Type: 1 Slice, Size: 20747 will be dropped<br>
> 0:00:01.896477567   847  0x9ae0db0 WARN               h264parse<br>
> gsth264parse.c:1205:gst_h264_parse_handle_frame:<h264parse0> broken/invalid<br>
> nal Type: 1 Slice, Size: 21045 will be dropped<br>
> 0:00:01.932409929   847  0x9ae0db0 WARN               h264parse<br>
> gsth264parse.c:1205:gst_h264_parse_handle_frame:<h264parse0> broken/invalid<br>
> nal Type: 1 Slice, Size: 19627 will be dropped<br>
> 0:00:01.964358670   847  0x9ae0db0 WARN               h264parse<br>
> gsth264parse.c:1205:gst_h264_parse_handle_frame:<h264parse0> broken/invalid<br>
> nal Type: 1 Slice, Size: 19898 will be dropped<br>
> 0:00:01.996332701   847  0x9ae0db0 WARN               h264parse<br>
> gsth264parse.c:1205:gst_h264_parse_handle_frame:<h264parse0> broken/invalid<br>
> nal Type: 1 Slice, Size: 19490 will be dropped<br>
><br>
> The avimux pipeline will only drop one frame over 5 seconds.<br>
><br>
> The same frame dropping happens if I try to stream by connecting h264parse<br>
> to rtph264pay.<br>
><br>
> Any suggestions on how to address? Are there parameters I can use to tune<br>
> mp4mux? Is it possible that avimux is more tolerant of the data it's<br>
> receiving than mp4mux?<br>
><br>
> Thanks in advance!<br>
><br>
> _______________________________________________<br>
> gstreamer-devel mailing list<br>
> <a href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a><br>
> <a href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" rel="noreferrer" target="_blank">http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
><br>
><br>
</blockquote></div><br></div></div></div></div>