Opened 12 years ago

Closed 12 years ago

#2052 closed enhancement (fixed)

rm: fix the real duration for sipr in ra4

Reported by: ami_stuff Owned by:
Priority: wish Component: avformat
Version: git-master Keywords: real sipr
Cc: Blocked By:
Blocking: Reproduced by developer: yes
Analyzed by developer: no

Description

maybe useful:

libavcodec/utils.c:

    if (ba > 0) {
        // calc from block_align
        if (id == AV_CODEC_ID_SIPR) {
            switch (ba) {
            case 20: return 160;
            case 19: return 144;
            case 29: return 288;
            case 37: return 480;
            }
        } else if (id == AV_CODEC_ID_ILBC) {
            switch (ba) {
            case 38: return 160;
            case 50: return 240;
            }
        }
    }
C:\>ffmpeg -i RA5.0_16kbps_voice_wideband.ra -f null -
ffmpeg version N-48063-g230bef0 Copyright (c) 2000-2012 the FFmpeg developers
  built on Dec 21 2012 02:24:12 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. 12.100 / 52. 12.100
  libavcodec     54. 81.100 / 54. 81.100
  libavformat    54. 49.102 / 54. 49.102
  libavdevice    54.  3.102 / 54.  3.102
  libavfilter     3. 29.100 /  3. 29.100
  libswscale      2.  1.103 /  2.  1.103
  libswresample   0. 17.102 /  0. 17.102
  libpostproc    52.  2.100 / 52.  2.100
Truncating packet of size 160 to 28
[rm @ 0x1eeeb80] Estimating duration from bitrate, this may be inaccurate
Input #0, rm, from 'RA5.0_16kbps_voice_wideband.ra':
  Metadata:
    title           :
    author          :
    copyright       :
    comment         :
  Duration: N/A, bitrate: N/A
    Stream #0:0: Audio: sipr (sipr / 0x72706973), 16000 Hz, mono, flt
Output #0, null, to 'pipe:':
  Metadata:
    title           :
    author          :
    copyright       :
    comment         :
    encoder         : Lavf54.49.102
    Stream #0:0: Audio: pcm_s16le, 16000 Hz, mono, s16, 256 kb/s
Stream mapping:
  Stream #0:0 -> #0:0 (sipr -> pcm_s16le)
Press [q] to stop, [?] for help
Multiple frames in a packet from stream 0
[null @ 0x1ffc440] st:0 PTS: 900 DTS: 900 < 6301 invalid, clipping
[null @ 0x1ffc440] st:0 PTS: 1800 DTS: 1800 < 6302 invalid, clipping
[null @ 0x1ffc440] st:0 PTS: 2700 DTS: 2700 < 6303 invalid, clipping
[null @ 0x1ffc440] st:0 PTS: 3600 DTS: 3600 < 6304 invalid, clipping
[null @ 0x1ffc440] st:0 PTS: 4500 DTS: 4500 < 6305 invalid, clipping
[null @ 0x1ffc440] st:0 PTS: 5400 DTS: 5400 < 6306 invalid, clipping
[null @ 0x1ffc440] st:0 PTS: 6300 DTS: 6300 < 6307 invalid, clipping
[null @ 0x1ffc440] st:0 PTS: 1800 DTS: 1800 < 7201 invalid, clipping
[null @ 0x1ffc440] st:0 PTS: 2700 DTS: 2700 < 7202 invalid, clipping
[null @ 0x1ffc440] st:0 PTS: 3600 DTS: 3600 < 7203 invalid, clipping
[null @ 0x1ffc440] st:0 PTS: 4500 DTS: 4500 < 7204 invalid, clipping
[null @ 0x1ffc440] st:0 PTS: 5400 DTS: 5400 < 7205 invalid, clipping
[null @ 0x1ffc440] st:0 PTS: 6300 DTS: 6300 < 7206 invalid, clipping
[null @ 0x1ffc440] st:0 PTS: 7200 DTS: 7200 < 7207 invalid, clipping
[null @ 0x1ffc440] st:0 PTS: 2700 DTS: 2700 < 8101 invalid, clipping
[null @ 0x1ffc440] st:0 PTS: 3600 DTS: 3600 < 8102 invalid, clipping
[null @ 0x1ffc440] st:0 PTS: 4500 DTS: 4500 < 8103 invalid, clipping
[null @ 0x1ffc440] st:0 PTS: 5400 DTS: 5400 < 8104 invalid, clipping
[null @ 0x1ffc440] st:0 PTS: 6300 DTS: 6300 < 8105 invalid, clipping
[null @ 0x1ffc440] st:0 PTS: 7200 DTS: 7200 < 8106 invalid, clipping
[null @ 0x1ffc440] st:0 PTS: 8100 DTS: 8100 < 8107 invalid, clipping
[null @ 0x1ffc440] st:0 PTS: 3600 DTS: 3600 < 9001 invalid, clipping
[null @ 0x1ffc440] st:0 PTS: 4500 DTS: 4500 < 9002 invalid, clipping
[null @ 0x1ffc440] st:0 PTS: 5400 DTS: 5400 < 9003 invalid, clipping
[null @ 0x1ffc440] st:0 PTS: 6300 DTS: 6300 < 9004 invalid, clipping
[null @ 0x1ffc440] st:0 PTS: 7200 DTS: 7200 < 9005 invalid, clipping
[null @ 0x1ffc440] st:0 PTS: 8100 DTS: 8100 < 9006 invalid, clipping
[null @ 0x1ffc440] st:0 PTS: 9000 DTS: 9000 < 9007 invalid, clipping
[null @ 0x1ffc440] st:0 PTS: 4500 DTS: 4500 < 9901 invalid, clipping
[null @ 0x1ffc440] st:0 PTS: 5400 DTS: 5400 < 9902 invalid, clipping
[null @ 0x1ffc440] st:0 PTS: 6300 DTS: 6300 < 9903 invalid, clipping
[null @ 0x1ffc440] st:0 PTS: 7200 DTS: 7200 < 9904 invalid, clipping
[null @ 0x1ffc440] st:0 PTS: 8100 DTS: 8100 < 9905 invalid, clipping
[null @ 0x1ffc440] st:0 PTS: 9000 DTS: 9000 < 9906 invalid, clipping
[null @ 0x1ffc440] st:0 PTS: 9900 DTS: 9900 < 9907 invalid, clipping
[null @ 0x1ffc440] st:0 PTS: 5400 DTS: 5400 < 10801 invalid, clipping
[null @ 0x1ffc440] st:0 PTS: 6300 DTS: 6300 < 10802 invalid, clipping
[null @ 0x1ffc440] st:0 PTS: 7200 DTS: 7200 < 10803 invalid, clipping
[null @ 0x1ffc440] st:0 PTS: 8100 DTS: 8100 < 10804 invalid, clipping
[null @ 0x1ffc440] st:0 PTS: 9000 DTS: 9000 < 10805 invalid, clipping
[null @ 0x1ffc440] st:0 PTS: 9900 DTS: 9900 < 10806 invalid, clipping
[null @ 0x1ffc440] st:0 PTS: 10800 DTS: 10800 < 10807 invalid, clipping
[null @ 0x1ffc440] st:0 PTS: 6300 DTS: 6300 < 11701 invalid, clipping
[null @ 0x1ffc440] st:0 PTS: 7200 DTS: 7200 < 11702 invalid, clipping
[null @ 0x1ffc440] st:0 PTS: 8100 DTS: 8100 < 11703 invalid, clipping
[null @ 0x1ffc440] st:0 PTS: 9000 DTS: 9000 < 11704 invalid, clipping
[null @ 0x1ffc440] st:0 PTS: 9900 DTS: 9900 < 11705 invalid, clipping
[null @ 0x1ffc440] st:0 PTS: 10800 DTS: 10800 < 11706 invalid, clipping
[null @ 0x1ffc440] st:0 PTS: 11700 DTS: 11700 < 11707 invalid, clipping
[null @ 0x1ffc440] st:0 PTS: 7200 DTS: 7200 < 12601 invalid, clipping
[null @ 0x1ffc440] st:0 PTS: 8100 DTS: 8100 < 12602 invalid, clipping
[null @ 0x1ffc440] st:0 PTS: 9000 DTS: 9000 < 12603 invalid, clipping
[null @ 0x1ffc440] st:0 PTS: 9900 DTS: 9900 < 12604 invalid, clipping
[null @ 0x1ffc440] st:0 PTS: 10800 DTS: 10800 < 12605 invalid, clipping
[null @ 0x1ffc440] st:0 PTS: 11700 DTS: 11700 < 12606 invalid, clipping
[null @ 0x1ffc440] st:0 PTS: 12600 DTS: 12600 < 12607 invalid, clipping
[null @ 0x1ffc440] st:0 PTS: 8100 DTS: 8100 < 13501 invalid, clipping
[null @ 0x1ffc440] st:0 PTS: 9000 DTS: 9000 < 13502 invalid, clipping
[null @ 0x1ffc440] st:0 PTS: 9900 DTS: 9900 < 13503 invalid, clipping
[null @ 0x1ffc440] st:0 PTS: 10800 DTS: 10800 < 13504 invalid, clipping
[null @ 0x1ffc440] st:0 PTS: 11700 DTS: 11700 < 13505 invalid, clipping
[null @ 0x1ffc440] st:0 PTS: 12600 DTS: 12600 < 13506 invalid, clipping
[null @ 0x1ffc440] st:0 PTS: 13500 DTS: 13500 < 13507 invalid, clipping
[null @ 0x1ffc440] st:0 PTS: 9000 DTS: 9000 < 14401 invalid, clipping
[null @ 0x1ffc440] st:0 PTS: 9900 DTS: 9900 < 14402 invalid, clipping
[null @ 0x1ffc440] st:0 PTS: 10800 DTS: 10800 < 14403 invalid, clipping
st:0 PTS: 11700 DTS: 11700 < 14404 invalid, clipping
[null @ 0x1ffc440] st:0 PTS: 12600 DTS: 12600 < 14405 invalid, clipping
[null @ 0x1ffc440] st:0 PTS: 13500 DTS: 13500 < 14406 invalid, clipping
[null @ 0x1ffc440] st:0 PTS: 14400 DTS: 14400 < 14407 invalid, clipping
[null @ 0x1ffc440] st:0 PTS: 342900 DTS: 342900 < 344705 invalid, clipping
[null @ 0x1ffc440] st:0 PTS: 343800 DTS: 343800 < 344706 invalid, clipping
[null @ 0x1ffc440] st:0 PTS: 344700 DTS: 344700 < 344707 invalid, clipping
[sipr @ 0x1eef4c0] Error processing packet: packet size (7) too small
Error while decoding stream #0:0: Error number -1 occurred
[null @ 0x1ffc440] st:0 PTS: 340200 DTS: 340200 < 345601 invalid, clipping
RA5.0_16kbps_voice_wideband.ra: Input/output error
size=       0kB time=00:00:03.85 bitrate=   0.0kbits/s
video:0kB audio:945kB subtitle:0 global headers:0kB muxing overhead -100.000000%

Attachments (1)

RA5.0_16kbps_voice_wideband.ra (59.2 KB ) - added by ami_stuff 12 years ago.

Download all attachments as: .zip

Change History (3)

by ami_stuff, 12 years ago

comment:1 by Carl Eugen Hoyos, 12 years ago

Keywords: real sipr added
Priority: normalwish
Reproduced by developer: set
Status: newopen
Type: defectenhancement
Version: unspecifiedgit-master

in reply to:  description comment:2 by Carl Eugen Hoyos, 12 years ago

Component: undeterminedavformat
Resolution: fixed
Status: openclosed

Replying to ami_stuff:

  Duration: N/A, bitrate: N/A

This was fixed by you.

size=       0kB time=00:00:03.85 bitrate=   0.0kbits/s

I suggest to open a new ticket for the wrong timestamps (the sample is ~30 seconds long), also reproducible with ffplay and MPlayer.

Note: See TracTickets for help on using tickets.