Opened 14 months ago

Last modified 13 months ago

#8882 open defect

.sfd (Sofdec Dreamcast Movie) fails to properly interpret audio streams starting at 0x1c1

Reported by: Corey D. Owned by:
Priority: normal Component: undetermined
Version: git-master Keywords: sfd
Cc: Blocked By:
Blocking: Reproduced by developer: yes
Analyzed by developer: no

Description

Summary of the bug:
The .sfd (Sofdec Dreamcast Movie) fails to properly interpret audio streams starting at 0x1c1. FFMpeg reports that address, but it can't do anything with the audio. This format has been used in literally thousands of older games. FFMPEG is able to properly handle audios streams that start at 0x1c0, but not c1. The file isn't broken, this was taken from an Xbox game and these files play properly on that platform.

How to reproduce:

ffmpeg -i ddmovie.sfd -vn -c:a pcm_s16le ddmovie.wav

ffmpeg version: git-2020-06-28-4cfcfb3

built with: gcc 9.3.1 (GCC) 20200621

Error:
C:\Users\Apocalypse612>ffmpeg -i "C:\Users\Apocalypse612\Downloads\Halo 2 - Multiplayer Map Pack [!]\Halo 2 - Multiplayer Map Pack\movies\movie1\en\ddmovie.sfd" -vn -c:a pcm_s16le "C:\Users\Apocalypse612\Downloads\Halo 2 - Multiplayer Map Pack [!]\Halo 2 - Multiplayer Map Pack\movies\movie1\en\ddmovie.wav"
ffmpeg version git-2020-06-28-4cfcfb3 Copyright (c) 2000-2020 the FFmpeg developers

built with gcc 9.3.1 (GCC) 20200621
configuration: --enable-gpl --enable-version3 --enable-sdl2 --enable-fontconfig --enable-gnutls --enable-iconv --enable-libass --enable-libdav1d --enable-libbluray --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libsrt --enable-libtheora --enable-libtwolame --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libzimg --enable-lzma --enable-zlib --enable-gmp --enable-libvidstab --enable-libvmaf --enable-libvorbis --enable-libvo-amrwbenc --enable-libmysofa --enable-libspeex --enable-libxvid --enable-libaom --enable-libgsm --disable-w32threads --enable-libmfx --enable-ffnvcodec --enable-cuda-llvm --enable-cuvid --enable-d3d11va --enable-nvenc --enable-nvdec --enable-dxva2 --enable-avisynth --enable-libopenmpt --enable-amf
libavutil 56. 55.100 / 56. 55.100
libavcodec 58. 93.100 / 58. 93.100
libavformat 58. 47.100 / 58. 47.100
libavdevice 58. 11.100 / 58. 11.100
libavfilter 7. 86.100 / 7. 86.100
libswscale 5. 8.100 / 5. 8.100
libswresample 3. 8.100 / 3. 8.100
libpostproc 55. 8.100 / 55. 8.100

Guessed Channel Layout for Input Stream #0.0 : stereo
Input #0, mpeg, from 'C:\Users\Apocalypse612\Downloads\Halo 2 - Multiplayer Map Pack [!]\Halo 2 - Multiplayer Map Pack\movies\movie1\en\ddmovie.sfd':

Duration: 00:02:58.34, start: 0.000000, bitrate: 12436 kb/s

Stream #0:0[0x1c1]: Audio: adpcm_adx, 48000 Hz, stereo, s16p, 432 kb/s
Stream #0:1[0x1e0]: Video: mpeg1video, yuv420p(tv), 640x480 [SAR 200:219 DAR 800:657], 104857 kb/s, 29.97 fps, 29.97 tbr, 90k tbn, 29.97 tbc

Stream mapping:

Stream #0:0 -> #0:0 (adpcm_adx (native) -> pcm_s16le (native))

Press [q] to stop, ? for help
Error while decoding stream #0:0: Invalid data found when processing input

Last message repeated 2 times

Output #0, wav, to 'C:\Users\Apocalypse612\Downloads\Halo 2 - Multiplayer Map Pack [!]\Halo 2 - Multiplayer Map Pack\movies\movie1\en\ddmovie.wav':

Metadata:

ISFT : Lavf58.47.100
Stream #0:0: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 48000 Hz, stereo, s16, 1536 kb/s
Metadata:

encoder : Lavc58.93.100 pcm_s16le

size= 0kB time=00:00:00.03 bitrate= 67.2kbits/s speed=0.0237x
video:0kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 30.468750%

Change History (8)

comment:1 by Carl Eugen Hoyos, 14 months ago

Keywords: sfd added; .sfd Sofdec Dreamcast Movie removed

Please provide a sample file.

comment:2 by Elon Musk, 14 months ago

Resolution: needs_more_info
Status: newclosed

No sample(s) - no fix.

in reply to:  2 comment:3 by Corey D., 14 months ago

Replying to richardpl:

No sample(s) - no fix.

Please reopen this ticket.. I didn't see the request for the sample file. I'll get it to you in an hour or two.

Thanks

comment:4 by Elon Musk, 14 months ago

Feel free to reopen yourself once you upload it.

comment:5 by Corey D., 13 months ago

Resolution: needs_more_info
Status: closedreopened

comment:6 by Corey D., 13 months ago

Resolution: needs_more_info
Status: closedreopened
Last edited 13 months ago by Corey D. (previous) (diff)

comment:7 by Corey D., 13 months ago

Last edited 13 months ago by Corey D. (previous) (diff)

comment:8 by Carl Eugen Hoyos, 13 months ago

Reproduced by developer: set
Status: reopenedopen
Version: unspecifiedgit-master

Contains an aix stream that contains three stereo ADPCM streams that form a 5.1 audio stream.

Note: See TracTickets for help on using tickets.