I've encountered inconsistencies when decoding AAC files encoded by iTunes.

An AAC file encoded by iTunes 12.3.0 reports the following stream properties:
start_time = 2112
duration = 1328128
https://github.com/uklotzde/mixxx/blob/ffmpeg31/src/test/id3-test-data/cover-test-itunes-12.3.0-aac.m4a

The same file encoded by iTunes 12.7.0 reports the following stream properties:
start_time = 0
duration = 1328128
https://github.com/uklotzde/mixxx/blob/ffmpeg31/src/test/id3-test-data/cover-test-itunes-12.7.0-aac.m4a

The actual duration of the first file must be reduced to 1328128 - 2112 = 1326016 for decoding, because the last frame received from FFmpeg ends at 1326016.

Is this inconsistency caused by iTunes or by FFmpeg? As a workaround I need to reduce the duration of all AAC files by their start_time (if start_time > 0) to avoid running into issues when decoding affected files.

FFmpeg version: ffmpeg-3.3.4-1.fc26.x86_64 (Fedora 26 + RPM Fusion repos)

Kind regards,

Uwe

_______________________________________________
Libav-user mailing list
[email protected]
http://ffmpeg.org/mailman/listinfo/libav-user

Reply via email to