[INFO] Cifs on leaked 3.1 - Eee Pad Transformer Android Development

Didn't see another thread about this so thought it was worth it to start one.
Ok, after upgrading to 3.1 I lost my cifs functionality...
Started looking around and finally found that the cifs.ko module from this thread:
http://forum.xda-developers.com/showthread.php?t=1058713
And more specifically: "modules - k2.6.36.3.zip".
I extracted the cifs.ko to system\lib\modules and changed persmissions to the default values of the other modules there (using root explorer, you also have to set the mounting to rw instead of read only).
Next downloading terminal emulator from the market and typing the following things:
'su' (changes to super user, terminal emulator asks for root permissions at this step)
and
'insmod cifs.ko'
After that set up shares with mount manager and cifs manager, and voila...
Unfortunately the 720p mkv I tried still didn't play smoothly (game of thrones) but atleast cifs and sharing/mounting worked!

720p x264 main profile level 3.1 worked fine for me. High profile is not supported according to official specs, so no surprises.
Sent from my Transformer TF101 using Tapatalk

I just restored from a titanium backup.

I can play the avatar high profile clip no problem after the 3.1 update in 720p. It should be able to play mkvs, but it just needs a proper decoder from a player like mobo or vital, unfortunately they do not have poper mkv support yet.

http://searchcio-midmarket.techtarget.com/definition/Common-Internet-File-System
I had to look up the definition, so there it is for the rest of us

ivan.volosyuk said:
720p x264 main profile level 3.1 worked fine for me. High profile is not supported according to official specs, so no surprises.
Sent from my Transformer TF101 using Tapatalk
Click to expand...
Click to collapse
that really sucks. the xoom is better at playing high profile now with the 3.1 update. granted you have to convert the files to mp4s and reencode the audio to aac. good thing is that converting the mkv to mp4 is a whole lot faster than reencoding the entire file.
check the xoom forum for tips.

madsquabbles said:
that really sucks. the xoom is better at playing high profile now with the 3.1 update. granted you have to convert the files to mp4s and reencode the audio to aac. good thing is that converting the mkv to mp4 is a whole lot faster than reencoding the entire file.
check the xoom forum for tips.
Click to expand...
Click to collapse
But having to reencode is sucky though... I would love to simply be able to download 720p videos and play them.
But now with AC3 not being supported and these other quirks it's too much of a hassle. Guess I'll give it a shot on my SGS2, and perhaps the future will change some things.
Might actually be a reason to ditch the transformer and get another tablet with full support though. Even though all tegra2 tablets suffer the same issue of course.

Deathalo said:
I can play the avatar high profile clip no problem after the 3.1 update in 720p. It should be able to play mkvs, but it just needs a proper decoder from a player like mobo or vital, unfortunately they do not have poper mkv support yet.
Click to expand...
Click to collapse
This is incorrect no 3rd party app can add container parsing to Stagefright, and without Stagefright handling the videostream you don't get hardware acceleration.
dagrim1 said:
Unfortunately the 720p mkv I tried still didn't play smoothly (game of thrones) but atleast cifs and sharing/mounting worked!
Click to expand...
Click to collapse
What are you using to play the MKV? I'm guessing moboplayeror something similar that does CPU decode for anything that Stagefright can't handle

SilentMobius said:
This is incorrect no 3rd party app can add container parsing to Stagefright, and without Stagefright handling the videostream you don't get hardware acceleration.
What are you using to play the MKV? I'm guessing moboplayeror something similar that does CPU decode for anything that Stagefright can't handle
Click to expand...
Click to collapse
I am able to play MKVs using stock Video player. Over the CIFS it pauses sometimes due to running out of data, but generally 720p h.264 MKVs are pretty smooth.
However, I was unable to get any sound...
Sent from my Transformer TF101 using XDA Premium App

SilentMobius said:
This is incorrect no 3rd party app can add container parsing to Stagefright, and without Stagefright handling the videostream you don't get hardware acceleration.
What are you using to play the MKV? I'm guessing moboplayeror something similar that does CPU decode for anything that Stagefright can't handle
Click to expand...
Click to collapse
Tried moboplayer as well, with hardware decoding there is fluid video but no sound. With software decoding there is both but not fluid (and sound is out of sync).
Guess AC3 is simply a no go and parsing the video with hardware accelaration and audio with software processing is not an option. Perhaps when overclocked kernels are coming out for 3.1 there are some possibilities using software mode but I'm afraid there will be other (stability/heat) issues then.

dagrim1 said:
Didn't see another thread about this so thought it was worth it to start one.
Ok, after upgrading to 3.1 I lost my cifs functionality...
Started looking around and finally found that the cifs.ko module from this thread:
http://forum.xda-developers.com/showthread.php?t=1058713
And more specifically: "modules - k2.6.36.3.zip".
I extracted the cifs.ko to system\lib\modules and changed persmissions to the default values of the other modules there (using root explorer, you also have to set the mounting to rw instead of read only).
Next downloading terminal emulator from the market and typing the following things:
'su' (changes to super user, terminal emulator asks for root permissions at this step)
and
'insmod cifs.ko'
After that set up shares with mount manager and cifs manager, and voila...
Unfortunately the 720p mkv I tried still didn't play smoothly (game of thrones) but atleast cifs and sharing/mounting worked!
Click to expand...
Click to collapse
after I type 'insmod cifs.ko' I get:
insmod: can't open 'cifs.ko'
I've set the mounting to rw, any ideas?

prospect said:
after I type 'insmod cifs.ko' I get:
insmod: can't open 'cifs.ko'
I've set the mounting to rw, any ideas?
Click to expand...
Click to collapse
Same here, help?

try 'insmod /system/lib/modules/cifs.ko'
Worked for me...
Also, this was on Prime 1.4 rather than primordial...should work on either I would think.

Any idea how to get that to run at boot?

I added commands into GScript and I'll run manually after boot.
would be better to run at startup.
Thanks

Related

[Q] Question before buying Gtab

Hi,
I am new to Android and I would like to get some help for a few questions before buying a Gtablet.
1) Flash support - I saw it's posted on the official website it has a temp version of flash player. Can I know if it works well? I need to watch high-def flash movies on different websites. I hope it can play smoothly. Also am I able to play facebook flash games?
2) RMVB/AVI/MKV support - I have tons of these kind of videos on my NAS server but the official site does not say they are supported. I heard there is a Rockplayer that can do it, but I went to their App Store and found no such software. Can i know a way to play these formats? If the hardware does not support them, and there is a software does, how is the quality and speed?
3) Local LAN share - I think I already googled there is one called EStrong, can I open my NAS file share folders, and play Video directly?
4) Customization - Can I install apps from anywhere instead of their app store? for example can i install Android Market? or install an app from a file?
That's pretty much what i concerns so far, other than that this is a great tablet!
I much appreciate your advices.
I can help with the first and fourth ones. This afternoon I watched an episode of outsourced on nbc.com. it wasnt perfect, but definatly viewable, and youtube videos all look fine for me. As for the last one, I have the android market installed, and I have also installed .apks that I have the file form so yea they do work.
re. 2, my son user rockplayer to watch some mkvs last weekend. I'm not that familiar w/anime, but he said it wasn't handling embedded softsubs. We did find another player on market that did but I don't remember the name.
re. 3, ES Explorer will copy files over lan (windows shares or ftp), but it's not for streaming.
Mkv support depends more on how it was encoded. I ripped some DVDs to mkv with 5.1 sound using handbrake and those will play in rockplayer using software decode fine.
japhule said:
Mkv support depends more on how it was encoded. I ripped some DVDs to mkv with 5.1 sound using handbrake and those will play in rockplayer using software decode fine.
Click to expand...
Click to collapse
I should clarify my earlier post. We were able to watch the MKVs (animes) he had downloaded fine with rockplayer. But they had softsubs, and it wasn't showing those.
Jim
Re. 1, my wife uses the Gtab to watch Kdramas, on sites that stream flash, and it works pretty well. Served from sites like tudou, qdisk, etc., and works ok, but a lot of those sites sometimes have heavy traffic, and even with a PC, they get jerky, so it's not the Gtab, but the stream server and traffic usually.
Jim
chuugokujin said:
Hi,
I am new to Android and I would like to get some help for a few questions before buying a Gtablet.
1) Flash support - I saw it's posted on the official website it has a temp version of flash player. Can I know if it works well? I need to watch high-def flash movies on different websites. I hope it can play smoothly. Also am I able to play facebook flash games?
Click to expand...
Click to collapse
Works on news sites, tv.com, hulu, but thats with vegan 5.1. The stock rom ran flash "ok" but would crash some times.
2) RMVB/AVI/MKV support - I have tons of these kind of videos on my NAS server but the official site does not say they are supported. I heard there is a Rockplayer that can do it, but I went to their App Store and found no such software. Can i know a way to play these formats? If the hardware does not support them, and there is a software does, how is the quality and speed?
Click to expand...
Click to collapse
According to the specs It will play:
32-bit LP-DDR2, DDR2
S1080p H.264/H.263/ VC-1/MPEG-2/4/WMV9/DiVX 4/5 Video Decode
1080p H.264/MPEG-4 Video Encode
Supports multi-standard audio formats, including AAC, AMR, WMA, and MP3
Not all of those are working currently (some are and some aren't). Get yourself a good video encoder/dvd ripper for your computer and once they are encoded, you just drag and drop onto the gtab. If they are encoded properly with the proper settings, you get descent video quality.
4) Customization - Can I install apps from anywhere instead of their app store? for example can i install Android Market? or install an app from a file?
Click to expand...
Click to collapse
Yes but you will need to do a couple updates using the developer instructions from here and then do a market fix. The easiest one is the simple performance pack update to the 3389 build with a market fix, however over 5,000 people have gone to vegan 5.1
http://vegantab.gojimi.com/
It is the best from what i can tell, wicked fast. It has two issues curently 1) Micro SD card management/file mgt 2) Keyboard auto correct. Updates seem to come out every 10 days to 2 weeks right now.
Thank you all!
Thanks a lot for your answers it helped me a lot!
Allenfx said:
Works on news sites, tv.com, hulu, but thats with vegan 5.1. The stock rom ran flash "ok" but would crash some times.
According to the specs It will play:
32-bit LP-DDR2, DDR2
S1080p H.264/H.263/ VC-1/MPEG-2/4/WMV9/DiVX 4/5 Video Decode
1080p H.264/MPEG-4 Video Encode
Supports multi-standard audio formats, including AAC, AMR, WMA, and MP3
Not all of those are working currently (some are and some aren't). Get yourself a good video encoder/dvd ripper for your computer and once they are encoded, you just drag and drop onto the gtab. If they are encoded properly with the proper settings, you get descent video quality.
Yes but you will need to do a couple updates using the developer instructions from here and then do a market fix. The easiest one is the simple performance pack update to the 3389 build with a market fix, however over 5,000 people have gone to vegan 5.1
http://vegantab.gojimi.com/
It is the best from what i can tell, wicked fast. It has two issues curently 1) Micro SD card management/file mgt 2) Keyboard auto correct. Updates seem to come out every 10 days to 2 weeks right now.
Click to expand...
Click to collapse
That 5000 part is amazing to me. Having gone thru the Xmas 'recall' brouhaha, I had sometimes thought that there were like 10 of us Gtab users !!
Jim

MoboPlayer and HDMI mirror?

Hey guys i'm using MoboPlayer and i've notice that When mirrorring on my TV that it doesn't work while playing avi or mkv yet can play both those standalone... anyone else having these issues? or has anyone else mirror'd movies successfully using another app?
I had problems with mobo+hdmi too. The picture froze both on TV and transformer.
Using vital player now and hdmi works fine. Beware that ONLY free version works. Donate version keeps FC and developer says it's because honeycomb authentication system and it's not working now.
koleno said:
I had problems with mobo+hdmi too. The picture froze both on TV and transformer.
Using vital player now and hdmi works fine. Beware that ONLY free version works. Donate version keeps FC and developer says it's because honeycomb authentication system and it's not working now.
Click to expand...
Click to collapse
thanks will check that player out
i have that problem with Mobo and Rockplayer. will try out Vital too!
Those players can't play from th SD card thouggh
I use moboplayer. Works great. Make sure you get the additional codec pack for tegra. Forgot which one but it's somewhere in this forum.
I was also just tinkering with vital today. There is an option to set the root location where you start browsing. Simply set that to / and you can browse you entire tablet. Sgcard is not in/sdcard but /removable/microSD or sd
I don't need a signature.
Moboplayer and HDMI works fine for me. I also have the additional codec pack installed. Plays very smoothly.
The only thing that's "bad" about the HDMI mirror is the different screen ratio. The picture gets cut off at top and bottom. But since it's hiding the menu bar it's not really that bad
Is the codec needed for MoboPlayer different from the one that Mobo recommends in the Market?
Sturmie said:
Is the codec needed for MoboPlayer different from the one that Mobo recommends in the Market?
Click to expand...
Click to collapse
I use the one that they recommend after installing the main app. I think it's optimized for ARMv7. It's also available through the market.
I tried installing codec package , but it was freezing all the time
koleno said:
I tried installing codec package , but it was freezing all the time
Click to expand...
Click to collapse
I remember that I had trouble connecting to the servers but once I got the connection everything went smooth. I was already rooted and running Prime.

[Q] Hulu and 1080p

I'm considering dropping my iPhone and moving over to the Infuse. That large screen is calling to me.
I have a Nook Color that I have rooted and installed Gingerbread on (thanks to this site) and I really like it. My first question is about Flash and Hulu.com. On my Nook I was able to install a cracked version of Flash that allows me to go directly to Hulu.com and play the videos there in browser. Is that possible on the Infuse?
And my other question was is this phone capable of 1080p playback. My old 3Gs just can't handle it and the Nook will chug along but playback is very slow. I have several videos that are 1080p that I would like to play without having to convert them all first. I saw another thread that the device could play them but not after it had been rooted. Which I guess I'll have to do if I want to play Hulu files.
Thank you.
twopossums said:
I'm considering dropping my iPhone and moving over to the Infuse. That large screen is calling to me.
I have a Nook Color that I have rooted and installed Gingerbread on (thanks to this site) and I really like it. My first question is about Flash and Hulu.com. On my Nook I was able to install a cracked version of Flash that allows me to go directly to Hulu.com and play the videos there in browser. Is that possible on the Infuse?
And my other question was is this phone capable of 1080p playback. My old 3Gs just can't handle it and the Nook will chug along but playback is very slow. I have several videos that are 1080p that I would like to play without having to convert them all first. I saw another thread that the device could play them but not after it had been rooted. Which I guess I'll have to do if I want to play Hulu files.
Thank you.
Click to expand...
Click to collapse
Yes it has some ability to play 1080p. Actually more than some Tegra2 dual core devices.
So despite the year old processor it is still able to compete. And Samsung has been putting in multiple codec support and support for mkv sinse the original galaxy s 2 years ago. Multimedia is their area of specialty on phones. Not every 1080 p file will play but you may be able to transcode them to a lower class or bitrate or change the audio encoding which I find is most often the problem on files that don't play.
Also the browser while not the smoothest has a user agent setting accessable in the address bar by typing " about:useragent" just replace the lib for the flashplayer with one that is hex edited to look like the windows flash player and set useragent to desktop ( you can even make your own if you have issues) and clear your cookies and enjoy.
Oh. I thought Hulu had plugged that loop hole/browser trick. At least it didn't work on my Nook.
twopossums said:
Oh. I thought Hulu had plugged that loop hole/browser trick. At least it didn't work on my Nook.
Click to expand...
Click to collapse
I thought so too but there are still people with hulu threads. I think when new versions of flash come out they need to work to identify the illegal users again. Also you need to make surecookies are cleared. And it may have something to do with the device as well. They may have a block list but some new devices may sneak through provided the flash player look right but I'm not sure what their servers can actually see.
Guess that puts me in a wait and see category. I was kinda hoping I could just install something like the CM7 mod and then a cracked version of flash like I did on my Nook. That works perfectly.
Thank you for the advice.
You should know that 1080p video playback only works on official AT&T or Froyo-based Infuse ROM's. The current Gingerbread ROM's don't have 1080p support (although the leaked KI3/4 supposedly do, they're not custom ROM's and may have other issues). Also, non-Samsung ROM's like CM7 won't have any of Samsung's hardware-accelerated media codecs (ie. MKV). Even so, playback is going to be affected by bitrate: if the bitrate of a file is too high, you'll either have problems seeking or it won't play at all. If the audio track is an unsupported format (ie. FLAC in an MKV container), you can use MX Video Player and set it to use S/W audio decoding.
As for Hulu, you should be able to get by with hex editing the version in your Flash libraries to the latest Windows/Chrome Flash version, and then setting your useragent in your phone's browser. I haven't tried this recently, but it was still working on my Captivate a month ago.
Well that's cool. If I can get Hulu to work without rooting then I'll be happy. I'll probably leave it stock then so I get the most out of video playback. Thank you very much for te help.
twopossums said:
Well that's cool. If I can get Hulu to work without rooting then I'll be happy. I'll probably leave it stock then so I get the most out of video playback. Thank you very much for te help.
Click to expand...
Click to collapse
You'll need to root if you want to modify the Flash libraries within the system Flash apk. Otherwise, you'll have to reapply the modified Flash library every time you reboot the phone.

[APP] HOW TO New codec to Diceplayer

Diceplayer 2.0.8 support plug-in codec.
so you can add your own codec support.
1. make libffmpeg.so
you can download ffmpeg source for diceplayer
http://diceplayer.inisoft.co.kr/technical-note
configure and compile
at configure stage you can add your own codec selection.
2. copy libffmpeg.so to /sdcard/libffmpeg.so
3. launch diceplayer
menu key -> settings -> enable custom plug-in
you can play all of ffmpeg supported codecs.
*If you want to use codec , you should have rights to use that codec.
How is it configure and complie..
I try it.. but hard...
please help... >_<
Sorry. It is hard for non dev guys
I get it.. so.. I do it ^^
success
but.. I curios how it build..
I need to help..
Thank You ^^
Here's the libffmpeg.so from the previous release. Put it on my galaxy nexus, loaded it as a plugin, and it works. I now have DTS again on the most current version of Dice from the market.
thanks you guys. finally the player is back to being superb
Rooted..?
mbieler said:
thanks you guys. finally the player is back to being superb
Click to expand...
Click to collapse
So do I have to be rooted to do this..? I don't understand where to put the .so file at?
I'm super noob and just trying to get my .mkv files playing properly.
Any help would really be appreciated.
you don't need to be rooted.
download nathan118's zip file. extract it and place the contained "libffmpeg.so" in the root folder of your device. the root should be the folder you see when you connect your device to your computer. thats basically what the path "/sdcard/libffmpeg.so" in the first post means. if you proceed to enable the custom plugin in dice player it will show the path "/sdcard/libffmpeg.so" in the option for the custom plugin.
Thanks for the helping hand
mbieler said:
you don't need to be rooted.
download nathan118's zip file. extract it and place the contained "libffmpeg.so" in the root folder of your device. the root should be the folder you see when you connect your device to your computer. thats basically what the path "/sdcard/libffmpeg.so" in the first post means. if you proceed to enable the custom plugin in dice player it will show the path "/sdcard/libffmpeg.so" in the option for the custom plugin.
Click to expand...
Click to collapse
Ha! Got it. Thank you so much the both of you. Really appreciate this. This forum is so awesome. Thanked the both of you. :good:
nathan118 said:
Here's the libffmpeg.so from the previous release. Put it on my galaxy nexus, loaded it as a plugin, and it works. I now have DTS again on the most current version of Dice from the market.
Click to expand...
Click to collapse
Didn't Dice always had DTS? I thought it was MX Player that removed DTS
DicePlayer had to remove DTS as well for the same reason as MXplayer had to remove it: License issues.
The file from nathan118 is "fixing" this issue for DicePlayer.
Working on my Transformer TF201
I wonder if you can get even better media support by making the file yourself and selecting all the potential codecs. Sadly this is beyond my abilities to check
I'm having trouble with the libffmpeg.so plug in.
The DTS files would cause the player to kick back out when libffmpeg.so plugin was enabled. Without it enabled, it'd just say that the video file can't be played.
I had to download Diceplayer 2.0.6 with the Tegra Plug-in in order to get the DTS movies to work.
Is anyone able to get libffmpeg.so working on their Transformer TF101 ?
klau1 said:
I'm having trouble with the libffmpeg.so plug in.
The DTS files would cause the player to kick back out when libffmpeg.so plugin was enabled. Without it enabled, it'd just say that the video file can't be played.
I had to download Diceplayer 2.0.6 with the Tegra Plug-in in order to get the DTS movies to work.
Is anyone able to get libffmpeg.so working on their Transformer TF101 ?
Click to expand...
Click to collapse
you need different version of libffmpeg.so for TF101 from "diceplayer plugin for tegra2"
juami said:
you need different version of libffmpeg.so for TF101 from "diceplayer plugin for tegra2"
Click to expand...
Click to collapse
can anyone get/build the libffmpeg.so for tegra 3 (I'm assuming the chipset is the key here, I'd like to try it on HTC One X)
thx in advance
Would really love if MX Player do the same, the UI is just much better.
Oh yeah ! Thanks juami ! This works perfectly. I was so pissed off at DTS forcing you to remove the codec and refusing to sell it. Hope you never dorp the custom plugin feature )
---------- Post added at 09:33 PM ---------- Previous post was at 09:30 PM ----------
.tnm said:
can anyone get/build the libffmpeg.so for tegra 3 (I'm assuming the chipset is the key here, I'd like to try it on HTC One X)
thx in advance
Click to expand...
Click to collapse
No need to. I downloaded nathan's libffmpeg.so file (page 1) and put it on the root of my SDCard on my TF201 (Tegra 3), enabled Custom Plugins in Dice Player's settings and boom, it works.
DicePlayer on my TF201 doesn't require any additional lib to work (I suppose it's because the Tegra3 has the NEON instruction set and that's what DicePlayer uses by default). My Atrix 4G though is another matter, it does need the tegra2 plugin for diceplayer, and the libffmepg.so trick didn't work on the Atrix.
juami said:
you need different version of libffmpeg.so for TF101 from "diceplayer plugin for tegra2"
Click to expand...
Click to collapse
Where is this Tegra2 version of libffmpeg.so ?
Was wondering if one injects the libffmpeg.so into the dicplayer apk and sign it, would it work like that?
thanks for this thread. finally my huge mkv file with dts audio is now working with newest dice app in the market(2.10).

[MOD] Custom ffmpeg build with DTS Support for MX Player

Hi All,
The latest version of MX Player supports external ffmpeg.
Our xda member ktsamy has come up with an update for us - A custom codec for MX Player with DTS Support. Kindly find details in the below forum link. Please don't forget to thank ktsamy
http://forum.xda-developers.com/showthread.php?t=2156254
emanoj.i9103 said:
Hi All,
The latest version of MX Player supports external ffmpeg. Would be great if anyone of us can build a custom ffmpeg build for our device with DTS support. Thanks in Advance!
MX Player
Click to expand...
Click to collapse
can someone also include wmv format in mx player
because my maximum wmv format are not working
azhar.munshi said:
can someone also include wmv format in mx player
because my maximum wmv format are not working
Click to expand...
Click to collapse
Tried Vplayer or VLC player??
Sent from my GT-I9103 using xda premium
azhar.munshi said:
can someone also include wmv format in mx player
because my maximum wmv format are not working
Click to expand...
Click to collapse
Buddy no one should change MX player except its author, If you want some extra features then mail the author and request him.....
mj.vikram said:
Buddy no one should change MX player except its author, If you want some extra features then mail the author and request him.....
Click to expand...
Click to collapse
Author has provided external ffmpeg support.
Sent from my GT-I9103 using xda app-developers app
azhar.munshi said:
can someone also include wmv format in mx player
because my maximum wmv format are not working
Click to expand...
Click to collapse
Try this one buddy. It can play WMV movies(as mentioned by app uploader)
MOBOPLAYER
emanoj.i9103 said:
Hi All,
The latest version of MX Player supports external ffmpeg. Would be great if anyone of us can build a custom ffmpeg build for our device with DTS support. Thanks in Advance!
MX Player
Click to expand...
Click to collapse
bump..I too would be interested if anyone could point us to an old ffmpeg build.. perhaps someone has an old .apk from when it supported DTS, I could unzip it and search for it. Or maybe someone knows how compile it?
How to build your own ffmpeg with DTS support
Firstly, this advice isn't for the light hearted - most people will give up very quickly. I myself am still fairly new to C and compiling in a unix/linux environment (I just completed a beginners unit in C programming - you won't need this).
You will need:
a Linux machine (or virtual machine) - I used Ubuntu 12.04 (on a virtual machine)
GCC and C compilers (Ubuntu should come with these)
The "latest" Android NDK - you can get it from here: developer.android.com/tools/sdk/ndk/index.html
FFmpeg for MX Player source code: sites.google.com/site/mxvpen/ffmpeg
The attached modified build-ffmpeg.zip
The attached build-ffmpeg.zip contains a new build-ffmpeg.sh that I wrote from scratch as a replacement for the horribly messy one used by the developer. The config-ffmpeg.sh has also been modified such that all the lines that exclude codecs from the build (like --disable-demuxer=dts) have been removed along with a couple more that cause trouble when compiling. To build ffmpeg:
Extract the .tar.bz2 NDK
Copy the folder inside to "/usr/src/" (you will need root privelages to copy here - I ran Nautilus as root ["sudo nautilus"])
Rename it to "/usr/src/android-ndk-r8b" (Changing the "NDK="/usr/src/android-ndk-r8b" line in "config-ffmpeg.sh" didn't seem to work - it may work now with the updated build-ffmpeg.sh I wrote)
Extract your ffmpeg.7z somewhere. Extract the contents of build-ffmpeg.zip into this folder - replacing both build-ffmpeg.sh and config-ffmpeg.sh with the ones in the zip. This will make life much easier
Now open a terminal, cd to the location this file is in, and run "./build-ffmpeg.sh <your platform>". I used "./build-ffmpeg.sh neon" for my Nexus 7. Type some gibberish as <your platform> to see a list of valid platforms
Go and have a cup of tea while it builds (depending on your machine - this could take 30min ... I did this inside a virtual machine, so that's probably why)
Once it's done, inside the output folder should be another folder - with the name of the platform you specified. Inside that will be all the .so files you need. Grab this folder and put it on your device somewhere
Open MX Player on your device. Go to Settings -> Decoder -> Custom Codec, and navigate to the folder you put on your device. Press OK
Once MX Player restarts, you can check if the codec is in use by going back to Custom Codec to see if it is using the folder specified
Voila! You should now be able to get audio on movies with DTS sound =D
If someone could test these instructions for me (ktsamy I'm referring to you) that'd be great =D
will this help in playing mkv 720p or even 1080p videos in hw decoding mode?
Sent from my GT-I9103 using Tapatalk 2
khpatel4991 said:
will this help in playing mkv 720p or even 1080p videos in hw decoding mode?
Sent from my GT-I9103 using Tapatalk 2
Click to expand...
Click to collapse
You can't overcome a hardware limitation beyond a point. I guess it's not possible.
Sent from my GT-I9103 using xda app-developers app
emanoj.i9103 said:
You can't overcome a hardware limitation beyond a point. I guess it's not possible.
Click to expand...
Click to collapse
Manoj Tegra 2 is capable of playing 1080 P videos, But Samsung haven't provided the support/required drivers, In CM 10 also our Dev's are using Samsung's libs only so we are not able to play 1080P ......
UPDATE to "How to build your own ffmpeg with DTS support"
UPDATE: YOU DO NOT NEED A ROOTED ANDROID DEVICE! You can copy these .so files into a folder in your device's sdcard folder. Once this is done, from MX player, go to settings -> decoder -> custom codec. Locate the folder with all the .so files you made, and hit ok. Now it should work.
dylanh333 said:
Firstly, this advice isn't for the light hearted - most people will give up very quickly. I myself am still fairly new to C and compiling in a unix/linux environment (I just completed a beginners unit in C programming - you won't need this).
You will need:
a Linux machine (or virtual machine) - I used Ubuntu 12.04 (on a virtual machine)
GCC and C compilers (Ubuntu should come with these)
The "latest" Android NDK - you can get it from here: developer.android.com/tools/sdk/ndk/index.html
FFmpeg for MX Player source code: sites.google.com/site/mxvpen/ffmpeg
A rooted android device where you can directly access "/data/data/com.mxtech.videoplayer.ad/lib" (and a means of getting files there from your computer)
Now,
Extract the .tar.bz2 NDK
Copy the folder inside to "/usr/src/" (you will need root privelages to copy here - I ran Nautilus as root ["sudo nautilus"])
Rename it to "/usr/src/android-ndk-r8b" (Changing the "NDK="/usr/src/android-ndk-r8b" line in "config-ffmpeg.sh" doesn't work - the script is too messy)
Now extract your ffmpeg.7z somewhere, and in that same location make a folder called "libs", and inside that make a folder called "output"
Now open config-ffmpeg.sh, and look for the line "--disable-demuxer=dts", which you then (without hesitation) need to remove. This line explicitly removes support for the DTS audio codec from the ffmpeg codec package - it is evil.
Now open a terminal, cd to the location this file is in, and run "./build-ffmpeg.sh <your platform>". I used "./build-ffmpeg.sh neon" for my Nexus 7.
Go and have a cup of tea while it builds (depending on your machine - this could take 30min ... I did this inside a virtual machine, so that's probably why)
Once it's done, in the folder, look inside "./libs/output/<your platform>" (I went to "./libs/output/ffmpeg_v7_neon"). There should be a handful of .so files in there.
Find a way to copy these files to "/data/data/com.mxtech.videoplayer.ad/lib" on your Android device (overwriting the existing ones)
Voila! You should now be able to get audio on movies with DTS sound =D
Click to expand...
Click to collapse
Here's what I have compiled for my Nexus 7.
NOTE: NO ROOT REQUIRED!!!
The attached zip file contains the files for the ffmpeg codec WITH DTS audio support (quite a few .mkv movies use this), compiled for devices that use "NEON" (some architectural enhancement in the CPU to do with floating point numbers). That means it should work with any device that has a Tegra 3 processor, and I'm sure lots of others. A few quick Google searches should reveal information about your phone's processor. Here's how to get the codec working:
Extract the contents of the .zip somewhere on your device - take note of where the folder you extracted is.
Once this is done, from MX Player, go to Settings -> Decoder -> Custom Codec
Locate the folder you extracted, select it and hit OK. Once MX Player restarts, it should work.
Remember, your device's CPU must have "NEON". I'll compile ffmpeg for other platforms within the next few days for compatibility with other devices.
More codecs on the way
micah197 said:
Thanks heaps, dylanh333, that's really really helpful. Really sucks that it got removed because of the legal troubles, but now that I've got it back I'm really pleased! There're a lot of people who would benefit from your compiling of that brilliant custom codec, you might want to go post in http://forum.xda-developers.com/showthread.php?t=1831111 to let people there know that it is possible to go back to MX Player with DTS now. Again, thanks!
Click to expand...
Click to collapse
Thanks for the thanks =D
I shall have the codec compiled for more platforms tonight, so those who are using Samsung phones with a different processor and get really laggy video should see an improvement with a codec compiled for your phone's processor. Once this is done I'll also post a link to this thread in the one you suggested. It feels good to already be appreciated after just joining XDA Developers.
Ffmpeg codecs, all of them!
I have now compiled ffmpeg for several different platforms. Your device is likely to have a processor that is either:
A Tegra 2
Uses NEON (the Tegra 3 and a lot of newer processors use this)
Is an ARMv6 compliant processor with vfp (older phones)
Is an ARMv6 compliant processor (older phones)
Is an ARMv5 compliant processor (very old phones)
Is an x86 compliant processor
Is a MIPS compliant processor
A quick Google search of your device should reveal what processor it has, and another Google search should reveal information about the processor. Once you know which one of these categories your device fits, copy and extract the corresponding zip to your device, and take note of its location. Now open up MX Player, go to Settings -> Decoder -> Custom Codec, and once inside the folder you extracted, hit OK. After MX Player has restarted, MX Player will not only have support for DTS audio, but a few other codecs as well that were explicitly disabled by the developer.
Great!!!:good:
Thanks a lotttt. This is awesome
Sent from my GT-I9103 using xda app-developers app
Ohh My God!!!
I love you dylanh333. You saved my life. Went to a lot different forums, they got the lbffmpeg or something like that, still didnt play audios DTS with my Galaxy S3. All i could find was for Arm's processors and neon, no tegra builds. Always it was like"if you dont see your processor here, compile it and do your own custom build". I found you finally and not only my tegra2 processor but the most common ones as well. Good guy greg man lol. Thanks for everything
dylanh333 said:
I have now compiled ffmpeg for several different platforms. Your device is likely to have a processor that is either:
A Tegra 2
Uses NEON (the Tegra 3 and a lot of newer processors use this)
Is an ARMv6 compliant processor with vfp (older phones)
Is an ARMv6 compliant processor (older phones)
Is an ARMv5 compliant processor (very old phones)
Is an x86 compliant processor
Is a MIPS compliant processor
A quick Google search of your device should reveal what processor it has, and another Google search should reveal information about the processor. Once you know which one of these categories your device fits, copy and extract the corresponding zip to your device, and take note of its location. Now open up MX Player, go to Settings -> Decoder -> Custom Codec, and once inside the folder you extracted, hit OK. After MX Player has restarted, MX Player will not only have support for DTS audio, but a few other codecs as well that were explicitly disabled by the developer.
Click to expand...
Click to collapse
I think ffmpeg codecs use sw decoding. Have you seen any lag with 5.1?
Sent from my GT-I9103 using xda app-developers app
my phone (Huawei U8800) has an ARMv7 instruction set, so which one should i download then?
tia..

Categories

Resources