Opened 11 years ago

Closed 7 years ago

#1962 closed defect (wontfix)

gsm in aiff: fix duration

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

Description

qt reports correct 30.02s

C:\>ffmpeg -i 2ch_48khz.aiff
ffmpeg version N-46755-ge70144c Copyright (c) 2000-2012 the FFmpeg developers
  built on Nov 15 2012 02:38:20 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      52.  6.100 / 52.  6.100
  libavcodec     54. 71.100 / 54. 71.100
  libavformat    54. 36.100 / 54. 36.100
  libavdevice    54.  3.100 / 54.  3.100
  libavfilter     3. 23.100 /  3. 23.100
  libswscale      2.  1.102 /  2.  1.102
  libswresample   0. 16.100 /  0. 16.100
  libpostproc    52.  1.100 / 52.  1.100
[aiff @ 0x1edc280] max_analyze_duration 5000000 reached at 5000000
Input #0, aiff, from '2ch_48khz.aiff':
  Duration: 01:20:02.35, start: 0.000000, bitrate: 0 kb/s
    Stream #0:0: Audio: gsm (GSM  / 0x204D5347), 48000 Hz, mono, s16, 79 kb/s
At least one output file must be specified

Attachments (1)

2ch_48khz.aiff (290.3 KB ) - added by ami_stuff 11 years ago.

Download all attachments as: .zip

Change History (9)

by ami_stuff, 11 years ago

Attachment: 2ch_48khz.aiff added

comment:1 by Carl Eugen Hoyos, 11 years ago

Keywords: aif added
Version: unspecifiedgit-master

I wonder if FFmpeg isn't correct: 1440705 is the number of samples written in the aiff header.

comment:2 by Carl Eugen Hoyos, 11 years ago

Summary: gms in aiff: fix durationgsm in aiff: fix duration

comment:3 by Elon Musk, 11 years ago

Is this file truncated? If not, does same happens when using other codecs?
Remuxing with ffmpeg gives correct duration.

in reply to:  3 comment:4 by ami_stuff, 11 years ago

Replying to richardpl:

Is this file truncated?

no

If not, does same happens when using other codecs?

no, but it still can be a bug of converter, the question is why qt reports correct duration?

comment:5 by Elon Musk, 11 years ago

It may ignore that value and seek to the end of file...

You could try to see what duration is reported for ffmpeg remuxed file:

ffmpeg -i input.aiff -c copy out.aiff

in reply to:  5 comment:6 by ami_stuff, 11 years ago

Replying to richardpl:

It may ignore that value and seek to the end of file...

You could try to see what duration is reported for ffmpeg remuxed file:

ffmpeg -i input.aiff -c copy out.aiff

QT reports the same correct duration.

comment:7 by Elon Musk, 11 years ago

Component: undeterminedavformat

comment:8 by Elon Musk, 7 years ago

Resolution: wontfix
Status: newclosed

FFmpeg uses what's written in header, one could use stream bitrate to override duration but this is far fetched.

Note: See TracTickets for help on using tickets.