<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On 6 May 2014 18:17, Tim Müller <span dir="ltr"><<a href="mailto:tim@centricular.com" target="_blank">tim@centricular.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<div class="">On Tue, 2014-05-06 at 16:16 -0400, Luis de Bethencourt wrote:<br>
<br>
> Not sure if this is possible.<br>
> Not sure if you can mux again the h264 considering<br>
> timestamps/keyframes change very easily.<br>
> Please somebody correct me if I am wrong.<br>
<br>
</div>Why would it not work? It should work just fine.<br>
<br>
This seems to work for me with 1.2.4:<br>
<br>
 $ gst-launch-1.0 videotestsrc ! x264enc ! rtph264pay config-interval=10<br>
pt=96 ! udpsink host=127.0.0.1 port=5001 &<br>
<br>
 $ gst-launch-1.0 -v -e udpsrc address=127.0.0.1 port=5001<br>
caps='application/x-rtp, media=(string)video, clock-rate=(int)90000,<br>
encoding-name=(string)H264' ! rtpjitterbuffer ! rtph264depay !<br>
h264parse ! mp4mux ! filesink location=/tmp/rtp.mp4<br></blockquote><div><br></div><div>I was wrong. That is very cool!<div><br></div><div>Thanks Tim.</div><div><br></div><div>Luis</div></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">

<br>
Might take a few seconds for things to start on the receiver (lower<br>
config-interval on the sender to make that faster).<br>
<br>
Important is the -e argument here, to make sure that the .mp4 file gets<br>
finalized properly when you stop the receiver with Control-C.<br>
<br>
Cheers<br>
 -Tim<br>
<div class=""><div class="h5"><br>
> On 6 May 2014 06:07, digi <<a href="mailto:griesel@me.com">griesel@me.com</a>> wrote:<br>
>         Hey guys,<br>
><br>
>         *tx:* gst-launch-1.0 filesrc location=input.h264 !<br>
>         video/x-h264,width=640,height=480,framerate=30/1 ! h264parse !<br>
>         rtph264pay<br>
>         config-interval=10 pt=96 ! udpsink host=127.0.0.1 port=5001<br>
><br>
>         *rx:* gst-launch-1.0 -v udpsrc port=5001<br>
>         caps='application/x-rtp,<br>
>         media=(string)video, clock-rate=(int)90000,<br>
>         encoding-name=(string)H264' !<br>
>         rtph264depay !<br>
>         video/x-h264,width=640,height=480,framerate=30/1 ! h264parse<br>
>         ! mp4mux ! filesink location=output.mp4<br>
><br>
>         The rx command gave me:<br>
>         0x7f908c0cda30 WARN qtmux<br>
>         gstqtmux.c:2116:check_and_subtract_ts:<mp4mux0><br>
>         Subtraction would result in negative value, using 0 as result<br>
><br>
>         What is the right way to convert raw h264 data into mp4 files<br>
>         without<br>
>         re-encoding?<br>
><br>
>         Thanks,<br>
>         Digi<br>
><br>
><br>
><br>
>         --<br>
>         View this message in context:<br>
>         <a href="http://gstreamer-devel.966125.n4.nabble.com/RAW-H264-to-MP4-tp4666761.html" target="_blank">http://gstreamer-devel.966125.n4.nabble.com/RAW-H264-to-MP4-tp4666761.html</a><br>
>         Sent from the GStreamer-devel mailing list archive at<br>
>         Nabble.com.<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" target="_blank">http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
><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" target="_blank">http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
<br>
</div></div><span class=""><font color="#888888">--<br>
Tim Müller, Centricular Ltd - <a href="http://www.centricular.com" target="_blank">http://www.centricular.com</a><br>
</font></span><div class=""><div class="h5"><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" target="_blank">http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
</div></div></blockquote></div><br></div></div>