-
Notifications
You must be signed in to change notification settings - Fork 158
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 ignored when the TS video file doesn't start with TS_SYNC_BYTE #53
Comments
Thanks for reporting this. Would it be possible that you PR a fix for this issue? :) |
I actually have a dirty fix running locally. I'll try to improve it a bit before submitting a PR. |
gilbsgilbs
added a commit
to gilbsgilbs/hlsdl
that referenced
this issue
Oct 19, 2019
gilbsgilbs
added a commit
to gilbsgilbs/hlsdl
that referenced
this issue
Oct 19, 2019
gilbsgilbs
added a commit
to gilbsgilbs/hlsdl
that referenced
this issue
Oct 19, 2019
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I noticed that the audio is completely dropped when the video file doesn't start with a TS packet immediately. After debugging a bit, it appears that the
download_hls
function expects to find aTS_SYNC_BYTE
at the very beginning of the file which is not always the case on my streams: some of them have a FFMpeg header for instance.Unfortunately, I can't share my
m3u8
file publicly since I don't own the content of the stream and it's supposed to be behind a paywall, but here is the beginning of the video file:A fix could be to start parsing the file as soon as a couple of
TS_SYNC_BYTE
are encountered. Let me know what you think.The text was updated successfully, but these errors were encountered: