OESF Portables Forum
Everything Else => Zaurus Distro Support and Discussion => Distros, Development, and Model Specific Forums => Archived Forums => Angstrom & OpenZaurus => Topic started by: grog on January 29, 2006, 01:11:32 pm
-
Hi all. I'm having trouble getting mplayer 1.0pre6-3.4.3 from playing producing any audio output. The mp3's I have play fine with opie-mediaplaye2 & xmms, and mplayer plays the video portions of the files I've converted using PocketDivXEncoder (http://divx.ppccool.com/) (I tried the instructions for using mencoder from here (http://www.cs.unc.edu/~hensley/zaurus/encode.html), but mplayer couldn't find the codec used, even when I specified mpeg. I'd much prefer to use mencoder if I could, though. Much more flexible). Mplayer says it finds the mp3 decoder:
Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
AUDIO: 22050 Hz, 2 ch, 16 bit (0x10), ratio: 3000->88200 (24.0 kbit)
Selected audio codec: [mp3] afm:mp3lib (mp3lib MPEG layer-2, layer-3)
Any ideas I could try? thks
-
Either specify -ac mad explicitly, or put 'ac mad' in the mplayer conf file (whose name escapes me I'm afraid).
Si
-
Either specify -ac mad explicitly, or put 'ac mad' in the mplayer conf file (whose name escapes me I'm afraid).[div align=\"right\"][a href=\"index.php?act=findpost&pid=112957\"][{POST_SNAPBACK}][/a][/div]
Worked like a charm. For the record, the file is /home/root/.mplayer/config, and the option needs to be specified as 'ac=mad' there.
Thanks
-
I would be tempted to conclude that this is a bug (the fact that it's not using mad by default, or that the config file isn't auto-generated), however it is bad form for a program to make any alterations to files in the home directories, so I'm not sure what the answer is.
Might be worth a bug tracker report anyway,
Si
-
Same thing using mplayer-atty (on zaurus, far much better than mplayer, and i hope atty version will become the officially recomanded mplayer version for openzaurus, by the way).
On OZ 3.5.4 RC GPE, i also had to
# chmod 666 /dev/mem
(thanks XorA)
Cheers.
-
Good point, the atty version is optimised better afaik and should work fine on grog's 5600 (though it won't work on the SA machines - collies)
Si
-
Might be worth a bug tracker report anyway,[div align=\"right\"][{POST_SNAPBACK}][/a][/div] (http://index.php?act=findpost&pid=112963\")
I'll put one in. I can't seem to get to the bugzilla page right now, though. Site problems?
Same thing using mplayer-atty (on zaurus, far much better than mplayer, and i hope atty version will become the officially recomanded mplayer version for openzaurus, by the way).
What's the diff?
On OZ 3.5.4 RC GPE, i also had to
# chmod 666 /dev/mem[div align=\"right\"][a href=\"index.php?act=findpost&pid=112965\"][{POST_SNAPBACK}][/a][/div]
That's just because in GPE you're probably not running as root.
So, any suggestions on how I can encode my vids? I'm looking at [a href=\"http://home.earthlink.net/~cresho/start.htm]cresho's page[/url] right now, but he uses a lot of different software. Can't I just make due with mencoder somehow? I'm looking to the not too distant future where I might be able to dump the 'doze desktop & move to linux.
-
Good point, the atty version is optimised better afaik and should work fine on grog's 5600 (though it won't work on the SA machines - collies)[div align=\"right\"][a href=\"index.php?act=findpost&pid=112984\"][{POST_SNAPBACK}][/a][/div]
Any chance to make it available in the poodle machine feed?
-
You can get a copy from XorA's feed iirc - look at the encoding/playing howto on the oz.org website.
Si
-
You can get a copy from XorA's feed iirc - look at the encoding/playing howto on the oz.org website.[div align=\"right\"][{POST_SNAPBACK}][/a][/div] (http://index.php?act=findpost&pid=113004\")
There's no link off the [a href=\"http://openzaurus.org/wordpress/howto/encoding-and-playing-video-for-c7x0-devices/]howto[/url] (but I am going to try some of the encoding tips there, thanks ) and can't find any other ipk sources, either on oz.org, oesf.org, ipkgfind or google. Is it something that could be added to the oz feeds? Alan, do you have a copy I could try?
thks
-
If anybody can offer assistance, I've tried encoding with the instructions off of the OZ howto (http://openzaurus.org/wordpress/howto/encoding-and-playing-video-for-c7x0-devices/):
mencoder FILE-IN.avi -srate 24000 -ofps 15 -sws 2 -ovc lavc -vf scale=320:240,eq2=1.0:0.6:0.1:0.7 -lavcopts vcodec=mpeg4:vhq:vbitrate=150 -lameopts cbr:br=64:mode=3 -vop scale=320:240 -oac mp3lame -o FILE-OUT.avi
but while mplayer plays the sound fine, there's no video. mplayer's output has the following:
Cannot find codec matching selected -vo and video format 0x34504D46.
mplayer itself doesn't seem to offer an mpeg4 codec. Am I reading this right?
grog:$ mplayer -vo help
MPlayer 1.0pre6-3.4.3 (C) 2000-2004 MPlayer Team
CPU: ARM
Available video output drivers:
fbdev Framebuffer Device
fbdev2 Framebuffer Device
null Null video output
mpegpes Mpeg-PES to DVB card
yuv4mpeg yuv4mpeg output for mjpegtools
tga Targa output
pnm PPM/PGM/PGMYUV file
md5sum md5sum of each frame
thks in advance
-
The codec support is a compile-time option. It may be that the version you're using dosen't support mpeg4. Alternatively it may have support (e.g. DivX) but not for the specific fourCC you've given it. I'm not sure whether this can be changed at run-time, but I doubt it (though it may be possible to force it to use a certain codec and not try to determine it itself).
Si
-
The codec support is a compile-time option. It may be that the version you're using dosen't support mpeg4. Alternatively it may have support (e.g. DivX) but not for the specific fourCC you've given it. I'm not sure whether this can be changed at run-time, but I doubt it (though it may be possible to force it to use a certain codec and not try to determine it itself)[div align=\"right\"][{POST_SNAPBACK}][/a][/div] (http://index.php?act=findpost&pid=113107\")
Ok, so given this:
grog:$ mplayer -vo help
MPlayer 1.0pre6-3.4.3 (C) 2000-2004 MPlayer Team
CPU: ARM
Available video output drivers:
fbdev Framebuffer Device
fbdev2 Framebuffer Device
null Null video output
mpegpes Mpeg-PES to DVB card
yuv4mpeg yuv4mpeg output for mjpegtools
tga Targa output
pnm PPM/PGM/PGMYUV file
md5sum md5sum of each frame
I would assume that neither mpeg4 nor divx are supported. This is the only mplayer in the oz feed. Is there anywhere else I can get another version, or is there a way I can add codecs? Can I just create a /home/root/.mplayer/codecs (for example) & place the [a href=\"http://ftp5.mplayerhq.hu/mplayer/releases/codecs/essential-20050412.tar.bz2]essential codecs[/url] there & mplayer will recongnize them?
-
I fear I'm now getting a bit out of my depth (certainly without looking into these things!), but:
grog:<pts/0>$ mplayer -vo help
I think you want something else - vo is for video output (e.g. to the screen). Try -vc instead.
or is there a way I can add codecs? Can I just create a /home/root/.mplayer/codecs (for example) & place the essential codecs there & mplayer will recongnize them?
I'm not sure about this, however I thought that mplayer had to have its codecs built in.... (in any case see above, -vc, and see what that says).
Si
-
I fear I'm now getting a bit out of my depth (certainly without looking into these things!), but:
You're efforts are greatly appreciated, nonetheless
grog:<pts/0>$ mplayer -vo help
I think you want something else - vo is for video output (e.g. to the screen). Try -vc instead.[div align=\"right\"][a href=\"index.php?act=findpost&pid=113239\"][{POST_SNAPBACK}][/a][/div]
You're absolutely right. That command shows about 190 codecs installed, amongst them various mpeg & divx ones. So mplayer seems good to go in that department.
So I can only assume that there's something wrong with the method I'm using to encode. I'll try some more things there & see how it goes. I the mean time if anybody else can think of something, please feel free. I'l post back with a solution otherwise.
Thanks lardman.
-
You could try passing one of the verbose switches (-v at a guess, possibly with a number) and it will tell you exactly what's gone wrong.
I think you may be right about the encoding. This message:
Cannot find codec matching selected -vo and video format 0x34504D46
Gives a fourCC of "fmp4".
I've never heard of that one (though it does exist - I did a quick google).
Looks like mplayer doesn't recognise it either.
Si
-
You could try passing one of the verbose switches (-v at a guess, possibly with a number) and it will tell you exactly what's gone wrong.
I tried that. Here's what (I think) are the relevant sections:
==> Found video stream: 0
====== STREAM Header =====
Type: vids FCC: FMP4 (34504D46)
Flags: 0
Priority: 0 Language: 0
InitialFrames: 0
Rate: 15/1 = 15.000
Start: 0 Len: 81286
Suggested BufferSize: 35863
Quality 0
Sample size: 0
==========================
found 'bih', 40 bytes of 40
======= VIDEO Format ======
biSize 40
biWidth 320
biHeight 240
biPlanes 1
biBitCount 24
biCompression 877677894='FMP4'
biSizeImage 230400
===========================
But there doesn't seem (to me) to be much more info.
I think you may be right about the encoding. This message:
Cannot find codec matching selected -vo and video format 0x34504D46
Gives a fourCC of "fmp4".
I've never heard of that one (though it does exist - I did a quick google).
Looks like mplayer doesn't recognise it either.[div align=\"right\"][{POST_SNAPBACK}][/a][/div] (http://index.php?act=findpost&pid=113253\")
I was looking at that too. I checked the codecs list for mpeg4:
grog:$ mplayer -vc help | grep "mpe*g[-\. ]*4"
ff4xm ffmpeg working FFmpeg 4XM video [4xm]
ffdivx ffmpeg working FFmpeg DivX;-) (MS MPEG-4 v3) [msmpeg4]
ffmp42 ffmpeg working FFmpeg M$ MPEG-4 v2 [msmpeg4v2]
ffmp41 ffmpeg working FFmpeg M$ MPEG-4 v1 [msmpeg4v1]
ffodivx ffmpeg working FFmpeg MPEG-4 [mpeg4]
mpeg4ds dshow working Microsoft MPEG-4 v1/v2 [mpg4ds32.ax]
mpeg4 vfw working Microsoft MPEG-4 v1/v2 [mpg4c32.dll]
qtmpeg4 qtvideo crashing win32/quicktime MPEG-4 decoder [QuickTime.qts]
And there's no such as 'fmp4' there.
One thing I'm going to try later (when I get back to my home machine) is to reload the codecs. I'm currently using the [a href=\"http://www.mplayerhq.hu/MPlayer/releases/codecs/windows-all-20050412.zip]windows all[/url], but maybe there's a difference between that & the windows essential (http://www.mplayerhq.hu/MPlayer/releases/codecs/windows-essential-20050412.zip) that's messing things up(?). So I'm going to move all the codec files out of the way & put just the essential package in place & see if that makes a difference.
thks
-
OK, I finally got it. I had to sign on to the mencoder mailing list & ask, where I was (politely) directed to mplayer FAQ (http://tuxrip.free.fr/MPlayer-DOCS-HTML/en/faq.html#id295145), where my problem was spelt out in plain english .
The short form. To support newer versions of mplayer, one has to specify '-ffourcc XVID' to force the video tag value to what mplayer can recognize.
My Z is now happily playing my converted videos! YAH!!
Thanks lardman for your help. I've added a comment to the OZ FAQ (http://openzaurus.org/wordpress/howto/encoding-and-playing-video-for-c7x0-devices/).
-
Either specify -ac mad explicitly, or put 'ac mad' in the mplayer conf file (whose name escapes me I'm afraid).
Si
[div align=\"right\"][{POST_SNAPBACK}][/a][/div] (http://index.php?act=findpost&pid=112957\")
I was having the same problem, and found a typo the /usr/etc/mplayer/mplayer.conf. (This is in Hentges 3.5.4rc.) The contents of the file are as follows:
c=mad
ao=oss
Change it to read
ac=mad
ao=oss
Viola! I have sound on my videos.
I do have a related question. I have been encoding videos like a madman since I fixed this. Most of them come just fine with respect to rotation (I'm using [a href=\"http://www.cs.unc.edu/~hensley/zaurus/encode.html]mencoder[/url] to encode), though every once in a while the Zaurus doesn't rotate them, instead of coming out in 320x240, the vids are 240x320, and I haven't found a cause for it. Anyone else seen this?
--Storm