<div dir="auto"><div><br><br><div class="gmail_quote"><div dir="ltr">Le sam. 18 août 2018 07:26, eschanti <<a href="mailto:eschanti@gmail.com">eschanti@gmail.com</a>> a écrit :<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Dears,<br>
<br>
I use such command to receive rtsp stream and save to h264 format file,<br>
<br>
gst-launch-1.0 -e rtspsrc location=rtsp://<a href="http://user:passwd@10.10.0.3:554" rel="noreferrer noreferrer" target="_blank">user:passwd@10.10.0.3:554</a> ! queue<br>
! "application/x-rtp,media=video" !  rtph264depay ! "video/x-h264,<br>
stream-format=byte-stream" ! filesink location=test.264<br>
<br>
When I play it in vlc, it's not smooth, seems like play one frame, pause<br>
several seconds, and play another.<br>
<br>
Then I use <br>
ffmpeg -f h264 -i test.h264 -vcodec copy test.mp4 <br>
to get the mp4 file and then play, it's ok, very smooth.<br>
<br>
I am wondering how to get the smoothly playable .h264 file?<br></blockquote></div></div><div dir="auto"><br></div><div dir="auto">Adding a container, like ISOMP4 in your test is the right way. The container adds the time information needed to smoothly render a video.</div><div dir="auto"><br></div><div dir="auto"><br></div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Thanks very much!<br>
<br>
<br>
<br>
--<br>
Sent from: <a href="http://gstreamer-devel.966125.n4.nabble.com/" rel="noreferrer noreferrer" target="_blank">http://gstreamer-devel.966125.n4.nabble.com/</a><br>
_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org" target="_blank" rel="noreferrer">gstreamer-devel@lists.freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" rel="noreferrer noreferrer" target="_blank">https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
</blockquote></div></div></div>