-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
AAC HLS stream is not playing #540
Comments
Did you also try the ffmpeg hls muxer: http://www.ffmpeg.org/ffmpeg-formats.html#hls-1 ? |
@blacktrash sure I tried successfully, it generates TS segments with MPEG-TS muxer, but I need to generate ADTS AAC segments for audio only stream and hls.js is presented with AAC container support for such streams. The main cause of this is that audio tag can be played inline on iPhone (4 < iOS). |
The TS segments are ADTS when created with the hls muxer. ffmpeg cli:
Disclaimer: I have no experience with segmenting live streams. |
TS fragments are perfectly capable of being audio-only, btw. And if you do switch to TS, you may run into subtle |
Yes, I'm successfully using audio-only TS fragments generated with ffmpeg hls. But I'm confusing if |
@mangui ah, I see, thank you for the explanation. BTW, just wondering if it is possible to insert timed metadata with ffmpeg in TS or AAC ES, because currently I can not find the right way to do that? |
yes, hls.js supports Timed Metadata in ID3 format, carried in MPEG2-TS |
hm, interesting idea, you suggest to use manifest instead timed metadata in chunks, but what about html5 native support then (Safari, etc)? And is timed metadata also supported with native HTML5 playback? |
Pretty sure Safari native playback will present the data as |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Environment
Steps to reproduce
Stream is generated with ffmpeg version N-79790-g017d42e:
ffmpeg -i [URL] -c:a libfdk_aac -b:a 128k -af volume=-6dB -ar 44100 -f segment -segment_list /tmp/hls/test/aac/128/out.m3u8 -segment_list_flags live -segment_time 2 -segment_list_size 10 -segment_wrap 20 -segment_format adts /tmp/hls/test/aac/128/out%01d.aac
Expected behavior
Player should play stream
Actual behavior
Player could not play stream
What's wrong with the generated aac segments?
Console output
The text was updated successfully, but these errors were encountered: