nginx-hls-module
nginx-hls-module copied to clipboard
audio sync issue
audio goes out of sync for some files,
here is an example : http://62.210.123.72/sync-issue.m3u8 you can grab original file : removed , this plays fine in vlc 2.1.3
@rounce , did you check this ?
have more such files, if you want to analyze them
do you have a donation page, some place where we can support you ?
Sorry, I was away from the computer for about a week. The issue reproduced, i'll try to fix it. don't have donation page yet.
oh ok, no problem; looking forward for the fix
do let us know once your donation page is up
@rounce , any luck with this mp4
Unfortunately no luck. Quickly could not find cause of the issue and don't have time for in-depth analysis. I think https://github.com/rounce/nginx-hls-module/issues/9 and https://github.com/rounce/nginx-hls-module/issues/10 are the same issue.
Hi rounce, perhaps the issue 10 is pts problem of the video, isn't it?
perhaps this issue is elst atom problem.
http://wiki.multimedia.cx/index.php?title=QuickTime_container#elst
It's unlikely that the issue is related to elst atom.
I have fixed this bug:
output_ts:
- u_int to_break = 1;
+ u_int to_break = 0;
for(i = 0; i < fragment_size; ++i) {
if(fragment[i].trak == NULL) continue;
- if(fragment[i].first != fragment[i].last) to_break = 0;
+ if(fragment[i].first == fragment[i].last && to_break ==0) to_break = 1;
}
i tried the above & it didn't fix the issue with the file specified in opening post
Additionally when audio codec is HE-AAC (not AAC LC), the video fast-forward itself. (somehow wierd)