gst-launch received rtsp raw h264 file are not smooth when playing.

Nicolas Dufresne nicolas at ndufresne.ca
Sat Aug 18 15:41:55 UTC 2018


Le sam. 18 août 2018 07:26, eschanti <eschanti at gmail.com> a écrit :

> Dears,
>
> I use such command to receive rtsp stream and save to h264 format file,
>
> gst-launch-1.0 -e rtspsrc location=rtsp://user:passwd@10.10.0.3:554 !
> queue
> ! "application/x-rtp,media=video" !  rtph264depay ! "video/x-h264,
> stream-format=byte-stream" ! filesink location=test.264
>
> When I play it in vlc, it's not smooth, seems like play one frame, pause
> several seconds, and play another.
>
> Then I use
> ffmpeg -f h264 -i test.h264 -vcodec copy test.mp4
> to get the mp4 file and then play, it's ok, very smooth.
>
> I am wondering how to get the smoothly playable .h264 file?
>

Adding a container, like ISOMP4 in your test is the right way. The
container adds the time information needed to smoothly render a video.



> Thanks very much!
>
>
>
> --
> Sent from: http://gstreamer-devel.966125.n4.nabble.com/
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20180818/518f477b/attachment.html>


More information about the gstreamer-devel mailing list