NVOMX_TrackList.h & NVOMX_ParserExtensions.h - G Tablet Android Development

Nvidia has released this to the developers as these are the last 2 files needed as discussed in IRC.
http://www.mediafire.com/?u8tr869k8ef706b
Enjoy!
P.S. These should be for Gingerbread.
EDIT: Being built into ROMs right now! (It works)

im assuming gojimis ginger vegan is the only one with this built in (correct me if I'm wrong, but he posted an update shortly after this came to light) cause I wanna see the difference between builds/other roms, and more importantly (for us non developers) what does this code do? where does it go? How it affect us? Whose git hub has it implemented if one wanted to compile a kernel.

tom62015 said:
im assuming gojimis ginger vegan is the only one with this built in (correct me if I'm wrong, but he posted an update shortly after this came to light) cause I wanna see the difference between builds/other roms, and more importantly (for us non developers) what does this code do? where does it go? How it affect us? Whose git hub has it implemented if one wanted to compile a kernel.
Click to expand...
Click to collapse
GoJimi has not integrated this yet, but knows of it.
This code enables hardware encoding/decoding for video and audio. It allows us to use the Stagefright framework.
I believe it goes into the ROM (not sure where, I'm not a full dev).
It will speed up the ROMs significantly and we will no longer need RockPlayer (software decoding) to view almost any video.
I don't believe its kernel related, but I could be wrong. If it is, then Scepterr is working on it, GoJimi is working on it, pershoot will probably look at it soon enough, Bumble-Bee looked at it, but I don't know if he started playing with it, and I'm sure Rothnic will play with it soon enough.
Right now, all I know from the devs in IRC is that these two files successfully compile. Other than that, I haven't heard much.

Sweet! You have just answered a lot of my video performance issue questions.

TheJesus said:
GoJimi has not integrated this yet, but knows of it.
This code enables hardware encoding/decoding for video and audio. It allows us to use the Stagefright framework.
I believe it goes into the ROM (not sure where, I'm not a full dev).
It will speed up the ROMs significantly and we will no longer need RockPlayer (software decoding) to view almost any video.
I don't believe its kernel related, but I could be wrong. If it is, then Scepterr is working on it, GoJimi is working on it, pershoot will probably look at it soon enough, Bumble-Bee looked at it, but I don't know if he started playing with it, and I'm sure Rothnic will play with it soon enough.
Right now, all I know from the devs in IRC is that these two files successfully compile. Other than that, I haven't heard much.
Click to expand...
Click to collapse
Following is the list of Multimedia capabilities/features supported by
stagefright MMF (multi media platform) in GB,
Player: MP4, 3GP, WEBM, MKV, MPEG-2 TS , OggS
Recorder - MP4/3GP
Streaming: HTTP, RTSP, HTTPLIVE(Apple)
Audio decoders : AAC, AAC+, eAAC+, AMR-NB, AMR-WB, MP3, VORBIS
Video decoders: H264, VPx, MPEG4, H263
Audio encoder: AMR-NB, AMR-WB, AAC
Video Encode: H264, H263, m4v
woohoo...should be able to play my mkvs while the wife's driving during long road trips..YESSS
Also, if mpeg-2 ts streaming becomes a reality (since stagefright in gingerbread supports it), could also watch recorded TV using the "upnplay" dlna app
exciting!!

Netflix app????

not enough drm for that

will this enable h264 high profile videos to be played?

answer: no

Tegra 2 (T20/AP20H)Processor: Dual-core ARM Cortex-A9 MPCore, up to 1 GHz
8-Core Nvidia GPU
Graphics: GeForce ULP (Ultra Low Power).[12] Double 3D graphics performance of Tegra 600 series (10%-30% faster than the PowerVR SGX540 and 25%-100% faster than the Snapdragon Adreno 205)
Lower Power DDR2 / DDR2 (DDR2-667, 166 MHz)
No NEON instruction sets from ARM
1080p H.264 Main Profile/VC-1/MPEG-4 video decode
1080p H.264 video encode
JPEG encode and decode
Dual-display support
Camera support (up to 12 megapixels)
Single-channel memory controller

Will this have any impact on the performance of games like Gun Bros?
Thanks!
MC

probably not, since stagefright framework is only related to the audio/video encode/decode acceleration blocks. games have more to do with the graphics accelerator. See this

viplob said:
Following is the list of Multimedia capabilities/features supported by
stagefright MMF (multi media platform) in GB,
Player: MP4, 3GP, WEBM, MKV, MPEG-2 TS , OggS
Recorder - MP4/3GP
Streaming: HTTP, RTSP, HTTPLIVE(Apple)
Audio decoders : AAC, AAC+, eAAC+, AMR-NB, AMR-WB, MP3, VORBIS
Video decoders: H264, VPx, MPEG4, H263
Audio encoder: AMR-NB, AMR-WB, AAC
Video Encode: H264, H263, m4v
woohoo...should be able to play my mkvs while the wife's driving during long road trips..YESSS
Also, if mpeg-2 ts streaming becomes a reality (since stagefright in gingerbread supports it), could also watch recorded TV using the "upnplay" dlna app
exciting!!
Click to expand...
Click to collapse
It'd be safer to play mkvs while you drive.. let the wife hold the tablet or something.

Blades said:
It'd be safer to play mkvs while you drive.. let the wife hold the tablet or something.
Click to expand...
Click to collapse
ROFL! agreed (glance to make sure my wife isn't looking over shoulder)

All of this fun joy is for gingerbread only, yes? Froyo being left out in the cold?
Sent from the awesome ZTab

foobaz123 said:
All of this fun joy is for gingerbread only, yes? Froyo being left out in the cold?
Sent from the awesome ZTab
Click to expand...
Click to collapse
I could possibly convince Nvidia to send me the versions for Froyo, but at this point GB is close to stability, so no point supporting the older version.
As to video performance/playing, yes this will allow more videos to be played natively. I'm not positive which videos it allows, but if its in Stagefright, should be playable.
For game performance, no, it is only relative to video decoding, that has to do with OpenGL or w/e they use.

TheJesus said:
I could possibly convince Nvidia to send me the versions for Froyo, but at this point GB is close to stability, so no point supporting the older version.
As to video performance/playing, yes this will allow more videos to be played natively. I'm not positive which videos it allows, but if its in Stagefright, should be playable.
For game performance, no, it is only relative to video decoding, that has to do with OpenGL or w/e they use.
Click to expand...
Click to collapse
Except for those of us who still can't boot any gingerbread ROM... :-(
Sent from the awesome ZTab

foobaz123 said:
Except for those of us who still can't boot any gingerbread ROM... :-(
Sent from the awesome ZTab
Click to expand...
Click to collapse
Never heard of any issues booting GB ROMs :/
Even the non-Bittrix CM7?

TheJesus said:
Never heard of any issues booting GB ROMs :/
Even the non-Bittrix CM7?
Click to expand...
Click to collapse
I'll give it a whirl later. The issue seems to center on partitioning differences between this generation of Zpad and the Grab. Oddly, it does have any issues with TnT lite or Vegan 5.1.1. Not sure why.
Sent from the awesome ZTab

So, to all of Awesome Dev's: any plans of folding this into builds? Or is it much more complex than I am thinking.
I have booted into Vegan-Ginger, but it didn't have hardware AVI decoding for me (1 particular test file, some Roms do it, some don't, its non-standard size), and that is a ROM killer (in my book only). Other than that, it was really slick.

Related

XVid codec

Yesturday I downloaded from Market YXFlash app, which is a kind of codec for XVid and a few more video formats. My question - if mobilesoft done it, I mean comiped xvid codec for arm on Android, can you - Android hackers do the same and publish here? I would like to say, that YXFlash works fine on my N1.
That would be amazing! Someone has gotta know how
Unfortunatelly I do not know C-family languages at all, so I can not do it my self... I was very sorry of xvid codecs lack in G1, but I understanded that is result of G1 processor limit (MSM7201A), which doesn't support this codec. According to QSD8250 specyfication - it should be possible to do it - to create codec (for coding and encoding) in other formats then h.264.
gmadajczak said:
Unfortunatelly I do not know C-family languages at all, so I can not do it my self... I was very sorry of xvid codecs lack in G1, but I understanded that is result of G1 processor limit (MSM7201A), which doesn't support this codec. According to QSD8250 specyfication - it should be possible to do it - to create codec (for coding and encoding) in other formats then h.264.
Click to expand...
Click to collapse
my TPRO can play divx with coreplayer and tcpmp with msm7201A so its not do with the processor.
babijoee said:
my TPRO can play divx with coreplayer and tcpmp with msm7201A so its not do with the processor.
Click to expand...
Click to collapse
Yes, you are right, because I read that mentioned app works also on G1. I think, that thanks Snapdragon support divix/xvid playback should be smoother and faster and not so processor-power consuming (read battery-saving).
This is a pointless discussion.
The codec (enCOder-DECoder) is HARDWARE -- built into the same package as the CPU.
XVid is more properly known as H.263, which is FULLY SUPPORTED by the hardware codec, not only for GN1, but also for OTHER android phones all the way back to and including DREAM.
There are two things *definitely* standing in the way of just playing back an "xvid" video file: 1) Demuxer applicable to the container that the video is contained in, i.e. ogm, avi, mkv, etc., 2) FOURCC -- when using the xvid h.263 encoder, the fourcc will be (incorrectly) set to "XVID" when it *should* be set to "H263". Regardless of this, the chip doesn't care what the FOURCC is, just the media player (which needs to know the stream details in order to set up the decoder chip).
There can be other issues involved in playing back the file... bitrate/resolution exceeding codec limits, audio encoding incompatible, etc.
On a side note the excellent core player should be coming out on android soon enough,they seem to be in testing stages now.
I would be shocked if coreplayer was out for android this year. The s60v5 version has been "in the works" for over a year now I think, and porting from s60v3 should be cake. Coreplayer 2.0 is the DNF of mobile apps
bradsh1 said:
I would be shocked if coreplayer was out for android this year. The s60v5 version has been "in the works" for over a year now I think, and porting from s60v3 should be cake. Coreplayer 2.0 is the DNF of mobile apps
Click to expand...
Click to collapse
sadly, i know what DNF means, lol
timothydonohue said:
sadly, i know what DNF means, lol
Click to expand...
Click to collapse
Time to kick ass and chew bubblegum and im all out of gum!
bradsh1 said:
I would be shocked if coreplayer was out for android this year. The s60v5 version has been "in the works" for over a year now I think, and porting from s60v3 should be cake. Coreplayer 2.0 is the DNF of mobile apps
Click to expand...
Click to collapse
Is there track record that bad ?
They didnt do the iphone because they were shutdown by Apple.
They keep posting progress including screenshots for Android.
twitter.com/corecodec
http://img158.yfrog.com/i/6zxx.jpg/
They already got sound and UI done, hinted that progress was going better than expected. As for YXFlash... it sucks for certain videos and after 2 minutes, BOOM! tough actin tinactin!

Xvid/Dvix Play back with stock rom?

We all know Divx/Xvid is capable with the TouchWiz, but is it the TouchWiz that allows playback or is there an underlying app that will allow Divx/Xvid to play?
Most of us are considering rooting and either loading the International Rom if its better or running some kind of stock rom to rid TouchWiz unless of course its not as laggy as reports have said.
I'm really digging on the idea of being able to play Divx/Xvid.
The T-Mobile Vibrant plays all the same videos the international versions do, no change to the video player at all. I've been watching 720p MKVs and various divx/xvid files on mine without issue!
I think the OP is asking if it plays those files without touchwiz being present or active?
yes you can disable the touchwiz and still have video playback in all formats...
Yeah thats what I was interested in. If we mod would it change the ability to play movies.
Have any if you try the divx video yet? It won't play on my vibrant for some reason. I was able to play 720p mkv,mp4 but not divx.
Sent from my SGH-T959 using XDA App
I didn't even know it had mkv/divx/xvid playback, this makes me happy lol..
I hope it does. All mose all my Vids are Xvids and Divx files. Just ordered mine so I couldnt' even tell.
do you just play the 4gig mkv or do you compress it somehow? I want to put some more videos on but dont know what size to compress them to/what program is best for my vibrant's resolution.
talltexan said:
do you just play the 4gig mkv or do you compress it somehow? I want to put some more videos on but dont know what size to compress them to/what program is best for my vibrant's resolution.
Click to expand...
Click to collapse
There isn't a file size limit persay, but it seems the Vibrant will reject any videos with resolutions higher than 1280x720. E.M. Total Video Converter HD seems to be best so far in terms of quality and conversion success rates, but if you're looking for freeware, Handbrake works very well. Set the profile to iPhone, and make sure the video resolution is 800x480 or less.
kizer said:
We all know Divx/Xvid is capable with the TouchWiz, but is it the TouchWiz that allows playback or is there an underlying app that will allow Divx/Xvid to play?
Most of us are considering rooting and either loading the International Rom if its better or running some kind of stock rom to rid TouchWiz unless of course its not as laggy as reports have said.
I'm really digging on the idea of being able to play Divx/Xvid.
Click to expand...
Click to collapse
The international rom should be able to play the xvid/mkv video but if you flash on some other Rom (e.g. AOSP Froyo, etc) then it will lose the ability to play them unless someone figure out how to port the ability into the other Rom.
My vibrant wont divx, but play 720mkv perfectly. Yxplayer play divx but very choppy.
Didn't engadget somehow play a 1080p video on the Galaxy S when they compared it with the iphone? or do you mean the divx can;t be more then 720p?
And as for the rom thing...The video should be hardware decoded..so as long as the drivers are portable it would be possible on any galaxy s regardless the rom..or at least that is my guess...
gTen said:
Didn't engadget somehow play a 1080p video on the Galaxy S when they compared it with the iphone? or do you mean the divx can;t be more then 720p?
And as for the rom thing...The video should be hardware decoded..so as long as the drivers are portable it would be possible on any galaxy s regardless the rom..or at least that is my guess...
Click to expand...
Click to collapse
Why the hell would they put specific hardware decoders in the phone for divx support? I would assume they just included the codec support with the stock rom. I seriously doubt that you can throw any rom in there and immediately playback divx video.
I'm not sure what you mean by asking if engadget played a 1080p movie on the galaxy S. Do you mean that they used a 1080p video and the phone auto-scaled it down to 800x480?
richse said:
Why the hell would they put specific hardware decoders in the phone for divx support? I would assume they just included the codec support with the stock rom. I seriously doubt that you can throw any rom in there and immediately playback divx video.
I'm not sure what you mean by asking if engadget played a 1080p movie on the galaxy S. Do you mean that they used a 1080p video and the phone auto-scaled it down to 800x480?
Click to expand...
Click to collapse
I remember reading it has the video decoder built into the Hummingbird GPU..but I don't remember where...let me see if I can find the source.
Edit: never mind the 1080p..I went searching for that article and they modified it since I read it to say they did it via youtube 1080p setting on the app >.>..but they dont even know if it was 1080p or 720p either..sigh
gTen said:
I remember reading it has the video decoder built into the Hummingbird GPU..but I don't remember where...let me see if I can find the source.
Click to expand...
Click to collapse
I went searching and found a review that states "Dedicated Graphics Hardware With Divx decoding" as a pro for getting the phone. I think they combined two things here (the Power VR gpu and the software support for divx). I see how it could be read to imply that the divx support is hardware based, but an earlier part of the article indicates that the divx codec support is built into the video player software.
Here's the article: http://pocketnow.com/hardware-1/samsung-galaxy-s-gt-i9000-review
This is really a situation for Occam's razor. Would they go to all the expense of adding hardware divx support to the cpu design or would they just use already existing software solutions that cost almost nothing to implement? The press release from last year revealing the hummingbird doesn't have any mention of it. http://www.samsung.com/global/business/semiconductor/newsView.do?news_id=1030
richse said:
I went searching and found a review that states "Dedicated Graphics Hardware With Divx decoding" as a pro for getting the phone. I think they combined two things here (the Power VR gpu and the software support for divx). I see how it could be read to imply that the divx support is hardware based, but an earlier part of the article indicates that the divx codec support is built into the video player software.
Here's the article: http://pocketnow.com/hardware-1/samsung-galaxy-s-gt-i9000-review
This is really a situation for Occam's razor. Would they go to all the expense of adding hardware divx support to the cpu design or would they just use already existing software solutions that cost almost nothing to implement? The press release from last year revealing the hummingbird doesn't have any mention of it. http://www.samsung.com/global/business/semiconductor/newsView.do?news_id=1030
Click to expand...
Click to collapse
Here you go I found it:
http://www.slashgear.com/samsung-1ghz-hummingbird-mobile-cpu-takes-on-snapdragon-2750348/
They do mention it..the ARM® NEON™ multi-media extension is it
Edit: Hardware video decoding is good because it saves battery life and more efficient over software decode...I'm researching the ARM NEON now..on their site it says it can decode ANY video but is not specific on all formats..only lists MPEG-4, H.264, On2 VP6/7/8, Real, AVS..... but the ... means there are more they are not stating
gTen said:
Here you go I found it:
http://www.slashgear.com/samsung-1ghz-hummingbird-mobile-cpu-takes-on-snapdragon-2750348/
They do mention it..the ARM® NEON™ multi-media extension is it
Click to expand...
Click to collapse
All I see is it says NEON does "video decoding" and I can't find a single mention of divx in the article or in the NEON link they provide. Every video card or gpu I have owned has had some hardware to decode and encode video but none have natively supported divx.
richse said:
All I see is it says NEON does "video decoding" and I can't find a single mention of divx in the article or in the NEON link they provide. Every video card or gpu I have owned has had some hardware to decode and encode video but none have natively supported divx.
Click to expand...
Click to collapse
The article was to show that it does have hardware decode in general...
I can't say for sure about divx/xvid..I don't even have the phone yet to test if it is the case or not...their site does state ANY format
NEON enhances many multimedia user experiences:
Watch any video in any format
Edit and enhance captured videos - video stabilization
Anti-aliased rendering and compositing
Game processing
Process multi-megapixel photos quickly
Voice recognition
Powerful multichannel hi-fi audio processing
Click to expand...
Click to collapse
That said Divx Decode was part of the ATI hardware decoder..at least in the 4XXX series
As for samsung''s reason to do this...we have to remember that the Hummingbird was meant to be scalable so they can use it for tablets..thus having it natively support the large array of formats is key.
Just got the Vibrant and noticed that it would not play some AVI files (simple TV show low res). had to DL rock player to play those files.Also had an mp4 play in stock video player but would not play the sound and in Rock player tried to play the sound but was garbled.
So not sure what the full support is and wondering if we just need to get a nice media player.

Getting around the ac3 limitation

Try VitalPlayer from the market. I had no issues playing files that were blocked by the 101's native video player for lack of ac3 support. Also could play 720p.
Just fyi for all.
(I am not affiliated with the app or the developer).
so does it support hardware acceleration?
Well, if there are hardware codecs, it uses it... else it uses software codecs... so ac3 is most likely decoded using the software codecs
have been testing this for a week now and it seems to work very well
Thanks for the heads up. But it does choke on the 720p files!
It doesnt choke on 720p for me. I have the Shrek series and they play well.
Also another benefit is that it works well with the OC kernel on UrukDroid. Other video players including the Archos' native one had a lag between audio and video on OC. This one doesnt.

[Q] Chances for better hardware-accelerated media playing?

Hi Iconia-Lovers,
I really love my Tab for web-browsing and gaming, but you have to admit it sucks at video playing. MP4 and 3GP are crappy formats that are hardly used in RL und converting your whole video and movie collection isn't a real option.
I had have an Archos A70 which plays even 1080p MKV flawless with a single core 1GHZ CPU, but relies on an additional decoding chip if i get this right.
In theory, the Tegra 2 has more than enough power to play 1080p files, right?
I already tried like 6 different media players but all of them weren't able to play 720p mkvs nice and even non-HD-avi-files felt a little slowed-down.
So can we hope for a hardware-accelerated media player that enables alle the joy of moving pictures for us? Will possibly acer itself help us out on this issue? What are Samsung and Motorola doing on their Gingerbread tablets to enable nice media playing?
Hoping for a better tomorrow
Cheers
pint
pintness said:
Hi Iconia-Lovers,
I had have an Archos A70 which plays even 1080p MKV flawless with a single core 1GHZ CPU, but relies on an additional decoding chip if i get this right.
Click to expand...
Click to collapse
you sure about that?? my 101 throws a fit with 1080p mkv videos and both use the the firmware.
but i agree, i would love better video support on the iconia, since it runs circles around my archos when it comes to everything else.
pintness said:
Hi Iconia-Lovers,
I really love my Tab for web-browsing and gaming, but you have to admit it sucks at video playing. MP4 and 3GP are crappy formats that are hardly used in RL und converting your whole video and movie collection isn't a real option.
I had have an Archos A70 which plays even 1080p MKV flawless with a single core 1GHZ CPU, but relies on an additional decoding chip if i get this right.
In theory, the Tegra 2 has more than enough power to play 1080p files, right?
I already tried like 6 different media players but all of them weren't able to play 720p mkvs nice and even non-HD-avi-files felt a little slowed-down.
So can we hope for a hardware-accelerated media player that enables alle the joy of moving pictures for us? Will possibly acer itself help us out on this issue? What are Samsung and Motorola doing on their Gingerbread tablets to enable nice media playing?
Hoping for a better tomorrow
Cheers
pint
Click to expand...
Click to collapse
Tried VPlayer? it costs like $4/ £2.30 but it can play practically all standards, not sure how it fares for 1080p tho.
I had it playing .avi and .mkv fine though.
Vplayer--
Video formats: divx/xvid, wmv, m4v, flv, rmvb, avi, mkv, mov, mp4, 3gp, ts, tp...
Streaming: http, rtsp, mms and m3u(apple http stream, m3u8)
I use UPnPlay (network streaming) along with MoboPlayer and it has played everything i have on my NAS very well.
Also I know Rockplayer gives you the option of hardware/software decoding so you may want to give that a try if you haven't already. There is a free version.
Both moboplayer and rock player are useless for my 720p and 1080p videos... total stutterfest, but that's a known thing for tegra devices on 3.0...
Sent from my A500 using Tapatalk
godashram said:
Both moboplayer and rock player are useless for my 720p and 1080p videos... total stutterfest, but that's a known thing for tegra devices on 3.0...
Sent from my A500 using Tapatalk
Click to expand...
Click to collapse
Hmmm... I use moboplayer, and every 720 did I've tried has been great! I haven't tried any 1080p vids though.
tested 1080 quality....the videos lag and the audio missing....
hope acer will figure it out....
Avatar & 10,000 B.C. in 1080P using UPnPlay & MoboPlayer streamed from my WD NAS, looks great. No lagging at all.
not another one of these threads..
edgie168 said:
not another one of these threads..
Click to expand...
Click to collapse
Guess what? You aren't being forced to read this thread.
lord_voldemort666 said:
Guess what? You aren't being forced to read this thread.
Click to expand...
Click to collapse
Guess what? It pushes down other, more quality threads.
Guess what? There's already something like 6 or 7 threads EXACTLY LIKE THIS ONE already.
Guess what? People need to learn to use the search function.
Guess what? Guess what? Guess what?
^ If you don't like it, report it to a mod and move on...
edgie168 said:
Guess what? It pushes down other, more quality threads.
Guess what? There's already something like 6 or 7 threads EXACTLY LIKE THIS ONE already.
Guess what? People need to learn to use the search function.
Guess what? Guess what? Guess what?
Click to expand...
Click to collapse
Guess what? You've just caused this thread to get bumped several times.
XP
I have been trying all the suggested encoders to get smooth playback for film material as 60/50hz works fine. I maybe more sensative to it than others as I tent to look for it on moving objects. But I got it to replace a media player too.
I tried the script posted in another thread with good results but the jump is still there.
Bought DVD Catalist 4 with same results.
Freemake with custom profile same again.
Handbreak I find too slow but I read it works but can't verify it.
Any Video Converter Pro with xoom profile WORKS - it has very little judder but having to strip the subtitles out of the MKV every time is a real pain ( Anyone know how to disable them ) and it's too expensive anyway.
Trying to edit DVD Catalist 4 profile now but no success yet
Oh and I tried Vplayer , Rockplayer , Moboplayer and any others I could find
Hope my two weeks at this helps somone else out.
@RaveOn911
With any problem, you need to find its parameters. Only a handful of people notice the "micro-stutter" deal, so it's either a user sensitivity issue, or a tablet-centric issue (which could be hardware or software, user-caused or device defect).
Ask somebody to watch a video clip on your tablet, and ask them if they see anything wrong with playback. Don't tell him beforehand about "micro-stutter", as you don't want to bias his observation.
If he notices the stutter, it's your tablet. If he doesn't, it's you.
If the first, then bring a video clip on a uSD card into a store and try it on other tablets (hopefully with same or similar make as yours). If it doesn't happen on other tabs, then replace your tab. If it happens on every other tab, then again it's you.
If you have heightened sensitivity, then there may be params that can alleviate the issue. The default interleave for MP4Box is 0.5s. You can reduce this interleave, eg
MP4Box -inter 250 -add infile.mp4 -new outfile.mp4
(or)
MP4Box -tight -add infile.mp4 -new outfile.mp4
MP4Box works on MP4 only. Given that MKVs can only play in software mode currently on Teg2 tabs, it's a fool's errand to play MKV and claim that they don't play smoothly. Avail of the native support.
Mobo Player plays my mkv and xvid/divx AVI's just fine. I'm no codec/encoding expert, but from what I've read it's worth re-encoding some of the files to a more manageable bitrate for both audio and video and maybe dump the 5.1 or AC3 audio. I haven't looked at every file I've played, but a couple that would choke on my Win7 Asus netbook, I re-encoded with Handbrake. They still look and sound great.
e.mote said:
Given that MKVs can only play in software mode currently
Click to expand...
Click to collapse
I understood that that's the whole point the OP was trying to make: he wishes that someone makes a video player application that can handle MKVs via the hardware decoder. It's not a bad thing to wish for, either; it would provide better performance and hardware playback uses less battery, too.
The question remains: is it possible? As far as I know, the chip itself doesn't get relayed anything more than the actual video stream inside the file, regardless of the container, and thus an app should be able to do exactly that. But since I don't know anything about Android internals are applications given any such access?
My N900 phone uses regular GStreamer stack and thus you can demux anything you want and supply the video stream to the hardware decoder. As long as it's H.264 normal profile and not too high a resolution it'll play, regardless of the originating container.
There's nothing wrong with wishing, but until it happens, we have to use what we've got. For HC, for now that means MP4 for native support.
3.1 thus far has been worse than 2.x insofar as multimedia, probably because vendors have had 2.x for much longer, and were able to add enhanced support. A good case in point is the Samsung GalTab 7 vs the GalTab 10.1. The 7, released last year, can play MKV. The new 10.1 can't. Ditto for all the "my old phone can play MKV, why can't my tablet" complaints. It is what it is.
From all indications, HC was and is a rush job. It had to be pushed out the door because of competition from the iPad. I think the prospective buyer should understand that s/he is buying into a beta, and temper his expectations accordingly. Android has high potential, but now isn't then.
I've written a script that does fast remux/convert to MP4. A straight remux takes a few minutes, and it can process batch. It's a more productive route than wishing for a HW-accel player to come along.
http://forum.xda-developers.com/showthread.php?t=1102922
e.mote said:
It's a more productive route than wishing for a HW-accel player to come along.
Click to expand...
Click to collapse
I suppose that's a matter of viewpoint.
I took a look at the MediaPlayer class in Google's APIs and it seems to me that it should be fairly straightforward to demux the MKV file in software on-the-fly, create named pipe with mkfifo and feed the MediaPlayer class the raw video stream via that. Just throw a simple GUI on top of that and you have a rudimentary video player capable of playing MKV files with hardware accelerated video.
I'll try it out once I receive my tablet, was planning to learn Android programming anyways.
PS. Bah, doesn't allow me to post links yet :/

Lagfree playing of .mkv 720p/1080p source

Hi folks,
Is there any posibility of a lagfree playing of those videos ?
It sucks watching Videos with less than 20fps...
3.1 is supposed to improve playback... just no idea if it will improve 720/1080p playback
Sent from my A500 using Tapatalk
I use Handbrake and imported these setting I found on the net.
https://sites.google.com/site/theiveryinc/a500files
That Google site is mine.
Converts all my 720p.mkv files perfectly, the only issue is the files are big, 2-4 GB, but the quality is outstanding. They even play on 'Movies' which darkens the navigation bar.
i was looking for something like this so many times before, but I never found a stable movie app. On my Samsung Galaxy S II however, it's no problem at all. And that's a freaking phone man! But it's no wonder the hole system is so fast. It makes my newly aquired Iconia looking really sluggish and outdated :-( I don't know if I gonna keep this tablet or gonna look my movies on a 4.3" screen...
I asked Acer customer support whether they're ever going to support additional formats and they replied that they won't ever add support for MKV and can't comment on the rest. So official support for MKV is out the window.
Mkv isn't a video format, it's a container. It's just that most mkv's don't contain only baseline h.264, which is the only supported video format currently. The most benefit would come from adding support for main or high profile h.264
themono said:
Mkv isn't a video format, it's a container.
Click to expand...
Click to collapse
I know, it still doesn't help at all if the video player application or framework don't support the container format. I personally love MKV, it's handy to slap in two different audio tracks and subtitles in English, Finnish and the hearing-impaired version, plus any metadata about the movie itself. No need to hassle with several files then.
The most benefit would come from adding support for main or high profile h.264
Click to expand...
Click to collapse
Indeed. I tried transcoding a 1080p movie to 720p in constant quality mode, both in baseline and high profile modes, and while the quality was the same the high profile one used a lot less storage space. With storage space being rather scarse on mobile devices....
Well, we can only hope. But I don't know if the DSP is beefy enough to decode high profile or if it can be re-programmed to support it. Some DSPs are hardcoded and can't be used for anything other than what they already do when shipped. I don't know anything about Tegra 2 internals so I don't know what to expect.
godashram said:
3.1 is supposed to improve playback... just no idea if it will improve 720/1080p playback
Sent from my A500 using Tapatalk
Click to expand...
Click to collapse
I use 3.1 atm, but there is no mentionable ddifference to 3.0.1
The nVIDIA Tegra 2 250 is fully able to hardware decode:
H.264
VC-1 AP
MPEG2
MPEG-4
DivX 4/5
XviD HT
H.263
Theora
VP8
WMV
Sorenson Spark
Real Video
VP6
and encode:
H.264
MPEG4
H.263
VP8
And this is for 1080p both enc/dec
Why ACER can't (won't) support them is beyond me! Even my Single Core 7" Samsung Galaxy TAB can play all 1080p videos I have thrown at it!
And here is the full spec of the Tegra 2 250 Link!
Is it maybe because of that, that I play these videos from my USB-HDD?
dgcxsk said:
Is it maybe because of that, that I play these videos from my USB-HDD?
Click to expand...
Click to collapse
You can always copy one of them to the TAB and see if there is any change ( I doubt it)
Using a OLD 60gb usb hdd (literally 8 years old)
And it does not seem to matter - even with the low speed of an old external drive I have no issues playing video from it.
.Mkv -- Regardless of where it is stored is not going to work on the Iconia right now - i don't think there is anything anyone can do or change to fix that right now - the system will not?/can not? use the hardware decoder on mkv files - and software decoding, even for a low bit rate video file is always going to suck.
Hopefully 3.1 will improve our video performance - but I find it a very simple matter to just transcode a video file if the only source I have handy is mkv. Plenty of great and free tools that make the process pretty darn easy. I watch a lot of movies/TV on my a500 - and get a great experience as long as I don't throw .mkv files at it.
WereCatf said:
Indeed. I tried transcoding a 1080p movie to 720p in constant quality mode, both in baseline and high profile modes, and while the quality was the same the high profile one used a lot less storage space. With storage space being rather scarse on mobile devices....
Well, we can only hope. But I don't know if the DSP is beefy enough to decode high profile or if it can be re-programmed to support it. Some DSPs are hardcoded and can't be used for anything other than what they already do when shipped. I don't know anything about Tegra 2 internals so I don't know what to expect.
Click to expand...
Click to collapse
My understanding is tegra2 will support h.264 high profile up to 720p @ 20mbps, but only baseline profile for 1080p.
With regard to the container format vs video format thing, I'm under the impression that container format support can be added by an app - so even if Acer never support mkv in the default player, if they do add hardware high profile h.264, then other apps should be able to play an mkv that contains high profile h.264 with hardware acceleration.
entropy.of.avarice said:
Hopefully 3.1 will improve our video performance - but I find it a very simple matter to just transcode a video file if the only source I have handy is mkv. Plenty of great and free tools that make the process pretty darn easy. I watch a lot of movies/TV on my a500 - and get a great experience as long as I don't throw .mkv files at it.
Click to expand...
Click to collapse
From playing around with PRIMEE, mkv containers are split appropriately and if the video format is supported hardware decoding works. The problem is that there is no support for AC3 therefore majority of compatible MKVs will play very well but have no sound.
Unfortunately once software encoding is enabled we are back to the same stuttery playback issues.
I personally don't believe it's Acers' job to add playback compatibility, I personally believe it should be built into Honeycomb as a baseline. Honeycomb is a tablet OS and as such should be expected to play popular video and audio. codecs. Saying that, if manufacturers did add additional codec support it would be a solid competitive edge.
Use mobo player.
Sent from my SAMSUNG-SGH-I897 using XDA Premium App
patterson12123 said:
Use mobo player.
Sent from my SAMSUNG-SGH-I897 using XDA Premium App
Click to expand...
Click to collapse
Have you read any of the thread, running moboplayer doesn't help, as I mentioned above as soon as you enable software decoding HD MKVs start to get choppy.
hellcat82 said:
From playing around with PRIMEE, mkv containers are split appropriately and if the video format is supported hardware decoding works. The problem is that there is no support for AC3 therefore majority of compatible MKVs will play very well but have no sound.
Unfortunately once software encoding is enabled we are back to the same stuttery playback issues.
I personally don't believe it's Acers' job to add playback compatibility, I personally believe it should be built into Honeycomb as a baseline. Honeycomb is a tablet OS and as such should be expected to play popular video and audio. codecs. Saying that, if manufacturers did add additional codec support it would be a solid competitive edge.
Click to expand...
Click to collapse
Ah, that's good to know, so with a baseline h.264 payload an MKV will play fine on stock?
I think it probably IS Acer's job to add codec support, frankly. At the end of the day we're talking about hardware acceleration, and Android provides the software framework for that to work, and it's up to the hardware vendor to make it work with their specific hardware.
Frankly I think Nvidia should be doing it though - it'd do wonders for Tegra 2 sales if they offered up code to support hardware acceleration for their platform on Android.
I guess you didn't really do your research on video playback on Honeycomb tablets, did you?
You can not blame Acer for poor HD playback when, frankly, this is a Google/nVidia issue. Currently no 10" Honeycomb tablet can playback high profile encoded HD vides--smoothly, if at all--without reconverting said movies.
There may or may not be a *real* fix in the future (quad core Tegras are right around the corner, so...), only time will tell.
OrionBG said:
The nVIDIA Tegra 2 250 is fully able to hardware decode:
H.264
VC-1 AP
MPEG2
MPEG-4
DivX 4/5
XviD HT
H.263
Theora
VP8
WMV
Sorenson Spark
Real Video
VP6
and encode:
H.264
MPEG4
H.263
VP8
And this is for 1080p both enc/dec
Why ACER can't (won't) support them is beyond me! Even my Single Core 7" Samsung Galaxy TAB can play all 1080p videos I have thrown at it!
And here is the full spec of the Tegra 2 250 Link!
Click to expand...
Click to collapse
edgie168 said:
I guess you didn't really do your research on video playback on Honeycomb tablets, did you?
You can not blame Acer for poor HD playback when, frankly, this is a Google/nVidia issue. Currently no 10" Honeycomb tablet can playback high profile encoded HD vides--smoothly, if at all--without reconverting said movies.
There may or may not be a *real* fix in the future (quad core Tegras are right around the corner, so...), only time will tell.
Click to expand...
Click to collapse
I bought an ACER device so I'll blame them! Problem here is that the Tegra 2 chip is capable to decode and encode the formats at 1080p without problems! The fact that Google still hasn't taken advantage of this feature doesn't mean that ACER couldn't!! To back my words here is an example:
Samsung! The Galaxy S and Galaxy TAB (7") they have much superior video codec support! I'm playing 1080p movies just perfectly on the Galaxy TAB. Samsung have invested in codec support and optimized it for the platform (both Hardware and Software) The Hummingbird CPU is Single Core! So why can't ACER do it? Maybe because they never did something like this before? Maybe because the have done only the hardware till now and they don't have the programmers that can pull this of? Ones the managers at ACER understand that selling thees devices without enhancing the base that Google provides won't cut it, I think we will have a very good device (not that it isn't good now but...)
OrionBG said:
I bought an ACER device so I'll blame them!
Click to expand...
Click to collapse
Guess you'll have to "blame" every single manufacturer out there who have a Honeycomb tablet out too, then.
OrionBG said:
tl;dr
Click to expand...
Click to collapse
So does the Samsung 10.1 play 1080p videos smoothly?
From what I've been reading.. no. Frankly, watching a 1080p on a 10" tablet is pointless (which is what I'm assuming you're crying about). If 720p isn't "good enough" on a 10" tablet, well, then, time to buy a 17" laptop.

Categories

Resources