A media packaging and development framework for VOD and Live DASH and HLS applications, supporting Common Encryption for Widevine and other DRM Systems.
The resulting stream is playing fine in hls.js-powered players, but I can constantly hear choppy clicking sound when trying to play the stream via Safari's native HLS playback.
When I switch the segment_template file extension for audio streams to .aac, everything is fine for both Safari and hls.js.
But I'm locked to MPEG-2 container for audio streams because I also need raw SAMPLE-AES encryption which is supported only for MPEG-2 TS in Hls.js.
Is this happening due to ID3 com.apple.streaming.transportStreamTimestamp tag getting lost when the audio is stored in .ts segments separated from the video?
Is there anything related to Shaka packager that may fix this issue?
System info
Operating System: macOS Ventura 13.2 Shaka Packager Version:
packager-osx-x64 version v2.6.1-634af65-release
Issue and steps to reproduce the problem
I have the following input files:
video.mp4
– h264 video w\ sound or subtitle streamsaudio0.m4a
– first voice actoraudio1.m4a
– second voice actorI'm trying to make a HLS stream containing the video and two audio tracks:
Packager Command:
The resulting stream is playing fine in hls.js-powered players, but I can constantly hear choppy clicking sound when trying to play the stream via Safari's native HLS playback.
When I switch the
segment_template
file extension for audio streams to.aac
, everything is fine for both Safari and hls.js.But I'm locked to MPEG-2 container for audio streams because I also need raw SAMPLE-AES encryption which is supported only for MPEG-2 TS in Hls.js.
Is this happening due to ID3
com.apple.streaming.transportStreamTimestamp
tag getting lost when the audio is stored in.ts
segments separated from the video?Is there anything related to Shaka packager that may fix this issue?