shaka-project / shaka-packager

A media packaging and development framework for VOD and Live DASH and HLS applications, supporting Common Encryption for Widevine and other DRM Systems.
https://shaka-project.github.io/shaka-packager/
Other
2.01k stars 512 forks source link

SEGV on input MP4A file #1368

Open emarsden opened 8 months ago

emarsden commented 8 months ago

System info

Operating System: Linux/AMD64 Shaka Packager Version: 5ee2b7f-release (v3.0.2 from Github release)

Issue and steps to reproduce the problem

Packager Command:

% shaka-packager --dump_stream_info in=/tmp/dashmpd-audioEwbifj9.mp4 I0312 15:46:00.222750 216451 demuxer.cc:94] Demuxer::Run() on file '/tmp/dashmpd-audioEwbifj9.mp4'. I0312 15:46:00.223042 216451 demuxer.cc:160] Initialize Demuxer for file '/tmp/dashmpd-audioEwbifj9.mp4'.

File "/tmp/dashmpd-audioEwbifj9.mp4": Found 1 stream(s). Stream [0] type: Audio codec_string: mp4a.40.2 time_scale: 48000 duration: 18446744073709551615 (-0.0 seconds) is_encrypted: false codec: AAC sample_bits: 16 num_channels: 2 sampling_frequency: 48000 language: und zsh: segmentation fault shaka-packager --dump_stream_info in=/tmp/dashmpd-audioEwbifj9.mp4

The input file (emailed to shaka-packager-issues@google.com) plays fine with ffmpeg and worked fine with shaka-packager v2.6.1-634af65-release.

rlaphoenix commented 8 months ago

I'm also getting a Segmentation fault on v3.0.0, v3.0.1, v3.0.2, and v3.0.3 when decrypting an mp4a.40.2, which has almost the exact same stats as you, but unlike you my file succeeds with dump_stream_info:

I0324 18:44:34.674327   15661 demuxer.cc:94] Demuxer::Run() on file '/tmp/devine/Audio_2f4bf1f5.mp4'.
I0324 18:44:34.674452   15661 demuxer.cc:160] Initialize Demuxer for file '/tmp/devine/Audio_2f4bf1f5.mp4'.

File "/tmp/devine/Audio_2f4bf1f5.mp4":
Found 1 stream(s).
Stream [0] type: Audio
 codec_string: mp4a.40.2
 time_scale: 48000
 duration: 84737472 (1765.4 seconds)
 is_encrypted: false
 codec: AAC
 sample_bits: 16
 num_channels: 2
 sampling_frequency: 48000
 language: kor

When decrypting:

 I0324 18:50:19.184362   15732 demuxer.cc:94] Demuxer::Run() on file '/tmp/devine/Audio_2f4bf1f5.mp4'.
I0324 18:50:19.184499   15732 demuxer.cc:160] Initialize Demuxer for file '/tmp/devine/Audio_2f4bf1f5.mp4'.
Segmentation fault (core dumped)

I still have the file but I have no further information other than it works on v2.6.1. The above results were with v3.0.3.