Opened 19 months ago

Last modified 9 months ago

#5406 open defect

adpcm_vima: problem with stereo files

Reported by: ami_stuff Owned by:
Priority: normal Component: undetermined
Version: git-master Keywords: smush
Cc: Blocked By:
Blocking: Reproduced by developer: yes
Analyzed by developer: no

Description

audio in the output file = noise

http://www.datafilehost.com/d/afef00c6

C:\>ffmpeg -i D:\crushed_1.snm out.avi
ffmpeg version N-78758-g5156578 Copyright (c) 2000-2016 the FFmpeg developers
  built with gcc 5.3.0 (GCC)
  configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-av
isynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enab
le-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --
enable-libdcadec --enable-libfreetype --enable-libgme --enable-libgsm --enable-l
ibilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enab
le-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --en
able-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --ena
ble-libtwolame --enable-libvidstab --enable-libvo-amrwbenc --enable-libvorbis --
enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-lib
x265 --enable-libxavs --enable-libxvid --enable-libzimg --enable-lzma --enable-d
ecklink --enable-zlib
  libavutil      55. 19.100 / 55. 19.100
  libavcodec     57. 27.100 / 57. 27.100
  libavformat    57. 26.100 / 57. 26.100
  libavdevice    57.  0.101 / 57.  0.101
  libavfilter     6. 37.100 /  6. 37.100
  libswscale      4.  0.100 /  4.  0.100
  libswresample   2.  0.101 /  2.  0.101
  libpostproc    54.  0.100 / 54.  0.100
Guessed Channel Layout for  Input Stream #0.1 : stereo
Input #0, smush, from 'D:\crushed_1.snm':
  Duration: 00:01:40.40, start: 0.000000, bitrate: 2239 kb/s
    Stream #0:0: Video: sanm, rgb565le, 640x480, 15 fps, 15 tbr, 15 tbn, 15 tbc
    Stream #0:1: Audio: adpcm_vima, 22050 Hz, 2 channels, s16
File 'out.avi' already exists. Overwrite ? [y/N] y
Output #0, avi, to 'out.avi':
  Metadata:
    ISFT            : Lavf57.26.100
    Stream #0:0: Video: mpeg4 (FMP4 / 0x34504D46), yuv420p, 640x480, q=2-31, 200
 kb/s, 15 fps, 15 tbn, 15 tbc
    Metadata:
      encoder         : Lavc57.27.100 mpeg4
    Side data:
      cpb: bitrate max/min/avg: 0/0/200000 buffer size: 0 vbv_delay: -1
    Stream #0:1: Audio: mp3 (libmp3lame) (U[0][0][0] / 0x0055), 22050 Hz, stereo
, s16p
    Metadata:
      encoder         : Lavc57.27.100 libmp3lame
Stream mapping:
  Stream #0:0 -> #0:0 (sanm (native) -> mpeg4 (native))
  Stream #0:1 -> #0:1 (adpcm_vima (native) -> mp3 (libmp3lame))
Press [q] to stop, [?] for help
[output stream 0:1 @ 04fb0180] 100 buffers queued in output stream 0:1, somethin
g may be wrong.
frame=   80 fps=0.0 q=31.0 size=     346kB time=00:00:08.46 bitrate= 335.3kbits/
frame=  194 fps=0.0 q=31.0 size=     673kB time=00:00:16.11 bitrate= 341.9kbits/
frame=  308 fps=205 q=31.0 size=     984kB time=00:00:23.71 bitrate= 339.9kbits/
[sanm @ 039ad9a0] Ignoring invalid motion vector (657, 472)->(480, 472), block s
ize = 8
frame=  421 fps=210 q=31.0 size=    1337kB time=00:00:31.19 bitrate= 351.1kbits/
frame=  531 fps=212 q=31.0 size=    1754kB time=00:00:38.58 bitrate= 372.4kbits/
frame=  649 fps=216 q=31.0 size=    2002kB time=00:00:46.39 bitrate= 353.6kbits/
frame=  769 fps=220 q=31.0 size=    2239kB time=00:00:54.46 bitrate= 336.8kbits/
frame=  891 fps=223 q=31.0 size=    2420kB time=00:01:02.58 bitrate= 316.7kbits/
frame= 1014 fps=225 q=31.0 size=    2650kB time=00:01:10.79 bitrate= 306.6kbits/
frame= 1142 fps=228 q=31.0 size=    2831kB time=00:01:19.33 bitrate= 292.3kbits/
frame= 1261 fps=229 q=31.0 size=    3054kB time=00:01:27.24 bitrate= 286.7kbits/
frame= 1380 fps=230 q=31.0 size=    3245kB time=00:01:35.19 bitrate= 279.2kbits/
frame= 1499 fps=231 q=19.1 size=    3499kB time=00:01:43.13 bitrate= 277.9kbits/
frame= 1506 fps=231 q=13.8 Lsize=    3634kB time=00:01:43.68 bitrate= 287.2kbits
/s speed=15.9x
video:2681kB audio:810kB subtitle:0kB other streams:0kB global headers:0kB muxin
g overhead: 4.083068%

Change History (7)

comment:1 follow-up: Changed 19 months ago by richardpl

And from where you got this?

comment:2 in reply to: ↑ 1 Changed 19 months ago by ami_stuff

Replying to richardpl:

And from where you got this?

from the "Grim" game.

hmm "thepearl.snd" decodes fine, but "reunion.snm" not (you need to gzip -d them first):

http://www.datafilehost.com/d/05517ecc

comment:3 Changed 19 months ago by cehoyos

  • Keywords smush added
  • Reproduced by developer set
  • Status changed from new to open
  • Version changed from unspecified to git-master

comment:4 follow-up: Changed 19 months ago by ami_stuff

comment:6 in reply to: ↑ 5 Changed 9 months ago by richardpl

Replying to ami_stuff:

Replying to ami_stuff:

Also unrelated to this ticket

http://article.gmane.org/gmane.comp.video.ffmpeg.devel/212586

here are more samples:

http://www.datafilehost.com/d/da4a9f44

https://github.com/clone2727/smushplay/

That program give sames output as ffmpeg.

comment:7 Changed 9 months ago by richardpl

And audio is probably adpcm qt.

Note: See TracTickets for help on using tickets.