I'm using Gstreamer pipeline to play rtsp stream : gst-launch rtspsrc location=rtsp://192.168.180.230:5501/live latency=1000 ! rtph264depay ! vpudec ! mfw_v4lsink
Video quality in beginning is good but after several minutes playback start to freezing - like slow motion video and never back to normal state. From that moment in console output I have many warnings:
WARNING: from element /GstPipeline:pipeline0/MFW_GST_V4LSINK_INFO_T:mfw_gst_v4lsink_info_t0: A lot of buffers are being dropped.
Additional debug info:
gstbasesink.c(2875): gst_base_sink_is_too_late (): /GstPipeline:pipeline0/MFW_GST_V4LSINK_INFO_T:mfw_gst_v4lsink_info_t0:
There may be a timestamping problem, or this computer is too slow.
Does anybody have similar problem?
已解决! 转到解答。
Please try the following :
gst-launch rtspsrc protocols=tcp location=rtsp://dw.edge.wowza.gl-systemhaus.de/liveedge/dw_w_tv-europa_l ! rtph264depay ! vpudec frame-plus = 10 low-latency=true ! queue ! mfw_v4lsink axis-left=0 axis-top=0 disp-width=320 disp-height=240
Thanks Yuri,
it seems local stream works better then online, online stream is not good from start.
Can you check this online stream, for me it's unwatchable on imx6 but on PC/VLC is good:
gst-launch rtspsrc protocols=tcp location=rtsp://dw.edge.wowza.gl-systemhaus.de/liveedge/dw_w_tv-europa_l latency=1000 ! rtph264depay ! vpudec ! queue max-size-bytes=0 max-size-time=0 ! mfw_v4lsink axis-left=0 axis-top=0 disp-width=320 disp-height=240
Please try the following :
gst-launch rtspsrc protocols=tcp location=rtsp://dw.edge.wowza.gl-systemhaus.de/liveedge/dw_w_tv-europa_l ! rtph264depay ! vpudec frame-plus = 10 low-latency=true ! queue ! mfw_v4lsink axis-left=0 axis-top=0 disp-width=320 disp-height=240
Thanks Yuri, online stream is now much better.
Now I have problem with noticeable audio delay if I try to decode video with audio:
gst-launch rtspsrc protocols=tcp location=rtsp://dw.edge.wowza.gl-systemhaus.de/liveedge/dw_w_tv-europa_l name=demux demux. ! queue max-size-buffers=0 max-size-time=0 ! rtph264depay ! vpudec frame-plus = 2 low-latency=true ! mfw_v4lsink axis-left=0 axis-top=0 disp-width=1280 disp-height=720 demux. ! queue max-size-buffers=0 max-size-time=0 ! rtpmp4gdepay ! beepdec ! audioconvert ! 'audio/x-raw-int, channels=2' ! alsasink device='hw:1,0'