[Q] can we transplant hardware decode library from other device ? - Nexus 7 (2013) Q&A

can we transplant hardware decode library from other device ? so that we can hardware decoding more video to save the battery life when watching film?

Related

Encoding MP4 for Desire - Best settings

Hello,
Who know the Desire MP4 decoding capabilities ?
What profile/bandwidth/settings should I use for best video quality ?
Thanks

Software decoding in xbmc for firetv stick.

I was just wondering where everyone left off on the issue of running software decoding in xbmc eliminating the blur issue but causing stuttering during playback. Did everyone simply just stick with the hardware decoding as its reliable and just decide to put up with the slightly reduced picture quality on the stick?
Not sure about the difference, but I have not been too pleased with the video output on xbmc. I have it going through my denon receiver, calibrated TV, and the Amazon movies look much better than the xbmc output.
I have a ps3 and a hdi dune d1 player, the same networked video looks much better on them, also connected by the denon.
Test patterns show black levels are ok, but the contrast won't dial in. Also the video is not as clean, for lack of other words.
Sure would love to have better video output, only had my stick a few days.
JS_racer said:
Not sure about the difference, but I have not been too pleased with the video output on xbmc. I have it going through my denon receiver, calibrated TV, and the Amazon movies look much better than the xbmc output.
I have a ps3 and a hdi dune d1 player, the same networked video looks much better on them, also connected by the denon.
Test patterns show black levels are ok, but the contrast won't dial in. Also the video is not as clean, for lack of other words.
Sure would love to have better video output, only had my stick a few days.
Click to expand...
Click to collapse
Have you tried going to acceleration in settings and switching to software decoding? I notice a noticeable difference in picture quality but there is stuttering during parts of heavy motion.
OK, my findings using test pattern and an easy 720p mkv with dts
I must use hardware acceleration, and also must use libstagefright. If that is off, my video stutters badly, unwatchable.
OK now for test patterns, my contrast is spot on with lib. Disabled, patterns look good. Enabled it washes my contrast.
Looks like I can't win this one.
JS_racer said:
OK, my findings using test pattern and an easy 720p mkv with dts
I must use hardware acceleration, and also must use libstagefright. If that is off, my video stutters badly, unwatchable.
OK now for test patterns, my contrast is spot on with lib. Disabled, patterns look good. Enabled it washes my contrast.
Looks like I can't win this one.
Click to expand...
Click to collapse
All versions of gotham show issues with mediacodec hw acceleration on certain qualcom SOC's. Helix Beta's are better. For now libstagefright is the recommended hw acceleration method.
Turning acceleration off will solve some of your issues with mediacodec but will rely on the cpu's to decode video and will only be able to play up to about 720 (unless they are full BR rips) without issue. Libstagefight is a pretty low level tap into the gpu hw acceleration, and on some cpu's often performs better then mediacodec which is a newer more generic api provided by Android isteself to access the gpu features.
It is true that often software decoders (ie ffmpg) can produce better picture quality as often hardware methods are colorspace lmited, and take shortcuts to produce speed. Unfortunately even on high level htpc's hardware acceleration is still needed to playback high bitrate rips and newer codecs in real-time.
Thanks, I'll play around with helix for a bit to see the results.
Strange, both hardware acceleration settings mute the contrast, testing in helix.
That's the rc1, no change from what I have now in quick tests.
Might have to give up on picture quality in xbmc, dang.

[Solved] h.265 decoding with hardware

Hi all,
I seems to have a little problem when it comes to reading h.265 encoded files. I'm on MX Player and while the software decoder works (but with stutters on the image, except for very low size files) the hardware decoding option gives me a black image at all times. I don't understand why i can't seem to decode h.265 since qualcomm affirms that snapdragon is able to decode it.
Any idea where this is coming from ?
I'm on stock LP rom with the last update.
Thank you
djona12
Try a different player - BS Player for example (or VLC Player).
Tried a whole bunch of player but none is working unfortunatly
All failed too decode smoothly with software (either video lagging and getting out of sync with audio or partialy grey image). Our 801 isn't powerful enough to decode h.265 with some software...
What i don't get is why no player seems to be able to use hardware support to decode the video since qualcomm said that we got h.265 support Could it be rom related ?
djona12 said:
.... Could it be rom related ?
Click to expand...
Click to collapse
Well, I'm on OmniROM and have the exact same behaviour...
AngryHapposai said:
Well, I'm on OmniROM and have the exact same behaviour...
Click to expand...
Click to collapse
That doesn't sound good
I also tried to change the screen resolution (to FHD and HD) while playing a video but same issue, i get the sound but no image in hardware mode...
I'm starting to think that h.265 support from the snapdragon 801 isn't real :/
Update!
I'm actually running a test drive on the SlimSaber LP ROM, and I'm totally able to smoothly play HEVC /h265 files using MX Player and the HW decoder.... :victory:
However, it complains that the HW+ decoder isn't supported.
That's some good news
Gonna give it a try, thanks for the update
About, HW+ decoder, i can't get it to work on any of my devices... Doesn't really matter when we already have HW i guess^^
EDIT : Little update here ! Tried SlimSaber to see about the hw decoding support (thax to AngryHapposai), worked fine, then went back to Color OS and hw decodinf was still supported ! Problem was the kernel on stock wasn't able to give us hw but the kernel from slimsaber (Linux 3.4.x) was... Restore with TWRP didn't reset kernel and after 3 days of use everything seems to work like a charm, hardware decoding included !

moto g4 plus [email protected] ?

Hi guys, moto g4 plus using Snapdragon 617 Processor, this processor support 1080P 60fps record but g4 plus have to feature 1080p 30fps. Will be 1080p 60fps mod ? because as g4 plus same power too phones recording [email protected], for example samsung galaxy S5
https://www.qualcomm.com/products/snapdragon/processors/617
I think the camera sensor is not compatible
But it's just my thinking
mgedik said:
Hi guys, moto g4 plus using Snapdragon 617 Processor, this processor support 1080P 60fps record but g4 plus have to feature 1080p 30fps. Will be 1080p 60fps mod ? because as g4 plus same power too phones recording [email protected], for example samsung galaxy S5
https://www.qualcomm.com/products/snapdragon/processors/617
Click to expand...
Click to collapse
There are 3 things you have to look at when deciding what resolution & speed a phone records a video...
1. Camera sensor
2. The ISP
3. The software implementation
1. Camera sensor - Omnivison OV16860
A quick look at the OmniVision site tells me that the G4 Plus sensor "supports high-quality slow motion video capture with full field of view (FOV). The sensor can capture 16-megapixel images and video at 45 fps, ultra-high resolution 4K2K video at 60 fps, and 1080p high definition (HD) video at 120 fps via high speed D-PHY and C-PHY interfaces"
What does this mean? It means that yes, our phone CAN record 1080p60 videos, & actually a lot more....
2. ISP - Snapdragon 617
It is very well known that this is a decent mid-tier SoC and has good capabilities.... But how much exactly...?
Multiple google searches led me to this -
"14.9GB/s b/w GPU Adreno 405 Adreno 405 "Next-gen" Adreno "Next-gen" Adreno Encode/
Decode 1080p H.264
1080p30 HEVC, decode 1080p H.264
1080p60 HEVC, decode 2160p30, 1080p120
H.264 & HEVC 2160p30, 1080p120
H.264 & HEVC Camera/ISP 21MP Dual ISP"
Which means yes, our phone can decode 1080p60 videos (seems to be HEVC only)
3. Software implementation -
Now this is where your answer is... Motorola has to develop (or fork) device drivers & libraries for the particular sensor & ISP. Now, on a mid-range phone for the masses, why would you spend so many development hours on trying to get 1080p60, only for it to eat away its high-range market's share. The G4 Plus is already more than capable to disrupt high range phones (ex - Moto Z Play), and if you add extra features, it'll either be costlier or everybody will buy ONLY this phone.
Long story short, Motorola hasn't included the SW implementation and/or device libs required for 1080p60. If you want it, you have to develop it yourself from Motorola's device libs & kernel.... Parts of which are closed source... Which means you can't.
Only solution is to reverse engineer/ get open source device libs for the sensor, make your changes, integrate it back into the kernel (& the system) & HOPE it works.
Similar discussion was held in the Moto G2 forums, that device was capable of 1080p recording, whereas it only had 720p in SW... Similar conclusion in the end.
Very interesting.
aditya.upadhyaya said:
There are 3 things you have to look at when deciding what resolution & speed a phone records a video...
1. Camera sensor
2. The ISP
3. The software implementation
Click to expand...
Click to collapse
Thank you, that was a great summary. Much appreciated.
try oxygen for android "ABS TWEAKS" BEST APP EVER! and you'll get your 60fps, you'll need busybox, and terminal on your phone, and Int. n your phone. theres a thread on xda about it. good luck champs!!!
p.s. i take no credit for ABS TWEAKS.
Dr.who? said:
try oxygen for android "ABS TWEAKS" BEST APP EVER! and you'll get your 60fps, you'll need busybox, and terminal on your phone, and Int. n your phone. theres a thread on xda about it. good luck champs!!!
p.s. i take no credit for ABS TWEAKS.
Click to expand...
Click to collapse
Even if that abs tweak work ,It doesn't support nougat.
I think ABS TWEAK is for 60 fps playback and not camera mod. IMHO
aditya.upadhyaya said:
Which means yes, our phone can decode 1080p60 videos (seems to be HEVC only)
Click to expand...
Click to collapse
That is DECODING - processing video files to send data to the LCD screen.
You need to look at the ENCODING process - making data files from data from the image sensor. That is a different hardware block on the chip. All I could find is that SD617 supports: "Up to 1080p video capture @60 FPS".
Datasheet doesn't say more, it's even more confusing because it says [email protected]: https://www.qualcomm.com/media/documents/files/snapdragon-617-processor-product-brief.pdf
Also, remember that, if you save on the external SD card, it's speed might not be enough to keep up with writing the video file. Some cheap cards have horrible writing performance.
It requires driver and HALs

Mi box s 4k and on all Xiaomi devices I get video pixelation issue?

Broken H.264 (avc) codec bug!
Problems:
0. Artifacts and ghosting
1. There is a shadow left from the last image onto a black scene that comes after.
2. There is a trailing edge of every lighted scene around the picture.
3. The problem is wide, not only related to single app.
I did notice on Xiaomi devices pixelation on videos.
I have mi box s 4k and chromecast ultra while there is no pixelation for the same video for chromecast ultra I'm getting pixelation issue for mi box s 4k and redmi note 8 pro.
This issue I did notice it for local videos and youtube app (I didn't notice for netflix).
So I did try some methods my self. switching to sw decoding on mx player got pixelation fixed but this isn't precise solution cuz I did read somewhere that hdr is gone for sw decoding and youtube app problem stays.
For Xiaomi devices I did find a video on YouTube. so on mine redmi note 8 pro I did as the video told.
the video did told me to turn on hw overlays so I did turn it on and I got pixelation fixed!!!
youtube .com/watch?v=MGxh2vCmR1E
But for mi box When I turn on disable hw overlays I'm getting no screen I'm only getting audio what could be the cause of this could someone help me to turn this on?
Or is there any other solution how I can fix the pixelation?
Update:
İn mi box s 4k There is no pixelation in apps like netflix!!! but vlc, mx player and chromecast built-in playing local video file is the issue getting pixelation in hw decoder!
imgur. com/a/OO2R8VI
Example:
Hw decoder: imgur. com/US8Xzor
Sw decoder: imgur. com/fUzwKvw
You can see white line in hw decoder.
İn sw decoder the white lines pixelation is fixed.
Update 2:
Someone told me this is a known broken H.264 codec bug! (avc bug, h.264 and x264) I think that person is right! I did encode my video to H.265 and the pixelation was gone!!!
Does someone When did this problem start?
İt is aggravating I hope Xiaomi will fix this problem soon.

Categories

Resources