Active Topics

 



Notices


Reply
Thread Tools
qwerty12's Avatar
Posts: 4,274 | Thanked: 5,358 times | Joined on Sep 2007 @ Looking at y'all and sighing
#1
Hello all,

After reading this:
http://www.internettablettalk.com/fo...d.php?p=167851

I thought it would be nice to have amr-wb support. But I don't even listen to audio books so I'm releasing this as my good deed for the day :P

This is Bundyo's build of the svn mplayer with amr support in it.

Set up Bundyo's build and install this. I tried it out on a awb file and it played back fine.

For audiobooks, I plan on updating the gmplayer to list awb files so you can resume them back.

EDIT: I got gmplayer to list awb files but it is not worth it as I cannot figure out how to close mplayer cleanly and gmplauncher will not let me resume the awb file anyway.

Here are the libraries needed for amr:
http://www.mediafire.com/?mxavaciyis2

Untar them to /usr/lib

(Oh yes, I may be violating license, I'm not sure so if I am, I better remove these libs)

Here is the mplayer binary:
http://www.mediafire.com/?jji5udocmj6

Move this to /usr/bin. If you do not wish to replace your old binary, rename to mplayeramr before moving.

An updated, unnecessary , binary:http://www.internettablettalk.com/fo...2&postcount=10

You also need to chmod +x /usr/bin/mplayeramr
(mplayer if replacing binary)

Thanks to Bundyo because without his build,I couldn't have done this.

if logs are your thing:
MPlayer dev-SVN-r26265-3.4.4 (C) 2000-2008 MPlayer Team
CPU: ARM
Internet Tablet OS version: RX-34+RX-44_2008SE_2.2007.51-3_PR_MR0

Playing /media/mmc1/The Art of War/artofwar_01_sun.awb.

Cache fill: 0.00% (0 bytes)
libavformat file format detected.
[lavf] Audio stream found, -aid 0
================================================== ========================
Trying to force audio codec driver family libmad...
Trying to force audio codec driver family dspmp3...
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
AUDIO: 16000 Hz, 1 ch, s16le, 0.0 kbit/0.00% (ratio: 0->32000)
Selected audio codec: [ffamrwb] afm: ffmpeg (AMR Wideband)
================================================== ========================
[AO SDL] Samplerate: 16000Hz Channels: Mono Format s16le
AO: [sdl] 16000Hz 1ch s16le (2 bytes per sample)
Video: no video
Starting playback...
A: -0.3 (unknown) of 0.0 (unknown) 12.2% 91% [J
Exiting... (Quit)
How did I build it?

Grabbed the files here: http://www.internettablettalk.com/fo...d.php?p=161918 , applied patch to svn.
Then I built the amrnb & amrwb (amrwb depends on amrnb (at least for me)) libraries in ARMEL scratchbox target:
$ wget http://ftp.penguin.cz/pub/users/utx/....0.0.1.tar.bz2
$ tar xjvf amrnb-7.0.0.1.tar.bz2
$ cd amrnb-7.0.0.1
$ wget http://www.3gpp.org/ftp/Specs/archiv.../26104-700.zip
$ ./configure --enable-shared --disable-static
$ make
$ make install

$ wget http://ftp.penguin.cz/pub/users/utx/....0.0.2.tar.bz2
$ tar xjvf amrwb-7.0.0.2.tar.bz2
$ cd amrwb-7.0.0.2
$ wget http://www.3gpp.org/ftp/Specs/archiv.../26204-700.zip
$ ./configure --enable-shared --disable-s

tatic
$ make
$ make install
Then finally in mplayer folder: ./configure "lots of build options" && make

I also needed to dig out the amr libraries and made sure they went in /usr/lib.

(Oh yes, first time, I forgot libmad libraries )

Mediaplayer support:


Or adapt the built-in media player to handle AMR-WB?
I've added support for the built in media player.
EDIT: Media player already supports Amr without installing anything, making,this obsolete.DOH!
It may conflict with the ogg support if you have it installed. (edit, i installed mogg after this fine!)

I grabbed the libraries from my mplayer release, compiled the gstreamer plug-ins, set up metalayer to show awb files, set mime types in desktop file , created some gconf entries.

Download link is here
http://rapidshare.com/files/106591605/amr.tar.gz.html

(I may be violating licenses by distributing the libs. If so, I will have to remove this package. But I won't tell if you don't )

Using a root account, move the tar file to /.
(If you saved it on your internal memory card eg : mv /media/mmc2/amr.tar.gz /)
and run:

cd /
tar zxvf amr.tar.gz
./installamr

Works beautifully, I just rebooted (twice for consistency), my awb files now show up in the media player index of files and fast forward, rewinding and pausing is possible.

Have fun!

(Like I say, this was a quick hack, I've never worked with gstreamer before, so if any experts notice something, tell me please!)

And I still assert I don't listen to audiobooks :P, I need to delete my "Art of war" testing folder I got from the Nokia site as I'm done now

Last edited by qwerty12; 2008-04-12 at 11:53.
 

The Following 6 Users Say Thank You to qwerty12 For This Useful Post:
iancumihai's Avatar
Posts: 274 | Thanked: 143 times | Joined on Jun 2007 @ Romania
#2
too bad the same setup is not yet in extra repository
 
qwerty12's Avatar
Posts: 4,274 | Thanked: 5,358 times | Joined on Sep 2007 @ Looking at y'all and sighing
#3
Yeah, maybe if Serge ever uses the RC2, his build could be put on there. It would make installing mytube a bit better for new comers. (love the app btw )
 
iancumihai's Avatar
Posts: 274 | Thanked: 143 times | Joined on Jun 2007 @ Romania
#4
Originally Posted by qwerty12 View Post
Yeah, maybe if Serge ever uses the RC2, his build could be put on there. It would make installing mytube a bit better for new comers
if you manage to create a version small enough that only plays flv
it can be bundled inside mYTube.
 
qwerty12's Avatar
Posts: 4,274 | Thanked: 5,358 times | Joined on Sep 2007 @ Looking at y'all and sighing
#5
I managed to convert the youtube patch (play youtube videos by putting url on command line) but it crashes at 18.7% (meh, I just checked, the patch is buggy anyway. I'll see if I can fix it though)

@iancumihai

I could try but I'm not really the best to ask.

Last edited by qwerty12; 2008-04-10 at 16:29.
 
qwerty12's Avatar
Posts: 4,274 | Thanked: 5,358 times | Joined on Sep 2007 @ Looking at y'all and sighing
#6
Binary updated! make sure you upgrade!

Everything works now!

TODO:
-Fix YouTube http code (not meant to rival the excellent mYTube, maybe it could be an ally :P, mYTube is brilliant and recommended over this buggy patch)
- Enable Radio support. - failed-no sound outputted
-enable v4l? I see 2 builds which have this enabled so it cant hurt :P. - done

(Also I believe this has IPv6 enabled, I decided not to force setting it to disabled as the IPv6 for OS2008 was released )

I converted manually the youtube patch to the latest SVN, if any experinced developers want to fix the code, ask me and I'll send the youtube c files.

Last edited by qwerty12; 2008-04-11 at 12:00.
 
Benson's Avatar
Posts: 4,930 | Thanked: 2,272 times | Joined on Oct 2007
#7
Radio support?

AFAIK, FM receivers and the like are generally handled by v4l, aren't they? And yes, v4l would be good, if you're doing this. No sense making people load up with a half-dozen mplayers.
 
qwerty12's Avatar
Posts: 4,274 | Thanked: 5,358 times | Joined on Sep 2007 @ Looking at y'all and sighing
#8
Originally Posted by Benson View Post
Radio support?

AFAIK, FM receivers and the like are generally handled by v4l, aren't they? And yes, v4l would be good, if you're doing this. No sense making people load up with a half-dozen mplayers.
Yeah, mplayer has a switch for radio. If we have the tea chipset, why not. But only if it works, this binary is v.big already.

I dont use "fmradio" because of bluetooth headset support breaking so I use mediabox instead. I tried the xmms radio plug-in to no avail however.

In kernel, FM is separate to v4l. v4l handles dvb, webcams etc. I tried configuring with --enable-tv-v4l2 but i'm getting errors, i need to look into it tommorow. I'll ask KotCzarny on irc (he has a build too)

Last edited by qwerty12; 2008-04-10 at 17:28.
 
Benson's Avatar
Posts: 4,930 | Thanked: 2,272 times | Joined on Oct 2007
#9
OK, maybe that was old data, or a wierd device. It was about 5 years ago when last I tried to mess with some such thing.

I'm not a media-player freak, so I don't need mplayer for playing movies, and I probably won't be playing AMR either; but the latter is kinda cool, FM (some way other than fmradio, which I also uninstalled for the same reason) is actually useful, and webcams are cool. So an all-up mplayer like this (if you get all that working) would be real nice. Really, I'd like an mplayer stripped of all normal video codecs to save space, with only the wierd and cool things.

Oh, I take that back; give me my video codecs back, I gotta have something to play through aalib/caca output.

Seriously, any chance of aa/caca output? Not too horribly useful here, but cool nevertheless. (And there's always USB-Serial. If only I hadn't tossed that old terminal, I could put the nobounds boys to shame with green monochrome video displays...)
 
qwerty12's Avatar
Posts: 4,274 | Thanked: 5,358 times | Joined on Sep 2007 @ Looking at y'all and sighing
#10
Originally Posted by Benson View Post
OK, maybe that was old data, or a wierd device. It was about 5 years ago when last I tried to mess with some such thing.

I'm not a media-player freak, so I don't need mplayer for playing movies, and I probably won't be playing AMR either; but the latter is kinda cool, FM (some way other than fmradio, which I also uninstalled for the same reason) is actually useful, and webcams are cool. So an all-up mplayer like this (if you get all that working) would be real nice. Really, I'd like an mplayer stripped of all normal video codecs to save space, with only the wierd and cool things.

Oh, I take that back; give me my video codecs back, I gotta have something to play through aalib/caca output.

Seriously, any chance of aa/caca output? Not too horribly useful here, but cool nevertheless. (And there's always USB-Serial. If only I hadn't tossed that old terminal, I could put the nobounds boys to shame with green monochrome video displays...)
Benson,

Only because it's you :P

Although I wish you had told me it was libcaca, not caca >.< (some nice google results) :P

Libaa gave me compile errors, radio support didn't work (it would compile and radio would start up the /dev/radio but I wouldn't hear anything)

BTW. I was wrong, V4L does seem to handle radio from what I read

I'm not gonna update the first post as this is just optional :P

I've added in caca support & v4l/tv support (there is a v4l2 output video driver but I had compile errors). V4L tv support should be fine. And FBDev & directfb is enabled so in theory you should be able to play video's in Fanoush's Framebuffer mod. As well as the AMR support.

Make sure you have libamr libs from above, get the "config" from Bundyo's RC2 build and grab these:

Some nice brown caca:
http://rapidshare.com/files/10659723...gcaca.tar.html

Mplayer binary:
http://rapidshare.com/files/106597855/mplayer.html

(This is probably the most modded, full featured binary, weighs in at 9MB :P)

Mencoder binary:
http://rapidshare.com/files/106598736/mencoder.html



(This man is said to be the gayest referee in the world) :P

Any takers on fixing that youtube patch? I've got the files I modified.

But I agree, I prefer all in one binaries. That's why I've started to compile my own kernels.

@iancumihai

I'll see if I can figure out how to remove all the unneeded stuff.

Last edited by qwerty12; 2008-04-11 at 10:40.
 

The Following User Says Thank You to qwerty12 For This Useful Post:
Reply


 
Forum Jump


All times are GMT. The time now is 05:56.