Freezing video after some time - A lot of buffers are being droped

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

Freezing video after some time - A lot of buffers are being droped

跳至解决方案
8,140 次查看
radojko
Contributor II

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?

标签 (3)
1 解答
4,408 次查看
Yuri
NXP Employee
NXP Employee

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

在原帖中查看解决方案

4 回复数
4,408 次查看
Yuri
NXP Employee
NXP Employee

Please try to add buffering :

vpudec ! queue ! mfw_v4lsink

vpudec ! queue max-size-bytes=0 max-size-time=0 ! mfw_v4lsink

0 项奖励
4,408 次查看
radojko
Contributor II

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

0 项奖励
4,409 次查看
Yuri
NXP Employee
NXP Employee

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

4,408 次查看
radojko
Contributor II

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'

0 项奖励