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 not playing at on-the-fly segmented mp4 by AMS/Apache mod_hlshttp.so #592

Closed
4 tasks done
SebastianLukas opened this issue Jul 21, 2016 · 2 comments
Closed
4 tasks done
Labels

Comments

@SebastianLukas
Copy link

SebastianLukas commented Jul 21, 2016

Hi mangui and to all working and contributing to this cool project! ;)

Environment
Steps to reproduce

demo

Expected behavior

Audio playing correctly

Actual behavior

Video plays well;
Audio is mute if the HLS Stream comes out of an "on-the-fly" segmented mp4 by Adobe AMS mod_hlshttp.so

Strangely the audio plays just well if i first pre-package the my mp4/aac Video with the hlspackager tool Adobe ships with their Server.
Here demo
Apart the mp4 being prepackaged into ts chunks, the HLS stream is delivered the same way both cases (Apache 2.4 with mod_hlshttp.so )

i've analyzed, with "mpeg-2 ts packet analyzer", the kinds of fragments produced in the two approaches - "on-the-fly" ones and the "pre-packaged" ones - but the chunks seemed having both the same patterns: regular PAT at the beginning, video (PID 257) and audio packets (PID 258).

Another info: i captured 3 fragments from the on-the-fly fragmentation and wrote an m3u8 manifest, as it was a pre-packaged version. Video was fine but audio was not playing either.

The HLS stream served by AMS is generally supported on iOS and newer Android devices, natively. Is there any chance hls.js will also?
Thank you in advance!
seba

@mangui
Copy link
Member

mangui commented Jul 27, 2016

Hi @SebastianLukas audio PID was not signaled in the first parsed PMT (but in the second one)
I refined the TS demuxer logic to support this case.
plz recheck on demo page

@mangui mangui added the Bug label Jul 27, 2016
@SebastianLukas
Copy link
Author

Hi mangui, it works just smooth and fine!
Thank you very much

@mangui mangui closed this as completed Sep 15, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants