yashsingh1/xdaforums huggingface dataset:
[Hero, G2 Touch Android Development] Djhg2000:
I've seen that one before, but I didn't notice the "-vo android" part until now :o

Let's see what we can do then, I'll upload a binary later when I figure it out (cloning git right now).

Edit:

I just can't figure out how to apply the new files to the mplayer source tree; if I append the libswacale directory with the files in the git repo, it says:

swscale_internal.h:27: fatal error: altivec.h: No such file or directory

Replacing the libswscale with the one from git results in the same error, so that's not where the error is.

I found some files containing the name altivec.h in the mplayer tree, but none of these seem to be relevant as they have other stuff in their names, and are for PPC:

./libavcodec/ppc/util_altivec.h
./libavcodec/ppc/dsputil_altivec.h
./libavcodec/ppc/.svn/text-base/util_altivec.h.svn-base
./libavcodec/ppc/.svn/text-base/dsputil_altivec.h.svn-base
./libavcodec/ppc/.svn/text-base/types_altivec.h.svn-base
./libavcodec/ppc/.svn/prop-base/util_altivec.h.svn-base
./libavcodec/ppc/.svn/prop-base/dsputil_altivec.h.svn-base
./libavcodec/ppc/types_altivec.h

The ffmpeg tree, also from the olvaffe git repo, contains similar files:

./libavcodec/ppc/util_altivec.h
./libavcodec/ppc/dsputil_altivec.h
./libavcodec/ppc/types_altivec.h
./libavcodec/ppc/imgresample_altivec.h

I have no Idea how to make any progress on the video output from here.
[Hero, G2 Touch Android Development] gielium:
I have asked the owner of the tree to check out this thread, lets hope he can help you in the right direction!
[Hero, G2 Touch Android Development] sandmen:
I have also send a mail to the owner. :o
[Hero, G2 Touch Android Development] Phil_UK:
Well done guys....any chance of an apk? :D
[Hero, G2 Touch Android Development] Djhg2000:
It's nowhere near ready for apk packaging right now, it's not even compiled with NDK...

Though I've been thinking about switching to NDK, might give us sound?

Anyone around with experience on this?
[Hero, G2 Touch Android Development] chomafin:
Has there been any development on this?

I'd love to get me some mplayin' action on my Hero
[Hero, G2 Touch Android Development] observer7:
mPlayer is successfuly ported to maemo devices (n800, n900). So maybe this tread will be helpful to port it to android:

talk.maemo.org/showthread.php?t=2405
[Hero, G2 Touch Android Development] observer7:
Is there any way to compile mplayer through android NDK?

Also it would be great to make mplayer as shared lib that can be used as backend for some GUI app (same as KMPlayer for maemo).
[Hero, G2 Touch Android Development] shin0202:
Can you tell me how to do if I want porting mplayer to Android emulator? Is using this link is oK?Can tell me some detail steps for how to porting mplayer to Android emulator?Thank you!
[Hero, G2 Touch Android Development] Djhg2000:
Compilation instructions

Sorry for not pushing this project forward, I've been quite busy lately and rebuilding a kitchen takes a while ;) .

Anyway, to compile you will need to issue the following in the MPlayer source directory:

sed -e 's#/dev/fb0#/dev/graphics/fb0#' -e 's#fb_vinfo.yres;#fb_vinfo.yres * 2;#' ./libvo/vo_fbdev.c > ./libvo/vo_fbdev.c.new && mv -f ./libvo/vo_fbdev.c.new ./libvo/vo_fbdev.c
./configure --enable-fbdev --host-cc=gcc --target=arm-linux --cc=arm-none-linux-gnueabi-gcc --as=arm-none-linux-gnueabi-as --ar=arm-none-linux-gnueabi-ar --ranlib=arm-none-linux-gnueabi-ranlib --enable-static --disable-dvdnav --disable-dvdread-internal --disable-libdvdcss-internal
make

The first line is to patch the code and should work even on more recent versions than the early r29000 series it was designed for as it's a sed script and not a traditional patch. If it doesn't work for you, try with the 1.0rc2 source which should be compatible as well.

The second line assumes that the arm compiler and relevant tools are in $PATH, if you don't know if it's in $PATH you can try to manually execute "arm-none-linux-gnueabi-gcc" and see if it works.

If not, you'll need to either add it to $PATH using the command "export PATH=$PATH:/path/to/compiler/".

The third line compiles MPlayer as a static binary. This means all neccecary instructions are compiled in, which results in a bigger binary but won't require any external libraries.

When the compiler is finished you'll end up with two binaries in the source directory; "mplayer" and "mencoder".

You'll then have to find a way to get it into the phone, either by putting it on the SD card, remounting it with exec permissions and executing it with "sh mplayer" or you could remount the flash with write permissions and then use "adb push mplayer /system/bin" to transfer it.

They both have their trade-offs, going through the SD card is more difficult and time consuming, but writing it directly to the flash could be very dangerous. I have purposely left out the command to remount the flash for this very reason.

Also remember this won't give you a fully functional mplayer binary, but the mencoder binary should be complete (untested) as it only requires file I/O which seems to work perfectly.

I will see if I can find some time to give it another shot during the week, but don't expect too much progress.

Edit:

You can re-post any of my progress however you wish as long as you also link back to this thread, but I wouldn't recommend it unless it directly benefits development.

I don't want people semi-bricking their phones because they messed around with the flash.
[Hero, G2 Touch Android Development] wooky321:
I wish you the best of luck to get this working :D
[Hero, G2 Touch Android Development] moose_nz:
Hi there,

Any updates on this project? I've got it working but I still have the flicking problem. Is there any way to compile mplayer with SDL support?
[Hero, G2 Touch Android Development] slythers:
hi i compiled mplayer for my htc legend, i had a sound issue cause there isn't an oss device on my phone, so i quickly made a dirty patch to the pcm ouptut module of mplayer using /dev/msm_pcm_out (i found some poc using this dev with google)

Andf i finally got a working mplayer with video and sound on my legend. But arm sux alot when you try to play divx ... (i wait atom based smartphone now)

i posted about this but in french ( boumboumboum.com/index.php/2010/06/mplayer-pour-android-ou-comment-lire-des-divx/ )

i compiled mplayer for armv6, i failed for armv7 with neon and vfp.

but arm simd,neon and vfp optimisation seem to lack in mplayer code... :\

link to mplayer: megaupload.com/?d=OMACWAFC

you need root :)

./mplayer -ao pcm -vf rotate=1 file.avi

or

./mplayer -ao pcm -vo fbdev2:/dev/graphics/fb0 -vf rotate=1,scale=480:320 file.avi

edit: fbdev2 work better
[Hero, G2 Touch Android Development] sebek_d:
Will it work on hero?

I guess they both have similar hardware. I've tried it but I'm getting:

"./mplayer: permission denied

Any idea how to get it working?
[Hero, G2 Touch Android Development] slythers:
yeah remount your sdcard, the bash line was quoted in this thread
[Hero, G2 Touch Android Development] sandmen:
:eek::eek::eek:

@slythers

Great!!!!

Can you give me more information about the compiling and patching???

Thank's a lot
[Hero, G2 Touch Android Development] sebek_d:
Thanks.

Now I'm getting following error when running both of the commands for mplayer:

Cannot find HOME directory.

Option vf: rotation doesn't exist.

Error parsing option on the command line: -vf

MPlayer SVN-r31303-4.1.1 (C) 2000-2010 MPlayer Team

it runs though without -vf rotation
[Hero, G2 Touch Android Development] sandmen:
This work's for me :-)

./mplayer -ao pcm -vo fbdev:/dev/graphics/fb0 -vf rotate=1,scale=480:320 2.mp4
[Hero, G2 Touch Android Development] slythers:
fbdev2 only paint in the fb when image change in the video, so it use less cpu for the framebuffer, but with the android UI who try to stay on top, you don't see the vid when there is no change.

i tried to kill the UI, but i failed :\

pastebin.com/aUr9ap4k the file i patched (and the fbdev.c just for the path of the dev)

else i just used a sourcery arm cross compiler codesourcery.com/sgpp/lite/arm/portal/subscription?@template=lite
[Hero, G2 Touch Android Development] sandmen:
@slythers

come on, a litel bit more :)

a.) Version from mplayer ?

b.) configure ?

c.) did yoou try to port the mplayer to android (android-ndk)?

Thanks'
[Hero, G2 Touch Android Development] slythers:
version: MPlayer SVN-r31303-4.1.1, get the latest from the svn
[Hero, G2 Touch Android Development] slythers:
someone know how to kill the android user interface without the autorestart ?
[Hero, G2 Touch Android Development] adwinp:
Why don't you try porting vlc instead?

They have a pda-devices UI available in the stock install.
[Hero, G2 Touch Android Development] slythers:
the real problem here is that the arm chip in legend and hero is too slow with a ridiculous simd and without vfp(float number). armv7 based chip seem enought to decode some divx. But i think arm based chip don't meet the requirement for media processing. We need the new intel chip Moorestown on future smartphone, and forget arm.

the fact is that actual code is well optimised for x86. And better than arm could/would offer.
[Hero, G2 Touch Android Development] mikael120:
well the galaxy S which uses arm is capable of playing 720p video so I don't think arm is the bottleneck here
[Hero, G2 Touch Android Development] slythers:
actually all armv7 1ghz play divx with app like rock player base
[Hero, G2 Touch Android Development] mikael120:
true, but the galaxy S is capable of playing H.264 encoded files, which is something most phones are unable to do. In addition it supports containers like mkv which rock player does not support
[Hero, G2 Touch Android Development] GDR!:
Hi guys,

What toolchain are you using to build mplayer? I've just set up emdebian for armel and I'm having some basic issues.

Namely, the current issue is:

Checking for sys/bitypes.h (inttypes.h predecessor) ...
Error: Cannot find header either inttypes.h or bitypes.h. There is no chance for compilation to succeed.

EDIT: Pardon the stupid question, I somehow managed to miss the link to Code Sourcery
[Hero, G2 Touch Android Development] dkelley:
ya know there's quite a difference between basic arm v6 and arm v7, not to mention having decent graphics hardware.

so it still might not be possible, speaking strictly as a guy who hasn't ever built low level stuff for arm.

My stuff is educated guesses, so I hope that I'm wrong and the hero CAN do this stuff at decent performance.

I know my old palm one lifedrive could play (with very rare hickups) divx movies just fine full screen. that's pretty old hardware.... so I would think it could be done here.
[Hero, G2 Touch Android Development] slythers:
CPU	Intel PXA270 at 416 MHz with Intel XScale Technology

it was a good cpu by the way
[Hero, G2 Touch Android Development] jai134:
Hello. I tried to follow the advice on page 5 of this thread and compiled MPlayer. I get this error "Syntax error: word unexpected (expecting ")") I have seen that I'm not alone with this. What's wrong?

EDIT. I have found something about "setting executable bits" but ls -l gives me -rwxrwxr-x 1 system sdcard_r. Seems ok to me.

EDIT2. After moving MPlayer to /data/data/ I can run it as root with ./mplayer.
[Hero, G2 Touch Android Development] dmarcato:
Hi, I am trying to compile mplayer with ndk to use it integrated in my app as a backend, but I'm having trouble on doing it... Someone could send me some hints on how to create an Android.mk file for it, or whatever else?

Thanks a lot! :D
[Hero, G2 Touch Android Development] silviu123:
hello, i have managed to download a compiled bin from here, and i can rut it just fine, except that i'm having problems streaming basic stuff like mp3/aac radio links :(

i'm using better terminal emulator: running from the data folder: mplayer http://myradiourl /// and i'm getting this:

playing http://myradiourl.......

No stream found to handle url

Exiting...

what does it mean? is there any workaround?

everything i've tried, worked great in my linux terminal, but not on phone

edit: apparently there is no actual sound output in my headphones while playing local files and mplayer tells me audio pcm codec was detected and playing. very weird.
[myTouch 3G, Magic Android Development] eugene373:
Mod Please Close due to Un-Grateful Members
[myTouch 3G, Magic Android Development] eugene373:
Mod Close Thread Due to Un-Grateful Members Please.
[myTouch 3G, Magic Android Development] ronni.rasmussen:
DL'ling thanks for fast work and sharing :)

Edit: Arg my connection sucks today more than 1 hour to go :S
[myTouch 3G, Magic Android Development] paindoo:
I hope it will work on 32A. Strange name hero3g-new????
[myTouch 3G, Magic Android Development] eugene373:
okay, the 32a update has been Post at the Bottom of First Post
[myTouch 3G, Magic Android Development] WebghostDK:
Eugene you are the man!!!! Thank you!
[myTouch 3G, Magic Android Development] gdskp:
I wonder why the sense ui is originally for 32A but your rom which bases on it needs to be converted from 32B to 32A:confused:

And what is added against the official sense ui?
[myTouch 3G, Magic Android Development] Menace-es:
i think that the explanation is a bit confusing, do not you think?
[myTouch 3G, Magic Android Development] eugene373:
Okay, I added the Wrong .ko File. so a Revision will be made sometime today.

Sorry guys, didn't mean too.
[myTouch 3G, Magic Android Development] lorenzo.themax92:
now can you solve the problem with the people(I) that flash the version from htc taiwan? to downgrade the hboot..:) sorry for my bad english
[myTouch 3G, Magic Android Development] Xenn0X:
doen B version need swap partition?
[myTouch 3G, Magic Android Development] Krzysiec:
I`m using myHero 1.1.3 32A ... What shall i do to update to official sense ? don`t want to brick my Magic ;) Is here Multilangiuage ?
[myTouch 3G, Magic Android Development] maxisma:
Is this REALLY based off the original SenseUI, or just apps & framework?

Because there are some differences between this and the Taiwan dump..

/etc/zi is missing and in lib there's a liba2dp.so AND a libA2DP.so, while theres only the libA2DP.so in the dump.
[myTouch 3G, Magic Android Development] eugene373:
fastboot? idk, why did you flash it?
[myTouch 3G, Magic Android Development] eugene373:
they where pulled, there not needed, and those don't apple to mytouch.

I can add them in if you would like in the Fix build for the wifi.
[myTouch 3G, Magic Android Development] lmart1n:
- force close google maps

- force close com.android ...

stuck @ htc splash screen

htc 32b (vodafone white)

/edit

com.android.mms

com.google.android.apps.maps

notification bar pops out, than going back to htc splash screen ... and stuck...

strange

/edit 2

SPL 1.33.2005
[myTouch 3G, Magic Android Development] Boonyard:
It's not very clear which is which in the downloads, is the top one for 32b phones?

Also, is this the full official rom or your own version of it?

And do you just flash this like any other rom?!

Thanks.
[myTouch 3G, Magic Android Development] eugene373:
Swap is a Give with 32b
[myTouch 3G, Magic Android Development] ronni.rasmussen:
maybe better to wait for someone focusing on releasing a 32A Rom for this instead of taking a 32A Rom update and make it into 32B and then make an 32A update.

I will reconcider flashing this for a while, thanks for sharing though!
[myTouch 3G, Magic Android Development] WebghostDK:
"Could not obtain root"
[myTouch 3G, Magic Android Development] deerain:
Sweet wifi working soon, get root working to then I can get swapper going :)
[myTouch 3G, Magic Android Development] Lakers3408:
Your wait is over!!!! :p

32b WiFi Fix

Get your FIX on!
[myTouch 3G, Magic Android Development] Reignzone:
Get it done big homie. :D
[myTouch 3G, Magic Android Development] Lakers3408:
All of a sudden Im your "Homie" :eek:

lol

ITS DONE!!! ;)
[myTouch 3G, Magic Android Development] dereck66:
Flashing it now! So is it some sort of bfs update??
[myTouch 3G, Magic Android Development] deerain:
Cool thx, wifi working now :)
[myTouch 3G, Magic Android Development] Reignzone:
What the hell are you talking about guy?

It's a "phrase of encouragement". RELAX.

Besides, I haven't flashed this ROM. Simply suggesting that you dish it out for these folks with it.

Glad to see that progress is being made this afternoon though.
[myTouch 3G, Magic Android Development] dereck66:
OK! Now wifi is working (via bfs update, i guess), what next? Yes, root it! Am I too greedy?? :D
[myTouch 3G, Magic Android Development] Lakers3408:
Who needs to relax? You obviously dont know humor when you see it.

Hence the "lol"

Anyway.... glad I could help, looking in to BT, see if I can get some sound.
[myTouch 3G, Magic Android Development] Lakers3408:
If by "bfs" you mean

Broke, Fix ****

Then yes! :D

And yes I really know what bfs is :rolleyes:
[myTouch 3G, Magic Android Development] Boonyard:
Good, tht means i'm not going mad!:D
[myTouch 3G, Magic Android Development] jfive74:
May i suggest that dev's take their time with this one. Try, fix issues with rom before the thread turns into " just another hero thread". This is suppose to be the rom of roms. Choose a couple of people both 32a and b, test, test and test and comeback in a few days with the goods. Just my opinion. Just wanna see a fully functioning sense rom for once. This one is ours, lets do it right. We've waited this long, whats a few days to iron out the problems? Love the effort and dedication here, keep it up.
[myTouch 3G, Magic Android Development] Howler62:
...or better yet if they made it available on TW HTC why not just do same for us Canadian saps.. lol
[myTouch 3G, Magic Android Development] Taknarosh:
Well there was mention of other countries getting the update in November. But at this point when they have a fully functioning version for TW phones, I really don't see how hard it would be for it to be ported to a WWE_RUU version.
[myTouch 3G, Magic Android Development] sitimber:
wifi working a treat now

market no trouble

apps no trouble

sync no trouble
[myTouch 3G, Magic Android Development] dills84:
Still pretty slow/laggy/sluggish... IS it confirmed that this is the REAL official magic dump?
[myTouch 3G, Magic Android Development] deerain:
What phone you got if you have a 32a then it should be fast but for 32b we still have the rubbish memory so will still suffer lag and I don't think there is much we can do but have a swap file on the sd card. But when we get root we can apply all the lovely goodies that they put on the other hero rom's to make them go faster.
[myTouch 3G, Magic Android Development] bsapir:
Hey guys, have we forgoten bluetooth? dose it works?

Ben

Mytouch 32B T-mobile

PS Keep the great work up
[myTouch 3G, Magic Android Development] bsapir:
Is anyone tested Bluetooth?

Thanks,

Ben

Mytouch
[myTouch 3G, Magic Android Development] dills84:
my orientation isnt working either. Anyone else having this prob?

Besides that this IS probably the fastest Sense rom i've ever seen on my 32B. Just not sure if its fast enough!

Thanks for your hard work.
[myTouch 3G, Magic Android Development] deerain:
humm i think you could be right about the orientation, well when my contracts up I will have a massive choice of handset and company to use ,*cough vodafone are ****, and I will be reading the specs too :) this time, hope they get this running :) good luck.
[myTouch 3G, Magic Android Development] Lakers3408:
You sure rotation is NOT working? it works fine for me. (sms & browser)

Did you enable it in your settings!!!!! :rolleyes:

@bsapir

BlueTooth is ALWAYS on the list of what to fix, just NOT that easy
[myTouch 3G, Magic Android Development] motaman76:
Browser rotation works for me but SMS does not rotate for me.
[myTouch 3G, Magic Android Development] tq745:
this sense rom is blazing fast as of now.

lakers...thanks for the wifi fix...do you think you'll be able to fix the market issue with not seeing protected and paid apps?
[myTouch 3G, Magic Android Development] Reignzone:
Pull the fix from MLIGN's build.

He put out the patched version this morning. v1.1 I believe. Look into that.

Market is fully functional, paid applications included.
[myTouch 3G, Magic Android Development] Boonyard:
Not for me!

Had to switch back to my hero rom as I can't find hardly any apps when I load this, i'm not the only one either.
[myTouch 3G, Magic Android Development] fatboydc:
Great ROM!!!!

Sorry for the dumb question: How do you enable paid apps via market. I can't seem to download my paid apps. Thanks for the help!!!
[myTouch 3G, Magic Android Development] tq745:
sorry i'm a little new when it comes to pulling out patches from other builds and putting them into others. do i use adb? and where can i find the patch in the build and where do i push it to? thanks.
[myTouch 3G, Magic Android Development] dills84:
went from really fast to really slow within an hour. Started getting HTC screens going back to home even from lite applications (like alarm clock?)

any suggestions?
[myTouch 3G, Magic Android Development] tq745:
are you killing your applications running in the background? what type of card are you using?

edit: My auto orientation isn't working also. my settings have it checked as being on...
[myTouch 3G, Magic Android Development] Lakers3408:
Working on a possible Market Fix.... I dont use the Market that much or have "paid" apps. So give me the name of a few apps that SHOULD show up but DONT. This way I can properly test my fix.
[myTouch 3G, Magic Android Development] eugene373:
Sorry guys, No sleep and I crashed hard with my Phone in recovery moded.

Getting it fixed now.
[myTouch 3G, Magic Android Development] tq745:
Pandora! :D

also landscape mode...
[myTouch 3G, Magic Android Development] mattinglis:
i get a android media core force close on boot.

appart from that tis an excellent rom, but without wifi and bluetooth it is useless to me, keep working your work is awesome.
[myTouch 3G, Magic Android Development] eugene373:
http://www.4shared.com/file/142994312/8065e15a/hero3g_new1.html

Okay Try This with WiFi and Paid apps. Might have Lost Speed.
[myTouch 3G, Magic Android Development] Lakers3408:
READ!

A few pages back I fixed the WiFi problem
[myTouch 3G, Magic Android Development] trstn.nguyen@gmail.com:
Hey Eugene

Great job as always. Didn't have any problem loading it. Just 1 thing. Can you include the awesome lockscreen from your other Hero3g Rom? Is that possible?
[myTouch 3G, Magic Android Development] eugene373:
Nice To see You Took Over Man. wifi fixed with kernel i used? or you use different kernel an .ko?
[myTouch 3G, Magic Android Development] *child:
Are your SMS timestamps off?
[myTouch 3G, Magic Android Development] Lakers3408:
lol

Not took over, just got your back!
[myTouch 3G, Magic Android Development] mattinglis:
sorry will try that, hard to keep up this thread is moving so fast lol.
[myTouch 3G, Magic Android Development] Lakers3408:
Hit me up on Gtalk I will fill you in ;)
[myTouch 3G, Magic Android Development] nolimit966:
Am i best off using the Root updater and wiping my phone to add this?

Thank you
[myTouch 3G, Magic Android Development] eugene373:
will do, i fell asleep with phone in recoverymode infront of the computer while was still making a fixapps fix though lol. uploading now
[myTouch 3G, Magic Android Development] eugene373:
Black Screen Of Death With that Kernel man.
[myTouch 3G, Magic Android Development] eugene373:
lol, Has my Build prop. hehe just looked at it
[myTouch 3G, Magic Android Development] mattinglis:
working fine for me, wifi working, bluetooth on but will need to wait till tomorrow to test on the car kit. Good work, not any slower for me.

edit/ okay so it is quite a bit slower.
[myTouch 3G, Magic Android Development] Reignzone:
Oh, right on. I didn't know that he did. Regardless, at this point...as long as everyone who is working on this SENSE build is using each other's work; I figured we'll get somewhere fast...faster anyway. :D

Then again; it would seem that a few other "devs" have used MLIGN's ROM as the basis of their own. That doesn't make sense to me...no pun intended.