P
petru.marginean
Hi,
I'm trying to convert a aac file (retrieved from a online radio
station, using fPls) into a mp3 file (to listen to it on my MP3
player).
I've compiled 'mplayer' and 'ffmpeg' (on Windows, using cygwin).
I can do the following basic operations:
1. Listen to the aac file using 'mplayer' (I assume then the aac
decoder is working, right?)
2. Convert a mp3 to another mp3 file using 'ffmpeg' (I assume then
the mp3 coder is working, right?)
3. Convert a mp3 to a aac file
However when trying to:
4. Convert a aac to mp3 file, I get this error:
"Unsupported codec (id=86018) for input stream #0.0"
I pasted below samples for every the above operations. I guess the
answer is in the output these utilities shows, but I cannot decode it
myself.
Any idea what's wrong and what diagnotics/testing I can do more?
Many thanks,
Petru
1. Listen to a aac file is working fine:
-----------------------------------------------------
$> mplayer /tmp/radio/input.aac
MPlayer dev-SVN-r19147-3.4.4 (C) 2000-2006 MPlayer Team
CPU: AMD Athlon(tm) 64 X2 Dual Core Processor 3800+ (Family: 15, Model:
35, Stepping: 2)
CPUflags: MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 1
Compiled for x86 CPU with extensions: MMX MMX2 3DNow 3DNowEx SSE SSE2
Playing /tmp/radio/input.aac.
libavformat file format detected.
==========================================================================
Opening audio decoder: [faad] AAC (MPEG2/4 Advanced Audio Coding)
AUDIO: 44100 Hz, 2 ch, s16le, 35.5 kbit/2.51% (ratio: 4435->176400)
Selected audio codec: [faad] afm: faad (FAAD AAC (MPEG-2/MPEG-4 Audio)
decoder)
==========================================================================
AO: [win32] 44100Hz 2ch s16le (2 bytes per sample)
Video: no video
Starting playback...
A: 2.7 (02.6) of 1233.4 (20:33.4) 4.1%
2. Converting a mp3 to another mp3 file is also working (128Kb => 64Kb)
---------------------------------------------------------------------------------------------------------
$> ffmpeg -i /tmp/radio/input.mp3 -acodec mp3 -ac 2 -ab 64
/tmp/radio/test.mp3
FFmpeg version SVN-r5804, Copyright (c) 2000-2004 Fabrice Bellard
configuration: --enable-mp3lame --enable-faac
libavutil version: 49.0.0
libavcodec version: 51.10.0
libavformat version: 50.5.0
built on Jul 23 2006 02:11:46, gcc: 3.4.4 (cygming special) (gdc
0.12, using dmd 0.125)
Input #0, mp3, from '/tmp/radio/input.mp3':
Duration: 00:02:40.7, start: 0.000000, bitrate: 128 kb/s
Stream #0.0: Audio: mp3, 44100 Hz, stereo, 128 kb/s
File '/tmp/radio/test.mp3' already exists. Overwrite ? [y/N] y
Output #0, mp3, to '/tmp/radio/test.mp3':
Stream #0.0: Audio: mp3, 44100 Hz, stereo, 64 kb/s
Stream mapping:
Stream #0.0 -> #0.0
Press [q] to stop encoding
size= 1256kB time=160.8 bitrate= 64.0kbits/s
video:0kB audio:1256kB global headers:0kB muxing overhead 0.000000%
3. Convert a mp3 to a aac file is fine
----------------------------------------------
$> ffmpeg -i /tmp/radio/input.mp3 -acodec aac /tmp/radio/output.aac
FFmpeg version SVN-r5804, Copyright (c) 2000-2004 Fabrice Bellard
configuration: --enable-mp3lame --enable-faac
libavutil version: 49.0.0
libavcodec version: 51.10.0
libavformat version: 50.5.0
built on Jul 23 2006 02:11:46, gcc: 3.4.4 (cygming special) (gdc
0.12, using dmd 0.125)
Input #0, mp3, from '/tmp/radio/input.mp3':
Duration: 00:02:40.7, start: 0.000000, bitrate: 128 kb/s
Stream #0.0: Audio: mp3, 44100 Hz, stereo, 128 kb/s
Output #0, adts, to '/tmp/radio/output.aac':
Stream #0.0: Audio: aac, 44100 Hz, stereo, 64 kb/s
Stream mapping:
Stream #0.0 -> #0.0
Press [q] to stop encoding
size= 1255kB time=160.6 bitrate= 64.0kbits/s
video:0kB audio:1255kB global headers:0kB muxing overhead 0.000000%
4. Converting the aac input file to a mp3 file fails!!
------------------------------------------------------------------------
$> ffmpeg -i /tmp/radio/input.aac -acodec mp3 -ac 2 -ab 128
/tmp/radio/test.mp3
FFmpeg version SVN-r5804, Copyright (c) 2000-2004 Fabrice Bellard
configuration: --enable-mp3lame --enable-faac
libavutil version: 49.0.0
libavcodec version: 51.10.0
libavformat version: 50.5.0
built on Jul 23 2006 02:11:46, gcc: 3.4.4 (cygming special) (gdc
0.12, using dmd 0.125)
Input #0, aac, from '/tmp/radio/input.aac':
Duration: 00:20:33.4, start: 0.000000, bitrate: 35 kb/s
Stream #0.0: Audio: 0x0000, 22050 Hz, stereo, 35 kb/s
File '/tmp/radio/test.mp3' already exists. Overwrite ? [y/N] y
Output #0, mp3, to '/tmp/radio/test.mp3':
Stream #0.0: Audio: mp3, 22050 Hz, stereo, 128 kb/s
Stream mapping:
Stream #0.0 -> #0.0
Unsupported codec (id=86018) for input stream #0.0
I'm trying to convert a aac file (retrieved from a online radio
station, using fPls) into a mp3 file (to listen to it on my MP3
player).
I've compiled 'mplayer' and 'ffmpeg' (on Windows, using cygwin).
I can do the following basic operations:
1. Listen to the aac file using 'mplayer' (I assume then the aac
decoder is working, right?)
2. Convert a mp3 to another mp3 file using 'ffmpeg' (I assume then
the mp3 coder is working, right?)
3. Convert a mp3 to a aac file
However when trying to:
4. Convert a aac to mp3 file, I get this error:
"Unsupported codec (id=86018) for input stream #0.0"
I pasted below samples for every the above operations. I guess the
answer is in the output these utilities shows, but I cannot decode it
myself.
Any idea what's wrong and what diagnotics/testing I can do more?
Many thanks,
Petru
1. Listen to a aac file is working fine:
-----------------------------------------------------
$> mplayer /tmp/radio/input.aac
MPlayer dev-SVN-r19147-3.4.4 (C) 2000-2006 MPlayer Team
CPU: AMD Athlon(tm) 64 X2 Dual Core Processor 3800+ (Family: 15, Model:
35, Stepping: 2)
CPUflags: MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 1
Compiled for x86 CPU with extensions: MMX MMX2 3DNow 3DNowEx SSE SSE2
Playing /tmp/radio/input.aac.
libavformat file format detected.
==========================================================================
Opening audio decoder: [faad] AAC (MPEG2/4 Advanced Audio Coding)
AUDIO: 44100 Hz, 2 ch, s16le, 35.5 kbit/2.51% (ratio: 4435->176400)
Selected audio codec: [faad] afm: faad (FAAD AAC (MPEG-2/MPEG-4 Audio)
decoder)
==========================================================================
AO: [win32] 44100Hz 2ch s16le (2 bytes per sample)
Video: no video
Starting playback...
A: 2.7 (02.6) of 1233.4 (20:33.4) 4.1%
2. Converting a mp3 to another mp3 file is also working (128Kb => 64Kb)
---------------------------------------------------------------------------------------------------------
$> ffmpeg -i /tmp/radio/input.mp3 -acodec mp3 -ac 2 -ab 64
/tmp/radio/test.mp3
FFmpeg version SVN-r5804, Copyright (c) 2000-2004 Fabrice Bellard
configuration: --enable-mp3lame --enable-faac
libavutil version: 49.0.0
libavcodec version: 51.10.0
libavformat version: 50.5.0
built on Jul 23 2006 02:11:46, gcc: 3.4.4 (cygming special) (gdc
0.12, using dmd 0.125)
Input #0, mp3, from '/tmp/radio/input.mp3':
Duration: 00:02:40.7, start: 0.000000, bitrate: 128 kb/s
Stream #0.0: Audio: mp3, 44100 Hz, stereo, 128 kb/s
File '/tmp/radio/test.mp3' already exists. Overwrite ? [y/N] y
Output #0, mp3, to '/tmp/radio/test.mp3':
Stream #0.0: Audio: mp3, 44100 Hz, stereo, 64 kb/s
Stream mapping:
Stream #0.0 -> #0.0
Press [q] to stop encoding
size= 1256kB time=160.8 bitrate= 64.0kbits/s
video:0kB audio:1256kB global headers:0kB muxing overhead 0.000000%
3. Convert a mp3 to a aac file is fine
----------------------------------------------
$> ffmpeg -i /tmp/radio/input.mp3 -acodec aac /tmp/radio/output.aac
FFmpeg version SVN-r5804, Copyright (c) 2000-2004 Fabrice Bellard
configuration: --enable-mp3lame --enable-faac
libavutil version: 49.0.0
libavcodec version: 51.10.0
libavformat version: 50.5.0
built on Jul 23 2006 02:11:46, gcc: 3.4.4 (cygming special) (gdc
0.12, using dmd 0.125)
Input #0, mp3, from '/tmp/radio/input.mp3':
Duration: 00:02:40.7, start: 0.000000, bitrate: 128 kb/s
Stream #0.0: Audio: mp3, 44100 Hz, stereo, 128 kb/s
Output #0, adts, to '/tmp/radio/output.aac':
Stream #0.0: Audio: aac, 44100 Hz, stereo, 64 kb/s
Stream mapping:
Stream #0.0 -> #0.0
Press [q] to stop encoding
size= 1255kB time=160.6 bitrate= 64.0kbits/s
video:0kB audio:1255kB global headers:0kB muxing overhead 0.000000%
4. Converting the aac input file to a mp3 file fails!!
------------------------------------------------------------------------
$> ffmpeg -i /tmp/radio/input.aac -acodec mp3 -ac 2 -ab 128
/tmp/radio/test.mp3
FFmpeg version SVN-r5804, Copyright (c) 2000-2004 Fabrice Bellard
configuration: --enable-mp3lame --enable-faac
libavutil version: 49.0.0
libavcodec version: 51.10.0
libavformat version: 50.5.0
built on Jul 23 2006 02:11:46, gcc: 3.4.4 (cygming special) (gdc
0.12, using dmd 0.125)
Input #0, aac, from '/tmp/radio/input.aac':
Duration: 00:20:33.4, start: 0.000000, bitrate: 35 kb/s
Stream #0.0: Audio: 0x0000, 22050 Hz, stereo, 35 kb/s
File '/tmp/radio/test.mp3' already exists. Overwrite ? [y/N] y
Output #0, mp3, to '/tmp/radio/test.mp3':
Stream #0.0: Audio: mp3, 22050 Hz, stereo, 128 kb/s
Stream mapping:
Stream #0.0 -> #0.0
Unsupported codec (id=86018) for input stream #0.0