Author Topic: Mplayer Not Playing Audio (& Other Stuff)  (Read 6253 times)

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
Mplayer Not Playing Audio (& Other Stuff)
« Reply #15 on: February 01, 2006, 07:39:32 am »
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:

Quote
Code: [Select]
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
C750 OZ3.5.4 (GPE, 2.6.x kernel)
SL5500 OZ3.5.4 (Opie)
Nokia 770
Serial GPS, WCF-12, Socket Ethernet & BT, Ratoc USB
WinXP, Mandriva

grog

  • Hero Member
  • *****
  • Posts: 692
    • View Profile
    • http://
Mplayer Not Playing Audio (& Other Stuff)
« Reply #16 on: February 01, 2006, 10:56:40 am »
Quote
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:

Code: [Select]
==> 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.

Quote
I think you may be right about the encoding. This message:

Quote
Code: [Select]
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]
I was looking at that too. I checked the codecs list for mpeg4:

Code: [Select]
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 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
GROG!

grog

  • Hero Member
  • *****
  • Posts: 692
    • View Profile
    • http://
Mplayer Not Playing Audio (& Other Stuff)
« Reply #17 on: February 02, 2006, 04:24:24 pm »
OK, I finally got it. I had to sign on to the mencoder mailing list & ask, where I was (politely) directed to mplayer FAQ, 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.
GROG!

Storm

  • Full Member
  • ***
  • Posts: 156
    • View Profile
    • http://
Mplayer Not Playing Audio (& Other Stuff)
« Reply #18 on: March 03, 2006, 06:24:25 pm »
Quote
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]

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:

Code: [Select]
c=mad
ao=oss

Change it to read

Code: [Select]
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
Zaurus SL-5500/Hentges OZ 3.5.4.1
Ambicom WL1100-CF wireless card
Desktop: Debian/GNU Linux (unstable)