H264 compression uncompression delay

Just have a drink and chat
robosara
New Cone
New Cone
Posts: 7
Joined: 26 May 2010 12:56

H264 compression uncompression delay

Postby robosara » 19 Jul 2011 12:45

Hi all,

Not sure this is the right place to post this. If you have advice on where I should post this, please tell me (even other sites).

For a project, I have to broadcast video on a LAN with low latency.

I have tested the following :
- Acquisition from an analog cam using a matrox card,
- compression in H264 using the same Matrox card (D1 or CIF format),
- broadcasting in LAN using RTP (live555),
- displaying on remote computer using VLC.
=) I obtain a average delay between cam and display of 350ms.

I would like to reduce this delay, and I am looking for hidden time loss.

What is the minimum delay do you think I could reach using such technologies ?
Are H264 and RTP suited for that, or do you think I shoud try other ones ?
If you know how to mathematically compute the minimal delay on some parts of the chain...

Regards

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: H264 compression uncompression delay

Postby Jean-Baptiste Kempf » 20 Jul 2011 00:21

Did you try decreasing the caching?
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

robosara
New Cone
New Cone
Posts: 7
Joined: 26 May 2010 12:56

Re: H264 compression uncompression delay

Postby robosara » 20 Jul 2011 17:20

Yes, I have played with rtsp-caching/file-caching parameter.
But I cannot set it too low without risking video freezes :(
Choose a safe value is difficult.

For what I need, I would accept some bad visual effects (lack of data) if VLC was able to just use the minimum cache linked to the frame size, and never stayed frozen...

Sébastien Escudier
Big Cone-huna
Big Cone-huna
Posts: 853
Joined: 06 Nov 2008 08:38
Operating System: linux

Re: H264 compression uncompression delay

Postby Sébastien Escudier » 21 Jul 2011 08:19

If vlc does not have enough frames cached it will freeze.
So if you have a lag and a too low caching value, it will freeze.
Caching value depends on your stream network quality, and it may vary across time.
There is no magical values.

robosara
New Cone
New Cone
Posts: 7
Joined: 26 May 2010 12:56

Re: H264 compression uncompression delay

Postby robosara » 21 Jul 2011 09:57

So sad VLC encounters difficulties to start again after a lag has occured...
I often have to stop and play to make it operate again.


Return to “Coffee Corner”

Who is online

Users browsing this forum: No registered users and 44 guests