Opened 12 years ago

Closed 11 years ago

#1603 closed defect (fixed)

fix remuxing of ima_adpcm_qt in mov

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

Description

it looks like ffmpeg does not set correctly compression ID and stts_entries[i].duration
while remuxing ima_adpcm_qt in mov, so the output file is unplayable by qt (and ffmpeg)

attached hack fixes for me remuxing of ima_ffmpeg.mov

C:\>ffmpeg -i ima_ffmpeg.mov -acodec copy out.mov
ffmpeg version N-43160-g752344d Copyright (c) 2000-2012 the FFmpeg developers
  built on Aug  3 2012 02:38:06 with gcc 4.5.0 (GCC) 20100414 (Fedora MinGW 4.5.
0-1.fc14)
  configuration: --prefix=/var/www/users/research/ffmpeg/snapshots/build --arch=
x86 --target-os=mingw32 --cross-prefix=i686-pc-mingw32- --cc='ccache i686-pc-min
gw32-gcc' --enable-w32threads --enable-memalign-hack --enable-runtime-cpudetect
--enable-cross-compile --enable-static --disable-shared --extra-libs='-lws2_32 -
lwinmm -lpthread' --extra-cflags='--static -I/var/www/users/research/ffmpeg/snap
shots/build/include' --extra-ldflags='-static -L/var/www/users/research/ffmpeg/s
napshots/build/lib' --enable-bzlib --enable-zlib --enable-gpl --enable-version3
--enable-nonfree --enable-libx264 --enable-libspeex --enable-libtheora --enable-
libvorbis --enable-libfaac --enable-libxvid --enable-libopencore-amrnb --enable-
libopencore-amrwb --enable-libmp3lame --enable-libvpx --disable-decoder=libvpx
  libavutil      51. 66.100 / 51. 66.100
  libavcodec     54. 48.100 / 54. 48.100
  libavformat    54. 22.100 / 54. 22.100
  libavdevice    54.  2.100 / 54.  2.100
  libavfilter     3.  5.101 /  3.  5.101
  libswscale      2.  1.100 /  2.  1.100
  libswresample   0. 15.100 /  0. 15.100
  libpostproc    52.  0.100 / 52.  0.100
Guessed Channel Layout for  Input Stream #0.0 : mono
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'ima_ffmpeg.mov':
  Metadata:
    major_brand     : qt
    minor_version   : 512
    compatible_brands: qt
    encoder         : Lavf54.22.100
  Duration: 00:00:12.62, start: 0.000000, bitrate: 34 kb/s
    Stream #0:0(eng): Audio: adpcm_ima_qt (ima4 / 0x34616D69), 8000 Hz, mono, s1
6, 32 kb/s
    Metadata:
      handler_name    : DataHandler
Output #0, mov, to 'out.mov':
  Metadata:
    major_brand     : qt
    minor_version   : 512
    compatible_brands: qt
    encoder         : Lavf54.22.100
    Stream #0:0(eng): Audio: adpcm_ima_qt (ima4 / 0x34616D69), 8000 Hz, mono, 32
 kb/s
    Metadata:
      handler_name    : DataHandler
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
Press [q] to stop, [?] for help
size=      53kB time=00:00:12.62 bitrate=  34.4kbits/s
video:0kB audio:52kB subtitle:0 global headers:0kB muxing overhead 1.278610%

Attachments (2)

ima_ffmpeg.mov (53.1 KB ) - added by ami_stuff 12 years ago.
ima.diff (1.6 KB ) - added by ami_stuff 12 years ago.

Download all attachments as: .zip

Change History (4)

by ami_stuff, 12 years ago

Attachment: ima_ffmpeg.mov added

by ami_stuff, 12 years ago

Attachment: ima.diff added

comment:1 by Carl Eugen Hoyos, 12 years ago

Component: undeterminedavformat
Keywords: mov adpcm added
Reproduced by developer: set
Status: newopen
Version: unspecifiedgit-master

comment:2 by Carl Eugen Hoyos, 11 years ago

Resolution: fixed
Status: openclosed

Should be fixed in 362383b7

Note: See TracTickets for help on using tickets.