Discussion:
[MPlayer-users] Cannot find codec for audio format
Geoffrey Leach
2009-07-17 21:24:24 UTC
Permalink
In my tireless (!) persuit of sound correctness, I've come across a
couple of codecs that give me
Cannot find codec for audio format 0x2000.
So, what is audio format 0x2000? To put it another way, what is it
telling me about the mp2 file I'm playing?

Thanks.
Carl Eugen Hoyos
2009-07-17 21:31:09 UTC
Permalink
Post by Geoffrey Leach
Cannot find codec for audio format 0x2000.
Complete, uncut output of mplayer call missing.

Carl Eugen
Geoffrey Leach
2009-07-17 21:55:23 UTC
Permalink
Post by Carl Eugen Hoyos
Post by Geoffrey Leach
Cannot find codec for audio format 0x2000.
Complete, uncut output of mplayer call missing.
Sigh! ... sorry 'bout that.

mplayer -dr -tskeepbroken -ac mp3 -afm mp3lib -vo vdpau -alang en
foo.mp2
Same result (with approriate change) from -ac faad -afm faad, ac ffmp2
-afm ffmpeg, -ao alsa -ac hwmpa

No need to tell me I'm grasping at straws. I know that :-(

MPlayer SVN-r29251-4.3.2 (C) 2000-2009 MPlayer Team

Playing /tv/Bones/The_Bones_That_Foam.mp2.
TS file format detected.
VIDEO MPEG2(pid=49) AUDIO A52(pid=52) NO SUBS (yet)! PROGRAM N. 3
VIDEO: MPEG2 1280x720 (aspect 3) 59.940 fps 19392.8 kbps (2424.1
kbyte/s)
==========================================================================
Opening video decoder: [mpegpes] MPEG 1/2 Video passthrough
VDec: vo config request - 1280 x 720 (preferred colorspace: Mpeg PES)
Could not find matching colorspace - retrying with -vf scale...
Opening video filter: [scale]
The selected video_out device is incompatible with this codec.
Try appending the scale filter to your filter list,
e.g. -vf spp,scale instead of -vf spp.
VDecoder init failed :(
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Unsupported PixelFormat -1
Selected video codec: [ffmpeg2] vfm: ffmpeg (FFmpeg MPEG-2)
==========================================================================
==========================================================================
Forced audio codec: mp3
Cannot find codec for audio format 0x2000.
Audio: no sound
Starting playback...
VDec: vo config request - 1280 x 720 (preferred colorspace: Planar
YV12)
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 1.78:1 - prescaling to correct movie aspect.
VO: [vdpau] 1280x720 => 1280x720 Planar YV12 [fs] [zoom]
New_Face failed. Maybe the font path is wrong.
Please supply the text font file (~/.mplayer/subfont.ttf).
subtitle font: load_sub_face failed.
New_Face failed. Maybe the font path is wrong.
Please supply the text font file (~/.mplayer/subfont.ttf).
subtitle font: load_sub_face failed.
Carl Eugen Hoyos
2009-07-17 22:18:06 UTC
Permalink
Post by Geoffrey Leach
mplayer -dr -tskeepbroken -ac mp3 -afm mp3lib -vo vdpau -alang en
foo.mp2
Same result (with approriate change) from -ac faad -afm faad, ac ffmp2
-afm ffmpeg, -ao alsa -ac hwmpa
The idea is not to select ac at all, but let mplayer decide that ffac3 and a52
are the right choices.

Carl Eugen
Geoffrey Leach
2009-07-17 23:14:16 UTC
Permalink
Post by Carl Eugen Hoyos
Post by Geoffrey Leach
mplayer -dr -tskeepbroken -ac mp3 -afm mp3lib -vo vdpau -alang en
foo.mp2
Same result (with approriate change) from -ac faad -afm faad, ac
ffmp2
Post by Geoffrey Leach
-afm ffmpeg, -ao alsa -ac hwmpa
The idea is not to select ac at all, but let mplayer decide that
ffac3
and a52
are the right choices.
Not something I would have tried. Thanks.

Unfortunately the result is the same asw with -ao alsa, except that
mplayer complains that my system is too slow (without the -ao alsa).
FWIW, I'm running the latest alsa driver.

One question occurred as I'm writing this. Could the fact that I'm
outputting to HDMI be at all relevant?
Geoffrey Leach
2009-07-17 23:40:39 UTC
Permalink
Post by Geoffrey Leach
Post by Carl Eugen Hoyos
Post by Geoffrey Leach
mplayer -dr -tskeepbroken -ac mp3 -afm mp3lib -vo vdpau -alang en
foo.mp2
Same result (with approriate change) from -ac faad -afm faad, ac
ffmp2
Post by Geoffrey Leach
-afm ffmpeg, -ao alsa -ac hwmpa
The idea is not to select ac at all, but let mplayer decide that
ffac3
and a52
are the right choices.
Not something I would have tried. Thanks.
Unfortunately the result is the same asw with -ao alsa, except that
mplayer complains that my system is too slow (without the -ao alsa).
FWIW, I'm running the latest alsa driver.
One question occurred as I'm writing this. Could the fact that I'm
outputting to HDMI be at all relevant?
Replying to my own post ...

Yes, indeed it is. The solution (im my case, at least) to _some_ OTA-
recorded mp2 is -ao alsa:device=plughw=0.3 Which was (almost) staring
me in the face in the man page, but the significance of it was not
obvious.
Carl Eugen Hoyos
2009-07-18 10:27:51 UTC
Permalink
Post by Geoffrey Leach
Unfortunately the result is the same asw with -ao alsa, except that
mplayer complains that my system is too slow (without the -ao alsa).
I fear I do not understand this sentence.

However, complete uncut output of your call to mplayer is missing and the option
you need is probably -demuxer lavf (if your problem is not simply too slow
hardware).

Carl Eugen
Geoffrey Leach
2009-07-18 16:48:35 UTC
Permalink
Post by Geoffrey Leach
Post by Geoffrey Leach
Unfortunately the result is the same asw with -ao alsa, except
that
Post by Geoffrey Leach
mplayer complains that my system is too slow (without the -ao
alsa).
I fear I do not understand this sentence.
However, complete uncut output of your call to mplayer is missing and the option
you need is probably -demuxer lavf (if your problem is not simply too slow
hardware).
Carl,

Thanks for your help. As I'm running Intel Core 2 @ 3GHz, I probably
have enough power. My problem was resolved by adding -ao
alsa::device=plughw=0.3 to get proper access to HDMI. I'll try adding
in the -demuxer, as there are still some small problems.

Nico Sabbi
2009-07-17 22:04:37 UTC
Permalink
Post by Geoffrey Leach
In my tireless (!) persuit of sound correctness, I've come across a
couple of codecs that give me
Cannot find codec for audio format 0x2000.
So, what is audio format 0x2000? To put it another way, what is it
telling me about the mp2 file I'm playing?
Thanks.
0x2000 is ac3
Loading...