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? Thanks very much! -- Sent from: http://gstreamer-devel.966125.n4.nabble.com/ _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
Le sam. 18 août 2018 07:26, eschanti <[hidden email]> a écrit : Dears, Adding a container, like ISOMP4 in your test is the right way. The container adds the time information needed to smoothly render a video.
_______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
Ok,but my further question is how to directly play the rtsp stream with one
pipeline. actually we have self developed plugins: /! myh264dec ! queue ! myvideiorawplaysink/ which do h264 decode, and video/x-raw playback. and command gst-launch-1.0 filesrc location=./demo.h264 ! video/x-h264, level=4 ! h264parse /! myh264dec ! queue ! myvideiorawplaysink/ works, but when I replace the src to rtspsrc, as following command, it only plays for the first several seconds and stuck 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" /! myh264dec ! queue ! myvideiorawplaysink/ Any hints? -- Sent from: http://gstreamer-devel.966125.n4.nabble.com/ _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
Le lun. 20 août 2018 16:33, eschanti <[hidden email]> a écrit : Ok,but my further question is how to directly play the rtsp stream with one playbin uri=rtsp://...
Any warning ? GST_DEBUG=3 Does adding h264parse helps ?
_______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
playbin uri=rtsp://... works
but playbin uri=rtsp://... vedio-sink="myvideiorawplaysink/" not smooth either, does it indicate myvideiorawplaysink has some issue? GST_DEBUG=3 just one more INFO: 0:00:00.304302171 2372 0x7f8404b280 FIXME default gstutils.c:3766:gst_pad_create_stream_id_internal:<fakesrc0:src> Creating random stream-id, consider implementing a deterministic way of creating a stream-id and I change to GST_DEBUG=5, after the frame stuck, there are many messages such as: 0:00:09.695598476 2389 0x7f6c002590 DEBUG rtpjitterbuffer gstrtpjitterbuffer.c:3464:wait_next_timeout:<rtpjitterbuffer0> now 0:00:08.836617657 is that relevant? -- Sent from: http://gstreamer-devel.966125.n4.nabble.com/ _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
Free forum by Nabble | Edit this page |