Opened 13 years ago

Last modified 11 years ago

#232 open enhancement

amrnb dec: dtx mode not implemented.

Reported by: matteosistisette Owned by:
Priority: wish Component: avcodec
Version: git-master Keywords: amr amrnb
Cc: Blocked By:
Blocking: Reproduced by developer: yes
Analyzed by developer: no

Description

I've just compiled the latest version of ffmpeg from the SVN on a CentOS machine and when I try to decode amr audio files I get this error (repeated a lot of times):

[amrnb @ 0x626e90] dtx mode not implemented. Update your FFmpeg version to the newest one from SVN. If the problem still occurs, it means that your file has a feature which has not been implemented.If you want to help, upload a sample of this file to ftp://upload.ffmpeg.org/MPlayer/incoming/ and contact the ffmpeg-devel mailing list.

On another box, an Ubuntu one, I have installed the ffmpeg package from the repositories and it works fine with the same files.
Also, on yet another CentOS box I am using a several-year-old version of ffmpeg that was compiled ages ago which can decode the same amr files just fine.

So either the error message is completely wrong and the real problem with the files is different, or there has been some regression in that a feature that had already been implemented ages ago has been dropped.

Attachments (2)

sound2.amr (8.5 KB ) - added by matteosistisette 13 years ago.
an example amr file that can't be decoded
data-2012-11-25-17-39-10.3gp (594.3 KB ) - added by Carl Eugen Hoyos 11 years ago.

Download all attachments as: .zip

Change History (9)

by matteosistisette, 13 years ago

Attachment: sound2.amr added

an example amr file that can't be decoded

comment:1 by Carl Eugen Hoyos, 13 years ago

Component: undeterminedavcodec
Keywords: amr amrnb added
Priority: criticalwish
Reproduced by developer: set
Status: newopen
Type: defectenhancement
Version: unspecifiedgit-master

Complete, uncut output missing, but I guess your two versions of FFmpeg use two different amr decoder.

$ ffmpeg -i sound2.amr out.wav
ffmpeg version git-N-30155-g01a73d6, Copyright (c) 2000-2011 the FFmpeg developers
  built on May 23 2011 16:04:23 with gcc 4.5.3
  configuration: --cc='/usr/local/gcc-4.5.3/bin/gcc -m32' --enable-gpl
  libavutil    51.  2. 1 / 51.  2. 1
  libavcodec   53.  6. 0 / 53.  6. 0
  libavformat  53.  2. 0 / 53.  2. 0
  libavdevice  53.  0. 0 / 53.  0. 0
  libavfilter   2. 10. 0 /  2. 10. 0
  libswscale    0. 14. 0 /  0. 14. 0
  libpostproc  51.  2. 0 / 51.  2. 0
[amr @ 0x8ca5b20] max_analyze_duration 5000000 reached at 5000000
[amr @ 0x8ca5b20] Estimating duration from bitrate, this may be inaccurate
Input #0, amr, from 'sound2.amr':
  Duration: 00:00:12.43, bitrate: 5 kb/s
    Stream #0.0: Audio: amrnb, 8000 Hz, 1 channels, flt, 5 kb/s
Incompatible sample format 'flt' for codec 'pcm_s16le', auto-selecting format 's16'
Output #0, wav, to 'out.wav':
  Metadata:
    encoder         : Lavf53.2.0
    Stream #0.0: Audio: pcm_s16le, 8000 Hz, 1 channels, s16, 128 kb/s
Stream mapping:
  Stream #0.0 -> #0.0
Press [q] to stop, [?] for help
[amrnb @ 0x8ca7900] dtx mode not implemented. Update your FFmpeg version to the newest one from Git. If the problem still occurs, it means that your file has a feature which has not been implemented.
[amrnb @ 0x8ca7900] If you want to help, upload a sample of this file to ftp://upload.ffmpeg.org/MPlayer/incoming/ and contact the ffmpeg-devel mailing list.
Error while decoding stream #0.0

...

[amrnb @ 0x8ca7900] dtx mode not implemented. Update your FFmpeg version to the newest one from Git. If the problem still occurs, it means that your file has a feature which has not been implemented.
[amrnb @ 0x8ca7900] If you want to help, upload a sample of this file to ftp://upload.ffmpeg.org/MPlayer/incoming/ and contact the ffmpeg-devel mailing list.
Error while decoding stream #0.0
size=     227kB time=14.52 bitrate= 128.0kbits/s
video:0kB audio:227kB global headers:0kB muxing overhead 0.018939%

comment:2 by matteosistisette, 13 years ago

Here's the output of ffmpeg -formats from the working versions:

$ ffmpeg -formats | grep amr

 DE amr             3GPP AMR file format
 DEA    libopencore_amrnb OpenCORE Adaptive Multi-Rate (AMR) Narrow-Band
 D A    libopencore_amrwb OpenCORE Adaptive Multi-Rate (AMR) Wide-Band

while the non-working version returns only:

 DE amr             3GPP AMR file format

So, if I compiled it with --enable-libopencore-amrnb --enable-libopencore-amrwb and I have libopencore-amr installed, why does libopencore seem to be missing?

comment:3 by matteosistisette, 13 years ago

Complete uncut output

# ffmpeg -i sound2.amr sound2.wav
ffmpeg version git-N-30158-g5f3c436, Copyright (c) 2000-2011 the FFmpeg developers

built on May 23 2011 23:28:01 with gcc 4.1.2 20080704 (Red Hat 4.1.2-50)
configuration: --enable-version3 --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libvpx --enable-libfaac --enable-libmp3lame --enable-libtheora --enable-libvorbis --enable-libx264 --enable-libxvid --disable-ffplay --enable-shared --enable-gpl --enable-postproc --enable-nonfree --enable-avfilter --enable-pthreads --extra-cflags=-fPIC
libavutil 51. 2. 1 / 51. 2. 1
libavcodec 53. 6. 0 / 53. 6. 0
libavformat 53. 2. 0 / 53. 2. 0
libavdevice 53. 0. 0 / 53. 0. 0
libavfilter 2. 10. 0 / 2. 10. 0
libswscale 0. 14. 0 / 0. 14. 0
libpostproc 51. 2. 0 / 51. 2. 0

[amr @ 0x62cb60] max_analyze_duration 5000000 reached at 5000000
[amr @ 0x62cb60] Estimating duration from bitrate, this may be inaccurate
Input #0, amr, from 'sound2.amr':

Duration: 00:00:12.43, bitrate: 5 kb/s

Stream #0.0: Audio: amrnb, 8000 Hz, 1 channels, flt, 5 kb/s

Incompatible sample format 'flt' for codec 'pcm_s16le', auto-selecting format 's16'
Output #0, wav, to 'sound2.wav':

Metadata:

encoder : Lavf53.2.0
Stream #0.0: Audio: pcm_s16le, 8000 Hz, 1 channels, s16, 128 kb/s

Stream mapping:

Stream #0.0 -> #0.0

Press [q] to stop, ? for help
[amrnb @ 0x62eaa0] dtx mode not implemented. Update your FFmpeg version to the newest one from Git. If the problem still occurs, it means that your file has a feature which has not been implemented.
[amrnb @ 0x62eaa0] If you want to help, upload a sample of this file to ftp://upload.ffmpeg.org/MPlayer/incoming/ and contact the ffmpeg-devel mailing list.
Error while decoding stream #0.0
[amrnb @ 0x62eaa0] dtx mode not implemented. Update your FFmpeg version to the newest one from Git. If the problem still occurs, it means that your file has a feature which has not been implemented.
[amrnb @ 0x62eaa0] If you want to help, upload a sample of this file to ftp://upload.ffmpeg.org/MPlayer/incoming/ and contact the ffmpeg-devel mailing list.
Error while decoding stream #0.0
[amrnb @ 0x62eaa0] dtx mode not implemented. Update your FFmpeg version to the newest one from Git. If the problem still occurs, it means that your file has a feature which has not been implemented.
[amrnb @ 0x62eaa0] If you want to help, upload a sample of this file to ftp://upload.ffmpeg.org/MPlayer/incoming/ and contact the ffmpeg-devel mailing list.
Error while decoding stream #0.0
[amrnb @ 0x62eaa0] dtx mode not implemented. Update your FFmpeg version to the newest one from Git. If the problem still occurs, it means that your file has a feature which has not been implemented.
[amrnb @ 0x62eaa0] If you want to help, upload a sample of this file to ftp://upload.ffmpeg.org/MPlayer/incoming/ and contact the ffmpeg-devel mailing list.
Error while decoding stream #0.0
[amrnb @ 0x62eaa0] dtx mode not implemented. Update your FFmpeg version to the newest one from Git. If the problem still occurs, it means that your file has a feature which has not been implemented.
[amrnb @ 0x62eaa0] If you want to help, upload a sample of this file to ftp://upload.ffmpeg.org/MPlayer/incoming/ and contact the ffmpeg-devel mailing list.
Error while decoding stream #0.0
[amrnb @ 0x62eaa0] dtx mode not implemented. Update your FFmpeg version to the newest one from Git. If the problem still occurs, it means that your file has a feature which has not been implemented.
[amrnb @ 0x62eaa0] If you want to help, upload a sample of this file to ftp://upload.ffmpeg.org/MPlayer/incoming/ and contact the ffmpeg-devel mailing list.
Error while decoding stream #0.0
[amrnb @ 0x62eaa0] dtx mode not implemented. Update your FFmpeg version to the newest one from Git. If the problem still occurs, it means that your file has a feature which has not been implemented.
[amrnb @ 0x62eaa0] If you want to help, upload a sample of this file to ftp://upload.ffmpeg.org/MPlayer/incoming/ and contact the ffmpeg-devel mailing list.
Error while decoding stream #0.0
[amrnb @ 0x62eaa0] dtx mode not implemented. Update your FFmpeg version to the newest one from Git. If the problem still occurs, it means that your file has a feature which has not been implemented.
[amrnb @ 0x62eaa0] If you want to help, upload a sample of this file to ftp://upload.ffmpeg.org/MPlayer/incoming/ and contact the ffmpeg-devel mailing list.
Error while decoding stream #0.0
[amrnb @ 0x62eaa0] dtx mode not implemented. Update your FFmpeg version to the newest one from Git. If the problem still occurs, it means that your file has a feature which has not been implemented.
[amrnb @ 0x62eaa0] If you want to help, upload a sample of this file to ftp://upload.ffmpeg.org/MPlayer/incoming/ and contact the ffmpeg-devel mailing list.
Error while decoding stream #0.0
[amrnb @ 0x62eaa0] dtx mode not implemented. Update your FFmpeg version to the newest one from Git. If the problem still occurs, it means that your file has a feature which has not been implemented.
[amrnb @ 0x62eaa0] If you want to help, upload a sample of this file to ftp://upload.ffmpeg.org/MPlayer/incoming/ and contact the ffmpeg-devel mailing list.
Error while decoding stream #0.0
[amrnb @ 0x62eaa0] dtx mode not implemented. Update your FFmpeg version to the newest one from Git. If the problem still occurs, it means that your file has a feature which has not been implemented.
[amrnb @ 0x62eaa0] If you want to help, upload a sample of this file to ftp://upload.ffmpeg.org/MPlayer/incoming/ and contact the ffmpeg-devel mailing list.
Error while decoding stream #0.0
[amrnb @ 0x62eaa0] dtx mode not implemented. Update your FFmpeg version to the newest one from Git. If the problem still occurs, it means that your file has a feature which has not been implemented.
[amrnb @ 0x62eaa0] If you want to help, upload a sample of this file to ftp://upload.ffmpeg.org/MPlayer/incoming/ and contact the ffmpeg-devel mailing list.
Error while decoding stream #0.0
[amrnb @ 0x62eaa0] dtx mode not implemented. Update your FFmpeg version to the newest one from Git. If the problem still occurs, it means that your file has a feature which has not been implemented.
[amrnb @ 0x62eaa0] If you want to help, upload a sample of this file to ftp://upload.ffmpeg.org/MPlayer/incoming/ and contact the ffmpeg-devel mailing list.
Error while decoding stream #0.0
[amrnb @ 0x62eaa0] dtx mode not implemented. Update your FFmpeg version to the newest one from Git. If the problem still occurs, it means that your file has a feature which has not been implemented.
[amrnb @ 0x62eaa0] If you want to help, upload a sample of this file to ftp://upload.ffmpeg.org/MPlayer/incoming/ and contact the ffmpeg-devel mailing list.
Error while decoding stream #0.0
[amrnb @ 0x62eaa0] dtx mode not implemented. Update your FFmpeg version to the newest one from Git. If the problem still occurs, it means that your file has a feature which has not been implemented.
[amrnb @ 0x62eaa0] If you want to help, upload a sample of this file to ftp://upload.ffmpeg.org/MPlayer/incoming/ and contact the ffmpeg-devel mailing list.
Error while decoding stream #0.0
[amrnb @ 0x62eaa0] dtx mode not implemented. Update your FFmpeg version to the newest one from Git. If the problem still occurs, it means that your file has a feature which has not been implemented.
[amrnb @ 0x62eaa0] If you want to help, upload a sample of this file to ftp://upload.ffmpeg.org/MPlayer/incoming/ and contact the ffmpeg-devel mailing list.
Error while decoding stream #0.0
[amrnb @ 0x62eaa0] dtx mode not implemented. Update your FFmpeg version to the newest one from Git. If the problem still occurs, it means that your file has a feature which has not been implemented.
[amrnb @ 0x62eaa0] If you want to help, upload a sample of this file to ftp://upload.ffmpeg.org/MPlayer/incoming/ and contact the ffmpeg-devel mailing list.
Error while decoding stream #0.0
[amrnb @ 0x62eaa0] dtx mode not implemented. Update your FFmpeg version to the newest one from Git. If the problem still occurs, it means that your file has a feature which has not been implemented.
[amrnb @ 0x62eaa0] If you want to help, upload a sample of this file to ftp://upload.ffmpeg.org/MPlayer/incoming/ and contact the ffmpeg-devel mailing list.
Error while decoding stream #0.0
[amrnb @ 0x62eaa0] dtx mode not implemented. Update your FFmpeg version to the newest one from Git. If the problem still occurs, it means that your file has a feature which has not been implemented.
[amrnb @ 0x62eaa0] If you want to help, upload a sample of this file to ftp://upload.ffmpeg.org/MPlayer/incoming/ and contact the ffmpeg-devel mailing list.
Error while decoding stream #0.0
[amrnb @ 0x62eaa0] dtx mode not implemented. Update your FFmpeg version to the newest one from Git. If the problem still occurs, it means that your file has a feature which has not been implemented.
[amrnb @ 0x62eaa0] If you want to help, upload a sample of this file to ftp://upload.ffmpeg.org/MPlayer/incoming/ and contact the ffmpeg-devel mailing list.
Error while decoding stream #0.0
[amrnb @ 0x62eaa0] dtx mode not implemented. Update your FFmpeg version to the newest one from Git. If the problem still occurs, it means that your file has a feature which has not been implemented.
[amrnb @ 0x62eaa0] If you want to help, upload a sample of this file to ftp://upload.ffmpeg.org/MPlayer/incoming/ and contact the ffmpeg-devel mailing list.
Error while decoding stream #0.0
[amrnb @ 0x62eaa0] dtx mode not implemented. Update your FFmpeg version to the newest one from Git. If the problem still occurs, it means that your file has a feature which has not been implemented.
[amrnb @ 0x62eaa0] If you want to help, upload a sample of this file to ftp://upload.ffmpeg.org/MPlayer/incoming/ and contact the ffmpeg-devel mailing list.
Error while decoding stream #0.0
[amrnb @ 0x62eaa0] dtx mode not implemented. Update your FFmpeg version to the newest one from Git. If the problem still occurs, it means that your file has a feature which has not been implemented.
[amrnb @ 0x62eaa0] If you want to help, upload a sample of this file to ftp://upload.ffmpeg.org/MPlayer/incoming/ and contact the ffmpeg-devel mailing list.
Error while decoding stream #0.0
[amrnb @ 0x62eaa0] dtx mode not implemented. Update your FFmpeg version to the newest one from Git. If the problem still occurs, it means that your file has a feature which has not been implemented.
[amrnb @ 0x62eaa0] If you want to help, upload a sample of this file to ftp://upload.ffmpeg.org/MPlayer/incoming/ and contact the ffmpeg-devel mailing list.
Error while decoding stream #0.0
[amrnb @ 0x62eaa0] dtx mode not implemented. Update your FFmpeg version to the newest one from Git. If the problem still occurs, it means that your file has a feature which has not been implemented.
[amrnb @ 0x62eaa0] If you want to help, upload a sample of this file to ftp://upload.ffmpeg.org/MPlayer/incoming/ and contact the ffmpeg-devel mailing list.
Error while decoding stream #0.0
[amrnb @ 0x62eaa0] dtx mode not implemented. Update your FFmpeg version to the newest one from Git. If the problem still occurs, it means that your file has a feature which has not been implemented.
[amrnb @ 0x62eaa0] If you want to help, upload a sample of this file to ftp://upload.ffmpeg.org/MPlayer/incoming/ and contact the ffmpeg-devel mailing list.
Error while decoding stream #0.0
size= 227kB time=14.52 bitrate= 128.0kbits/s
video:0kB audio:227kB global headers:0kB muxing overhead 0.018939%

comment:4 by Carl Eugen Hoyos, 13 years ago

Summary: bogus error message with amr files: [amrnb @ 0x626e90] dtx mode not implemented.[amrnb @ 0x626e90] dtx mode not implemented.

Please confirm that you also get this output if you configure FFmpeg with --disable-decoder=amrnb
(And the command to show the available codecs is ffmpeg -codecs)

in reply to:  4 comment:5 by matteosistisette, 13 years ago

(And the command to show the available codecs is ffmpeg -codecs)

Hm, interesting.
On the non-working box, ffmpeg -codecs shows:

D A amrnb Adaptive Multi-Rate NarrowBand
D A amrwb Adaptive Multi-Rate WideBand
DEA libopencore_amrnb OpenCORE Adaptive Multi-Rate (AMR) Narrow-Band
D A libopencore_amrwb OpenCORE Adaptive Multi-Rate (AMR) Wide-Band

But how do you explain the difference in the output of -formats? May the problem actually be the amr container and not the codec?

Btw on the working boxes, ffmpeg -codecs shows:

ffmpeg: missing argument for option '-codecs'

:O

in reply to:  4 ; comment:6 by matteosistisette, 13 years ago

Replying to cehoyos:

Please confirm that you also get this output if you configure FFmpeg with --disable-decoder=amrnb
(And the command to show the available codecs is ffmpeg -codecs)

YESS!! :)) I mean, no, after configuring it with --disable-decoder=amrnb and recompiling it works!!!

Now the question is: should that be necessary? If there is any conflict, shouldn't it be detected? Isn't amrnb supposed to be already disabled?

by Carl Eugen Hoyos, 11 years ago

in reply to:  6 comment:7 by Timothy Gu, 11 years ago

Summary: [amrnb @ 0x626e90] dtx mode not implemented.amrnb dec: dtx mode not implemented.

Replying to matteosistisette:

Now the question is: should that be necessary? If there is any conflict, shouldn't it be detected? Isn't amrnb supposed to be already disabled?

The FFmpeg default native amrnb decoder does NOT support dtx, but the libopencore_amrnb does. By disabling the native one at build time, you force ffmpeg to use the opencore one which supports etc.

Note: See TracTickets for help on using tickets.