findxain / spydroid-ipcamera

Automatically exported from code.google.com/p/spydroid-ipcamera
GNU General Public License v3.0
0 stars 0 forks source link

VLC: picture is too late to be displayed #48

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
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

Original issue reported on code.google.com by piRoman9...@gmail.com on 13 Jun 2012 at 2:43

GoogleCodeExporter commented 8 years ago
Add:
the same issue with earlier versions, but less choppy video

Original comment by piRoman9...@gmail.com on 13 Jun 2012 at 2:57

GoogleCodeExporter commented 8 years ago
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=<size in ms>, default buffer is 1000ms long.

Original comment by FyHertz on 14 Jun 2012 at 6:04

GoogleCodeExporter commented 8 years ago
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. 

Original comment by Joben...@gmail.com on 16 May 2013 at 8:13

Attachments:

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

Original comment by FyHertz on 17 May 2013 at 1:04

GoogleCodeExporter commented 8 years ago
lol, you are correct sir

Original comment by Joben...@gmail.com on 24 May 2013 at 2:11