Export to GitHub

spydroid-ipcamera - issue #48

VLC: picture is too late to be displayed


Posted on Jun 13, 2012 by Swift Ox

What steps will reproduce the problem? 1. Capturing video by VLC

What is the expected output? What do you see instead? choppy video

What version of the product are you using? On what operating system? SpyDroid 3.4.1 VLC 2.0.0 Twoflower Windows 7 x64

Please provide any additional information below. found on the forum: maybe connected to HT processors no problem with previous versions of SpyDroid

Comment #1

Posted on Jun 13, 2012 by Swift Ox

Add: the same issue with earlier versions, but less choppy video

Comment #2

Posted on Jun 14, 2012 by Helpful Camel

Yep, i really don't know how to solve that one :/

Two little clues: - Video is less choppy with MPlayer - You can try to increase the buffer size in vlc with --network-caching=, default buffer is 1000ms long.

Comment #3

Posted on May 16, 2013 by Grumpy Kangaroo

I ran into the same problem and spent some time in wireshark to figure out what was wrong.

1 The measured time between frames was very inconsistent. Example debugging below. Since this value was used for the rtp timestamp value, vlc displays the frames at time intervals that make it look very choppy.

D/H263Packetizer(25949): End of frame ! duration: 983 D/H263Packetizer(25949): End of frame ! duration: 1 D/H263Packetizer(25949): End of frame ! duration: 7 D/H263Packetizer(25949): End of frame ! duration: 6 D/H263Packetizer(25949): End of frame ! duration: 0 D/H263Packetizer(25949): End of frame ! duration: 0 D/H263Packetizer(25949): End of frame ! duration: 0 D/H263Packetizer(25949): End of frame ! duration: 0 D/H263Packetizer(25949): End of frame ! duration: 0 D/H263Packetizer(25949): End of frame ! duration: 0 D/H263Packetizer(25949): End of frame ! duration: 0 D/H263Packetizer(25949): End of frame ! duration: 0 D/H263Packetizer(25949): End of frame ! duration: 0 D/H263Packetizer(25949): End of frame ! duration: 0 D/H263Packetizer(25949): End of frame ! duration: 0 D/H263Packetizer(25949): End of frame ! duration: 0 D/H263Packetizer(25949): End of frame ! duration: 2 D/H263Packetizer(25949): End of frame ! duration: 0 D/H263Packetizer(25949): End of frame ! duration: 0 D/H263Packetizer(25949): End of frame ! duration: 1 D/H263Packetizer(25949): End of frame ! duration: 932

2 After a minute of running or so, vlc would not continue to play the stream and it would output this error.

avcodec decoder error: more than 5 seconds of late video -> dropping frame (computer too slow ?)

I made changes to the H263Packetizer run function to make the frame timing more consistent so that it appears to run smoothly. I'm not sure if this will work for everyone but it worked for me in fixing both the problems above. See attached.

Attachments

Comment #4

Posted on May 17, 2013 by Helpful Camel

Dude, you are using a terribly old version of spydroid, this issue has been fixed a long time ago !

Comment #5

Posted on May 24, 2013 by Grumpy Kangaroo

lol, you are correct sir

Status: New

Labels:
Type-Defect Priority-Medium