Page 1 of 1

audio-desync change while streaming using libVLC

Posted: 26 Jan 2011 13:48
by Soroush
Hi,
I have ts(mpeg2video/mpga) stream and I am trying to transcode to H.264/AAC in ts container, I am getting variable audio sync problems that I was not able to fix using parameters of VLC. to my basic knowledge there is sync and timestamp information in ts streams with every packet and saving a copy of stream in ts and using mediainfo there is video delay value that equal the delay I notice in my stream, I wonder why VLC does not use these information to correct the delay in first place?

Now I think it maybe possible to use libVLC to correct this issue if:
1. libVLC give access to audio and video sync information while do the streaming to probe the current video delay.
2. It support change of audio-desync parameter value on the fly(e.g without interrupting the streaming).

I am not familiar with libVLC and would like the experts to confirm that my requirements are doable using libVLC before starting learning libVLC and its API.

Thanks

Re: audio-desync change while streaming using libVLC

Posted: 29 Jan 2011 23:19
by skurdakov
Hi Soroush,

first - you may correct using libVLC, as you have all info there in code.
you may add code to control desync ( though it is no there as you may notice )

now - I seen you sent me private message - but I cannot reply - due to my low activity - feature to reply is just blocked for me.
In case you wish to have a reply - please PM me with details how to contact you