Search found 6 matches

Go to advanced search

by shavlo
08 Dec 2022 20:25
Forum: Development around libVLC
Topic: A/V sync with custom audio output
Replies: 7
Views: 5252

Re: A/V sync with custom audio output

Can You share Your patch for it ? I wish to test it as I face same issues. It calculates the amount of audio drift and then either inserts appropriate amount of silence into the audio stream to delay it, or adjusts audio delay using libvlc_audio_set_delay if audio stream is ahead of video. But that...
by shavlo
08 Dec 2022 20:23
Forum: Development around libVLC
Topic: A/V sync with custom audio output
Replies: 7
Views: 5252

Re: A/V sync with custom audio output

If your question is, can you handle long term drift with an initial playback delay/offset, then the answer is of course "no". I think you answered your own question. What is the best solution to handle the drift? Is there a way to make libVLC video stream slower/faster? That is, I want au...
by shavlo
28 Oct 2021 15:02
Forum: Development around libVLC
Topic: Getting video file duration
Replies: 0
Views: 5244

Getting video file duration

I'm trying to determine video file duration, but for some odd reason the libvlc_media_get_duration function returns odd values e.g. $39100000000000 or similar huge numbers, always with lower bits set to zeros. The essential part of the code I use vlcMedia := libvlc_media_new_path(vlcInstance, PAnsiC...
by shavlo
26 Feb 2021 17:09
Forum: Development around libVLC
Topic: A/V sync with custom audio output
Replies: 7
Views: 5252

Re: A/V sync with custom audio output

Thank you. Yes, I understand that. Does it mean I should use the pts value of the very first sample to calculate the a/v drift? I tried that and it appears to solve the problem for all videos. I want to verify that this solution is correct.
by shavlo
24 Feb 2021 10:59
Forum: Development around libVLC
Topic: Delphi Wrapper for LibVLC v1.1
Replies: 32
Views: 150276

Re: Delphi Wrapper for LibVLC v1.1

You can use those headers: https://prog.olsztyn.pl/paslibvlc/ And then adapting any C++ example will work for you. A simple example included below. It simply plays a video on the TPanel. You also need to add _release calls to free the vlcMediaPlayer and the library itself when you're done. vlcInstan...
by shavlo
24 Feb 2021 10:54
Forum: Development around libVLC
Topic: A/V sync with custom audio output
Replies: 7
Views: 5252

A/V sync with custom audio output

Hello, I've recently started using libvlc and like it a lot - thanks for the devs for such a great work! My question is: I use libvlc_audio_set_callbacks to organize custom audio output. But for some videos, there's a/v sync problem (audio comes about a second earlier). When played through VLC playe...

Go to advanced search