Closed jwcullen closed 1 month ago
@jwcullen Thanks for putting forward this issue, the initial idea of iamfdec is used to parse mp4 with only audio track. But it is good suggestion to find correct audio track in mp4 to decode, we will try this.
Thanks.
could please try it.
Thanks.
@yilun-zhangs, Great! That PR works for me.
Current behavior (correct)
iamfdec
works fine when decoding MP4 files where IAMF is the first track.Current behavior (buggy)
iamfdec
fails to decode MP4 files when IAMF is a track other than the first trackIt would be better if
iamfdec
could find and decode the IAMF track. The rest the bug report describes how to generate files which show the difference between the two cases. I would expect both cases to decode the same if everything was working. I can provide actual files if there are any issues reproducing the issue.System Setup
The rest of the bug report uses ffmpeg @504c1ff to generate some sample files.
All commands below are run from a checked out version and built version of AOMEdiaCodec/libiamf@3bbb1844.
Create sample files
Create simple video content to use when muxing below.
ffmpeg -f lavfi -i color=c=green:s=1920x1080:d=0.500 sample_video.mp4
Create an MP4 file with IAMF as the first track and video as the second track
Rearrange the final line to create an MP4 file with video as the first track and IAMF as the second track:
Decode sample files
Summary
Since the first file generated decodes successfully, this implies there is no problem with the IAMF content of the file.