latency problem

Old forum that is now archived. Please use one of the other forums.
tableur

latency problem

Postby tableur » 21 Mar 2005 17:17

Hi,

I used VLC to capture, stream and to play multimedia stream and i would like to know why I had a latency about 2sec.
Where did it come from ? (transcodage, streaming or ????)
Is it possible to make a video conference with VLC with some modifications??

thx for ur answer
++

dionoea
Cone Master
Cone Master
Posts: 5157
Joined: 03 Dec 2003 23:09
Location: Paris, France

Postby dionoea » 21 Mar 2005 21:01

VLC has buffers all over the place. Those can be changed in the prefs.

ShimmyShimmy

Proportionally sized, smart buffers?

Postby ShimmyShimmy » 22 Mar 2005 00:56

I did run into a similar. I was adjusting the stream amounts, but is there an option to make this buffer proportional to the file size? For example, instead of buffering 10 seconds or 0.5 megabytes ahead, say buffer 10% of the file.

Even better, could it somehow be implemented to calculate an ideal-sized buffer on its own? For example, for a file of size = S, download rate = R, and runtime t, maybe buffer size B

use a ping (or similar) to calculate an estimated download rate R (kb/s), and do the following:

total time to download = S/R
and runtime t,
so creat a buffer (for T seconds) of T = S/R - t
and a buffer size B (B kb) B = T/R

That's just an idea. I'm not a very experienced programmer, but I think the previous could be done. Alternatively, might it already be in? Thanks ahead.


Brian Lennon[/img]

Guest

Postby Guest » 22 Mar 2005 12:27

I tried to minimise buffer, but it didn't work. i had allready latency when i play in local (about 200, 300ms).
I tried to stream my capture video without transcoding but it didn't work.
do u think if i modify the source code i can improve the latency ?

++

dionoea
Cone Master
Cone Master
Posts: 5157
Joined: 03 Dec 2003 23:09
Location: Paris, France

Postby dionoea » 22 Mar 2005 12:55

all buffers are available in the prefs. You have one for the access method, one for the decoder ...

Guest

Postby Guest » 23 Mar 2005 12:13

yes but it is allways the same problem, i put buffer 20 ms in each steps but i have always 2sec of latency

Guest

Postby Guest » 23 Mar 2005 12:13

yes but it is allways the same problem, i put buffer 20 ms in each steps but i have always 2sec of latency


Return to “VideoLAN”

Who is online

Users browsing this forum: No registered users and 40 guests