XVid codec - Nexus One General

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!

Related

DivX for Android

Hello folks!
What a great new: http://bit.ly/qnyWC
Samsung Galaxy Spica i5700 will be the first Android Phone with DivX support. I'm sure it cuold be ported to other Android devices (with enought RAM).
have to say that this will be an interesting one to watch, id looked for a divx player for ages now and most people seemed to think that with the current sdk it wasnt possible.
There is a thread on the vlc forums discussing it all.
Wonder if it uses a hardware decoder to process it all?! - ive got no idea!
still looking forward to seeing it in action
I suppose a strong processor will be needed... I don't know.
Now to get some information about what "divx" actually is. Divx is an implementation of Mpeg4-ASP in the avi container. What the samsung devices has is the ability to play .avi/.divx(really the same thing) files. The G1 and other android phones can play the content of the file but have no real understanding of the container. Think of it this way. Divx is the box. Mpeg4-asp is the goodies insides. In the same way .MP4 is the box and mpeg4-asp again is the goodies inside. Currently most devices have no way to open that divx "box" to get to the goodies it can use inside. What would need to be done is to make some kind of libary using say NDK that opens the .avi/.divx and exposes the mpeg4-asp data to the media player.
What really bothers me is the general publics like of understanding of the difference between the Container, MKV, MP4, AVI, DIVX, OGG. And the codec, h.264(Mpeg4-AVC), divx/xvid(Mpeg4-ASP), theora, and vorbis
realjumy said:
I suppose a strong processor will be needed... I don't know.
Click to expand...
Click to collapse
i don't know about that because my old blackberry storm was able to play divx files out the box and that had the same spec as the G1.

No DivX Player for N1?

How come there are no divx player for this pretty device yet? I tried yxflash but it only played the first 20 secs.
hotr0d said:
How come there are no divx player for this pretty device yet? I tried yxflash but it only played the first 20 secs.
Click to expand...
Click to collapse
The paid version plays full video
huzz said:
The paid version plays full video
Click to expand...
Click to collapse
I know but how come it's not readily available from the box?
Umm this app requires you to give them your IMEI number, i'snt that a bad idea?
i found this post on twitter
"CorePlayer News: CP 2.0 for Android is CPU agnostic. ie; works on any ARM, x86, x64 or MIPS. Now lets try and make it work against 1.5 - 2.1"
so i hope something will happen very soon!
I bought yxplayer, only to have it be very jittery playing AVI files.... So I ended up using Doubletwist to convert and sync the videos to my N1 and this works flawlessly.
However, if Coreplayer comes to the N1, this will indeed be awesome. I was using it on my HD2 work phone, and its top notch, I'd pay double the Winmo version for it if it was to come out on Android!
There is talk of the Bravo playing divx out of the box, so hopefully it can be ported across.
I have an archos 5 internet tablet with android 1.6 and archos has their own hardware accelerated video player its ridicules it plays pretty much every video formats including 720p mkv and 720p youtube videos, and most audio codecs including ac3.
Wonder if someone here could figure a way to port it to the N1.
You can download the firmware/ROM free on their website
jump to 7:00 min in first clip
http://www.youtube.com/watch?v=uF1IIg-EjmQ
http://www.youtube.com/watch?v=ZiCsbXxEigw
also the archos has a 4.8 screen but runs at the 800x480 as the N1
and its specs are lower than the N1
http://www.archos.com/products/imt/archos_5it/specs.html?country=us&lang=en
so if it´s true that the upcoming htc bravo will support divx out of the box because of the included nexplayer, it should be portable to the n1 i guess...
source
http://www.mobiletechworld.com/2009...-support-to-be-enabled-by-nextreaming-player/
There is actually no such thing as "DivX".
What they are selling is actually H.263/MPEG4-ASP and using a BAD VALUE FOURCC.
As a result, ALL players can play so-called "DivX" files as long as you fix the fourcc and package it in a sensible container (i.e. 3gp or mp4). No transcoding is required unless the video uses a bitrate or resolution that is just too far out of the devices specifications to decode.
Repackaging is trivial -- you can just run the files through ffmpeg with -f option to set a sane fourcc and setting the audio and video codecs to "copy".

HTC Desire to receive DivX playback support in future update!

Wow! I guess that the Nexus One being a "Google" branded phone won't get this update:
http://www.mobiletechworld.com/2010...ceive-divx-playback-support-in-future-update/
Very interesting.
I'm sure with that release it will get ported to Nexus if it isn't rolled out by Google.
Good to hear.
If you need root to get that app (if/when it arrives) I would probably have to do it. Was going to keep my N1 stock, but if divx support arrives and it's good I just can't live with stock. Hopefully Coreplayer gets their release out before this so I don't have to do it
Converting files produces excellent results, but it takes way too much time to get good re-encodes (20ish minutes doing 2 passes on a 3.7GHz Quadcore).
The coreplayer looks very promising, but it's NOT free. This divx push would be.
every update can be ported to nexus one
We should be cool with a ported one
ive got 10 street cred that says nexus gets divx support before the bravo is released
JHaste said:
ive got 10 street cred that says nexus gets divx support before the bravo is released
Click to expand...
Click to collapse
HEeh I think that once the update is release it will be ported to the Nexus on in less than a few hours.
DivX, like XVid, is simply H263. This is ***ALREADY SUPPORTED***.
Your only stumbling block may be in demuxing the container and recognizing the FOURCC identifier, so if you are having these problems, just remux it!!! You don't even need to transcode!
I have seen this said too many times to count. If that is really the case, why has NO ONE released a divx player? xyflash doesn't count because it is totally broken and barely plays video.
yxflash actually works really well for me.
lbcoder said:
DivX, like XVid, is simply H263.
Click to expand...
Click to collapse
That is wrong.
Xvid and DivX are implementations of MPEG-4 Part 2 Advanced Simple Profile (ASP).
H263 is a little part of it : it's only one of the possible quantization matrices.
MPEG-4 Part 2 is much bigger and more powerfull than just H263.
So being able to decode H263 doesn't mean being able to decode Xvid or DivX.
SBS_ said:
Was going to keep my N1 stock, but if divx support arrives and it's good I just can't live with stock.
Click to expand...
Click to collapse
For divx?? i dont see a divx since h264 exist
nenco said:
For divx?? i dont see a divx since h264 exist
Click to expand...
Click to collapse
As I said, converting is a real PITA. Been a long time since I ripped my own DVDs to put it that way.
I'm a bit confused on this. What specific content uses this extension? DVDs...?
yostral said:
That is wrong.
Xvid and DivX are implementations of MPEG-4 Part 2 Advanced Simple Profile (ASP).
H263 is a little part of it : it's only one of the possible quantization matrices.
MPEG-4 Part 2 is much bigger and more powerfull than just H263.
So being able to decode H263 doesn't mean being able to decode Xvid or DivX.
Click to expand...
Click to collapse
And don't forget to mention the encoding options used for a computer vs. those for a mobile device. Typically the number of consecutive B-frames used can have a great impact upon compatibility for portable players (and even stand-alone DivX players).
There are a lot of variables that can keep people from playing their video collection from their PC on their phones (or other PMP's).

Why don't we have DivX playback yet?

Samsung I5700 Galaxy Spica is available, brings DivX to Android
16 November, 2009
http://www.gsmarena.com/samsung_i5700_galaxy_spica_is_available_brings_divx_to_android-news-1259.php
Click to expand...
Click to collapse
Released more than 3 months ago.
So... What's the hold up?
Yes i was wondering that too!!!
I mean when i copy an .avi movie to my phone, the only player that manages to play the file is the yxflash with awful perfomance...so what in the heck ?
There is 1GHz cpu behind this device!
Coreplayer for android is still in the works so we all just have to wait on that.
yxflash plays xvid without any problem in my nexus one
kiowa79 said:
yxflash plays xvid without any problem in my nexus one
Click to expand...
Click to collapse
From everything I've read and heard, your experiences are definitely in the very very small minority, as you can see clearly even from this very thread, just two posts above
F i L said:
Yes i was wondering that too!!!
I mean when i copy an .avi movie to my phone, the only player that manages to play the file is the yxflash with awful perfomance...so what in the heck ?
There is 1GHz cpu behind this device!
Click to expand...
Click to collapse
When you compile crap it is still crap. Even if you run it on a Snapdragon.
CorePlayer was very good on WinMo, so let's hope they bring it to Android soon.
Coreplayer FTW!
My understanding of the "no Divx" issue, has more to do with Android OS not supporting the codec.
The reason why Coreplayer isnt out yet is exactly this reason. Once theres a codec supporting HW accelleration, then Coreplayer will be released.
cheetah2k said:
Coreplayer FTW!
My understanding of the "no Divx" issue, has more to do with Android OS not supporting the codec.
The reason why Coreplayer isnt out yet is exactly this reason. Once theres a codec supporting HW accelleration, then Coreplayer will be released.
Click to expand...
Click to collapse
Yup, and if you go to coreplayers website, they have a blog/forum discussing this... in it, they point out that they have been working very closely with Google on improving the NDK and SDK so that it has native support. Following 2.0/1 being released, they announced it had the graphics and framework, and that they were hoping the next version would/will have the codecs... it also seems it is possible the NDK just needs to be updated, not even the entire OS itself, although that might be a bit dirty for such a huge increase in codec support.
Screw codecs, i want VLC player on my phone.
liam.lah said:
Screw codecs, i want VLC player on my phone.
Click to expand...
Click to collapse
VLC isnt even on Winmo...
jz9833 said:
Coreplayer for android is still in the works so we all just have to wait on that.
Click to expand...
Click to collapse
I would expect a very long wait if I were you. How long has coreplayer2 been in development now?
bradsh1 said:
I would expect a very long wait if I were you. How long has coreplayer2 been in development now?
Click to expand...
Click to collapse
android 1.5 wasnt capable of it due to a crappy SDK.
2.1 with the new developers tools should get the job done, but who knows
liam.lah said:
Screw codecs, i want VLC player on my phone.
Click to expand...
Click to collapse
VLC needs codecs too. Its developers just decided to include the codecs with the app instead of relying on the OS's codecs.
That is exactly what the CoreCodecs team is doing btw.
Very easy workaround
This a very quick and easy workaround to divx and xvid.
Download avidemux from here http://fixounet.free.fr/avidemux/download.html
Then re-code the file, but here's the secret - keep the video as it is "Copy". Change the audio to aac, and re-save it in an mpeg4 containter (m4v). The whole process take about 3 minutes for a full-length 800MB movie. The resulting file can be played smooth as silk in the stock player.
AMoosa said:
This a very quick and easy workaround to divx and xvid.
Download avidemux from here http://fixounet.free.fr/avidemux/download.html
Then re-code the file, but here's the secret - keep the video as it is "Copy". Change the audio to aac, and re-save it in an mpeg4 containter (m4v). The whole process take about 3 minutes for a full-length 800MB movie. The resulting file can be played smooth as silk in the stock player.
Click to expand...
Click to collapse
Tried this just now (previously tried with other tools in Jan). Was hoping....but it didnt work
src: XviD(BVOP/Packed Bitstream)/mp3, AVI
dest: (copy)/AAC(FAAC), MP4
The new file plays fine on my PC but only the audio plays on the n1(default movie player and act1 player)
britoso said:
Tried this just now (previously tried with other tools in Jan). Was hoping....but it didnt work
src: XviD(BVOP/Packed Bitstream)/mp3, AVI
dest: (copy)/AAC(FAAC), MP4
The new file plays fine on my PC but only the audio plays on the n1(default movie player and act1 player)
Click to expand...
Click to collapse
That's too bad.
But then again, even if it does work, the whole point is that it would be nice to play our videos WITHOUT having to re-encode like Spica-owners can do.
http://www.engadget.com/2010/03/17/samsung-galaxy-spica-grows-up-to-android-2-1/
The Spica is now 2.1.
What in the HELL is the hold up?? DivX should have been ported to ANY other Android device ages ago
In addition to changing the container, you also have to change the FOURCC. That is just a 4-character code identifying the video encoding. Your phone won't recognize any stupid crap like DIVX or XVID -- it will only recognize the CORRECT fourcc, which is H263
The hold up is that codecs are part of the framework, and almost all Android video players just use the frameworks video playback facilities. To add DIVX playback you'd need a rooted device.
Additionally, I'll bet the Spica's divx playback is limited to a max resolution/bitrate like Android's h264 support.
SilentMobius said:
To add DIVX playback you'd need a rooted device.
Click to expand...
Click to collapse
I think a lot of people who would want this have root already or (would be willing to) anyway. Plus, there are already plenty of apps on the Market that are root-only.

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.

Categories

Resources