Author Topic: Multimedia In Oz352  (Read 4126 times)

zenken

  • Newbie
  • *
  • Posts: 17
    • View Profile
    • http://
Multimedia In Oz352
« on: December 27, 2004, 04:52:57 pm »
I've tried all three of these in order to use my 5600 (OZ352-Opie) as a multimedia player, but I can't get any of them working properly.

xmms-embedded_20040327-r3 ... will play ogg audio and mp3, but not video ogm, or anything else, eg. mp3, mpg, avi, wav.

opie-mediaplayer1_1.1.7-r1 ... will play mp3, about 1 second of wav very fast, not  ogg (terminates with SIGSEGV), and no video formats (mpg, mpeg, avi, ogm) all say 'Sorry, no appropriate decoders found for this file:'. What are the names of the  extra video decoders for mediaplayer1?

opie-mediaplayer2_1.1.7-r2 ... plays mpg but audio only and very fast, won't play anything else, sometimes says 'No demux plugin found', sometimes goes to player screen briefly then back to playlist screen ... What are the demux files needed for this?

mplayer_1.0pre3try2-r3 ... this plays mpg but without sound, ogm but sound is choppy and way out of sync, plays wav, plays ogg, doesn't play mp3, doesn't respond to keyboard (eg to pause, stop, exit, change volume etc.)

Any pointers to get a good multimedia setup would be great ... thanks.

Ken
5600 Poodle, OZ352, WinXP, Libranet281
256CF (hda1=vfat, hda2=ext2)

 Trying to make a multimedia poodle

MrSquishy

  • Full Member
  • ***
  • Posts: 159
    • View Profile
    • http://
Multimedia In Oz352
« Reply #1 on: December 27, 2004, 06:14:27 pm »
I installed the older libvorbisidec in the feed.
There are two versions in the feed, but only one will show up because they are both listed as libvorbisidec_yaddayadda

Install the 2002 version by hand (Directly off the .ipk) and ogm should work.
Oggs may not though.  Havent tested it.

But all my small Red vs Blue episodes work flawlessly.

Im also using the old 3.2 mplayer which will play movies in the xmms small window.

zenken

  • Newbie
  • *
  • Posts: 17
    • View Profile
    • http://
Multimedia In Oz352
« Reply #2 on: December 27, 2004, 06:30:40 pm »
Thanks MrS, I checked, I already have the libvorbisidec1_20021126-r0 installed, I think that is the one you are recommending, isn't it?

Do you play your movies by starting mplayer from a console?
And do you hear the sound in your movies?
5600 Poodle, OZ352, WinXP, Libranet281
256CF (hda1=vfat, hda2=ext2)

 Trying to make a multimedia poodle

MrSquishy

  • Full Member
  • ***
  • Posts: 159
    • View Profile
    • http://
Multimedia In Oz352
« Reply #3 on: December 27, 2004, 06:43:03 pm »
I play movies with xmms-embedded
I can do it from the command line, but I use xmms.

When I had the newer mplayer, I'd have to start the movie then click on the window where it sould play to make it fullscreen, otherwise it wouldnt play at all.

With the older mplayer, it plays in a small window, and you can make it fullscreen by clicking on it.

Sound does work with external speakers.

ronbus

  • Newbie
  • *
  • Posts: 6
    • View Profile
Multimedia In Oz352
« Reply #4 on: December 28, 2004, 09:38:06 am »
zenken,

I use mplayer from the command line.  I had a problem with sound and the video was choppy but added the line "ac=mad" to my /root/.mplayer/config file and it works fine now.  I suspect I don't have some audio library that I should have to play the audio codec I have in my video file (mp3 I believe), but the mad library works fine.
----
SL5500
3.5.3 OPIE ROM
1 GB/256 MB Lexar SD
1 GB Kingston/64 MB Lexar CF
DLink 802.11b CF

zenken

  • Newbie
  • *
  • Posts: 17
    • View Profile
    • http://
Multimedia In Oz352
« Reply #5 on: December 28, 2004, 10:50:02 pm »
MrS ... your hint about tapping on the window works for me too. Just after I tap the play button the screen flashes black for about 1 second, and if I tap the screen just then I get the video playing ok. I could NOT go back to an earlier version of mplayer, not matter what I tried, even when removing the feed of the later one and directly naming the earlier .ipk it still tried to install a newer 'mplayer' ... might be something to do with the earlier one not providing 'mplayer', but I don't know enough about how ipkg works to know.

ronbus ... great! ac=mad works for me too. I can see that it forces mplayer to use libmad as mp3 decoder. Without that mplayer tries to use mp3lib, which doesn't seem to work on my system. I'm checking that by SSH'ing to my poodle and then I can run mplayer and see all the mplayer output while the movie is playing on the Z!

I still can't get OpieMediaPlayer2 to work, but given success with xmms and mplayer I'm much happier with my multimedia poodle! Now to see if I can install either of these to CF, I've tried hard with xmms but there are so many libraries that don't get linked it is hard to keep track of them all from the command line, and Opie PackageManager keeps crashing.
5600 Poodle, OZ352, WinXP, Libranet281
256CF (hda1=vfat, hda2=ext2)

 Trying to make a multimedia poodle

JohnKiniston

  • Full Member
  • ***
  • Posts: 213
    • View Profile
    • http://
Multimedia In Oz352
« Reply #6 on: December 29, 2004, 12:26:27 am »
ac=mad has made the sound come to life on my 5500 in mplayer, Thanks!

and the window tap in XMMS also works, It rotates the screen and plays the video full screen instead of in the player area, and I have yet to find a way to quit but hey it works

zenken

  • Newbie
  • *
  • Posts: 17
    • View Profile
    • http://
Multimedia In Oz352
« Reply #7 on: December 29, 2004, 02:59:35 am »
Here's a few more things I have found while investigating this ...

ac=mad forces mplayer to use libmad for mp3 audio decoding. libmad uses integer arithmetic for decoding which is better for the Zaurus because it's ARM processor don't have FloatingPointUnit. Another integer based decoder is ffmp3 so ac=ffmp3 might be worth trying as well, but doesn't work on my system ... (I think it is part of libavcodec).

mp3lib is floating point arithmetic, which may be emulated in the ARM processor, but is way too slow. That is probably why mplayer reports that the CPU is too slow when trying to use mp3lib, and then doesn't decode the audio.

Regarding OpieMediaPlayer2, there are a whole lot of libxine-plugin-* files which probably need to be installed for it to work with all the various formats. Anyone know more about this? EG. is there a way to install them together instead of going through one-by-one?

Now some questions ... how do I make xmms use libmad? I assume xmms is using mplayer to play mpeg1 and mpeg2 videos, but they still play without audio ...?  as a sideline, xmms does play mp3 audios!

And has anyone worked out how to control the movie (eg. fast forward, seek, etc.) while it is playing?
5600 Poodle, OZ352, WinXP, Libranet281
256CF (hda1=vfat, hda2=ext2)

 Trying to make a multimedia poodle

MrSquishy

  • Full Member
  • ***
  • Posts: 159
    • View Profile
    • http://
Multimedia In Oz352
« Reply #8 on: December 29, 2004, 04:27:35 am »
If you goto xmms-embedded.sourceforge.net and get the ipk, you can pull it out of there.
tar zxvf mplayer-blahblah-.ipk (might have to do "ar -x" instead of tar zxvf)
tar zxvf data.tar.gz
cp usr/bin/mplayer <where ever>

Just drop this right over the mplayer binary (/usr/bin/mplayer or its mounted equivelant)

This will playback video without having to go fullscreen to see.

JohnKiniston

  • Full Member
  • ***
  • Posts: 213
    • View Profile
    • http://
Multimedia In Oz352
« Reply #9 on: December 29, 2004, 09:50:22 am »
Quote
And has anyone worked out how to control the movie (eg. fast forward, seek, etc.) while it is playing?
When using mplayer I have found the direction pad works to seek in the movie, Up (which I guess is right since your rotating the unit) seeks forward a few seconds at a time.

Left also seems to seek forward.

I'm playing a video on my 5500 with only 50-60% cpu use now!

AVI file format detected.
VIDEO:  [DIVX]  320x240  24bpp  15.000 fps  127.6 kbps (15.6 kbyte/s)
Clip info:
 Software: MEncoder dev-CVS-030914-12:11-3.1
==========================================================================
Forced audio codec: mad
Opening audio decoder: [libmad] libmad mpeg audio decoder
AUDIO: 24000 Hz, 1 ch, 16 bit (0x10), ratio: 1000->48000 (8.0 kbit)
Selected audio codec: [mad] afm:libmad (libMAD MPEG layer 1-2-3)