Correct a delay problem with VLC
Posted: 16 Jan 2011 16:32
Hi everyone,
I'm new to this forum, but I'm pretty sure I'm at the right place to get an answer...
So here is my problem.
I have a DVB-T card on my computer; I have been watching TV for long on it, but now I wanna extend its possibilities. It includes watching on another computer, linked to a projector (so using the projector to watch TV), and watch my local TV channels across a web stream, and a Qt application I have made to tune VLC to the right channel.
Everything in this plan works; you will say "Why did you come here so?" and I'll answer the problem isn't here.
The problem is, when I stream something coming from DVB-T, and that there is even the smallest discontinuity on the TS (there are always as someone in my family never stops sending and receiving SMS, and with an indoor antenna...) desynchronizes audio and video; the audio stays up-to-date but the video gets late, often very late (9-10 seconds). And to resynchronize I have to press "Next" on the local computer or restart the feed with my Qt application.
So what I want to do is make VLC keep the synchronization between video and audio; no matter if the two are late but they must stay synchronized together.
Some techincal details:
- I stream via HTTP, and I have a VLC client
- I'm using VLC 1.1.5 on a Linux 2.6.31.13 box
- I convert down video using this chain:
And there's often a "buffer too late for mux input" error being displayed ~100 times a second, beginning when a discontinuity is received in the TS.
How to correct the delay between audio and video while streaming from DVB-T? (That doesn't happen when watching locally)
Thanks by advance
Cocodidou
I'm new to this forum, but I'm pretty sure I'm at the right place to get an answer...
So here is my problem.
I have a DVB-T card on my computer; I have been watching TV for long on it, but now I wanna extend its possibilities. It includes watching on another computer, linked to a projector (so using the projector to watch TV), and watch my local TV channels across a web stream, and a Qt application I have made to tune VLC to the right channel.
Everything in this plan works; you will say "Why did you come here so?" and I'll answer the problem isn't here.
The problem is, when I stream something coming from DVB-T, and that there is even the smallest discontinuity on the TS (there are always as someone in my family never stops sending and receiving SMS, and with an indoor antenna...) desynchronizes audio and video; the audio stays up-to-date but the video gets late, often very late (9-10 seconds). And to resynchronize I have to press "Next" on the local computer or restart the feed with my Qt application.
So what I want to do is make VLC keep the synchronization between video and audio; no matter if the two are late but they must stay synchronized together.
Some techincal details:
- I stream via HTTP, and I have a VLC client
- I'm using VLC 1.1.5 on a Linux 2.6.31.13 box
- I convert down video using this chain:
Code: Select all
--sout "#transcode{vcodec=h264,vb=1000,fps=25,scale=1,width=320,height=240,acodec=mpga,ab=64,channels=2,samplerate=44100,audio-sync}:http{mux=ps,dst=:3450/stream}"
How to correct the delay between audio and video while streaming from DVB-T? (That doesn't happen when watching locally)
Thanks by advance
Cocodidou