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

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

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

Jump to solution
8,014 Views
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?

Labels (3)
1 Solution
4,282 Views
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

View solution in original post

4 Replies
4,282 Views
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 Kudos
4,282 Views
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 Kudos
4,283 Views
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,282 Views
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 Kudos