Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Audio / Video sync issue : 2 frames ahead of video #1522

Open
ben74 opened this issue May 1, 2024 · 1 comment
Open

Audio / Video sync issue : 2 frames ahead of video #1522

ben74 opened this issue May 1, 2024 · 1 comment

Comments

@ben74
Copy link

ben74 commented May 1, 2024

Hi, sorry for my bad english

The first : the original, not passing via nginx vod module has none sync issues

source=https://play.vod2.infomaniak.com/single/1jhvl2uqoi8jk/1jhvl2uqmlwkh/1jhvl2uqoi8jp.mp4#    pts_time:0 for both audio and vido

Then, passed via hls module, the audio is 2 frames ahead of the video ...

source=https://play.vod2.infomaniak.com/hls/1jhvl2uqoi8jk/1jhvl2uqmlwkh/,1jhvl2uqoi8jp,.urlset/index-v1-a1.m3u8#    a:0.1,v:0.2

Here is my ffprobe command for detecting such delays ..

for s in a v; do echo $s;  /usr/local/bin/ffprobe -i $source -show_frames -select_streams "$s" 2>/dev/null | grep pts_time | head -1; done;

Do any of you guys know how to get rid of this delay ? I've tried switching and swapping almost every parameter of nginx_vod_module for 2 days and I've not getting any improvement this far ..

Bilion thanks in advance for any clue, notice, comment, remark, enlightenment

@ben74
Copy link
Author

ben74 commented May 2, 2024

found out the parameter
vod_hls_mpegts_align_pts on;
solves the issue, but does absolutely no one did complain of this before ?
( why did the frame misalign anyways in the first place ? )

@ben74 ben74 closed this as completed May 2, 2024
@ben74 ben74 reopened this May 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant