[SOLVED] Choppy XVID Playback on HWA ICS/3.0 Kernel - Kindle Fire General

Posting this in the hopes someone else finds this helpful
I've been using the latest ICS releases with Hashcode's 3.0 Kernel to playback some xvid content using Hardware Acceleration -- however the issue with certain XVID's is that the framerate playback would drop to ~15FPS. Yes, I could switch to SW mode and it would play fine -- but I couldn't understand why using HWA would cause a slowdown given I knew the hardware could technically handle the playback.
So.. long story short, I used MEDIAINFO and took a closer look at the XVIDS -- compared those that would play fine vs those would not. Then, BINGO:
It turns out, whatever mechanism is being used for HWA decoding of XVIDS, does not work properly with mpeg4 that is 'Packed Bitstream'.
There are work arounds:
1 - Play back using software decoding (defeats the point of having HWA though)
2 - Download MPEG4Modifier which can quickly (literally takes < 1 min for 700+ MB file) removes 'Packed Bitstream'.
Good luck!

Have you tried BSPlayer? Several people have reported that it fixes this issue.

mlpmail said:
Have you tried BSPlayer? Several people have reported that it fixes this issue.
Click to expand...
Click to collapse
Yes, I used multiple software players and all had/have the same issue -- so it occurred to me that whatever the issue was, it was happening at the point where playback was "handed" off to the operating system.

Related

Do you find Youtube jerky?

In high quality it is jerky- sometimes smooth but will get jerky.
is there a fix for this?
what rom are you using? you should probably complain there
you can probably get better results by playing the video after its fully buffered the whole file
overall like you, im not too imressed with youtube and video playback
HQ Youtube videos sometimes play jerky on my desktop with a high bandwidth connection. i wouldn't blame the X1, I'd blame the speed you are getting through your connection. Plus, there is a limit to the bitrate video, X1 can play.
I assume we are talking about HTC's Youtube app and not the slower official Youtube one. If so...
YES! It is incredibly jerky on high quality.
This is NOT an X1 hardware problem, a bandwith problem, or a buffering problem. Youtube high quality works perfectly on the R1A stock ROM. Ever since R2 (which is what I'm running on my X1a), and I'm guessing on custom ROMS based off R2 or R3 it no longer plays properly. Pausing and allowing to buffer the X1 does NOT fix the promlem, it only alleviate the problem slightly.
This is a software issue. Hopefully someone with the knowhow fixes this for us all.
THE GRIZZ said:
what rom are you using? you should probably complain there
you can probably get better results by playing the video after its fully buffered the whole file
overall like you, im not too imressed with youtube and video playback
Click to expand...
Click to collapse
Grizz is right. It should play smooth (at least on mine) after fully buffered.
are you sure its a buffering issue? even when i have enough buffered it is still playing jerky.
from my memory recollection, youtube works fine on r1a and r3a rom.
youtube comes in many forms
think I have 3½ ways to play youtube
and I don't use the offical one
youtube from the panel
youtubeplay
youtube from inside opera
½ if the streaming media thingy that came
with the phone that I never had success with

Leo with 1.48 rom and core player

I have used core player flawlessy with 1.43 rom. I have tried various hi-res/hi-bitrate videos and it worked amazingly great.
Then I have upgraded to 1.48.
Now the same videos run really choppy.
I wonder what was changed...
On wmp videos still play good... but unfortunately it doesn't read divx/xvid s.
Anyone else experiencing the same thing?
Are you sure you use the same settings ? For me 'Raw frame buffer' seems to be the fastest.
Actually since I got 1.48 TCPMP doesn't run anymore. It crashes and tells me to send crash.txt to the developers, but I can't find crash.txt. Strange.
Actually since I got 1.48 TCPMP doesn't run anymore. It crashes and tells me to send crash.txt to the developers, but I can't find crash.txt. Strange.
Yes... same settings.
Anyway it seems related to the audio not the video.
Playing videos with no audio results in perfect playback.
I haven't changed anything. I wonder why this happends.
Hi,
I've experienced similar, although since I've today re-re-set my device today and installed from scratch etc (and with a now pucka purchased copy of Coreplayer v1.3.6) it seems to be ok.
Nothing scientific here: tried it on 1.43 and it seemed to be ok, pretty sure zero dropped frames (though could be wrong).. tried it on 1.48 and exactly the same xvids unwatchable.. now re-done it and again the same xvids = seem fine, stats show a few frames dropping but all in all it's perfectly watchable to the human eye.
Not sure if this helps you at all - perhaps you might get better response in one of the two other Coreplayer threads on here running? Just an idea - good luck!
Man, i got this same problem. I've tried everything with coreplayer, all different settings, plane mode. Still drops on playing films.
I even convereted to mp4 and it still drops. I know it's coreplayer problem because the htc player and windows media play the mp4's fine.
The only video i've seen it play without drops is a low quality 3gp file.
I even tried different versions of core player but still the same results. I'm on rom 1.48 so maybe this is the problem, but i doubt it. I'm updating to 1.66 soon so we will see......

Major flaw in the HTC HD2: 250ms Audio Delay

For the lazy reader:
Your HD2 probably suffers from an audio lag using the default media players. This is evident in the transformers movies and many other videos. You just may not have noticed it for a variety of reasons. There is no fix yet.
Coreplayer/TCPMP are not solutions, since they defeat the purpose of proper HW scaling and decoding for battery life/processor utilization. They also render the video improperly (bad scaling, colorspaces, etc), and Coreplayer doesn't even support AAC+ (HE-AAC) audio.
BACKSTORY
The first day I got my HD2 from TMOUS, I noticed that the included Transformers videos suffered from what appeared to be close to a 250ms audio delay. Sure enough, the problem was universal to all video files unless an artificial delay is introduced into the transcoding process. This means that every video file placed on the device will play back with the audio playing up to 250ms (about 1/4 second) late. This turned out to be a very common problem with the HTC HD2 and many devices seem to suffer from it (including some other HTC devices mentioned in this thread), particularly in video playback. This is a not a placebo effect and is very noticeable--in some videos/scenes more than others due to video pacing.
Before you post to say "Mine doesn't seem to do it," read the following and check again just in case--you'll be surprised. As I mention below, to some people with untrained eyes, even a 250ms delay (about 1/4 second) isn't very noticeable, and without careful attention, the mind can sometimes be tricked into thinking the delay somehow "isn't real." The proof? Testimony of many members (read this thread), and of course: Here's a video of me playing the new test clip below.
This problem is well known and is often referred to as a "video sync" or "lip sync" problem. All seem to describe this problem in which the audio ends up getting significantly delayed.
STATUS
A list summarizing the current understanding of the situation.
1. The audio lag is up to 250ms (100-250ms) for ANY a/v stream. Please understand that the duration of 250ms is 1/4 of a single second; in some slow scenes (or even slow speech), this problem is very difficult to detect. However, in any very fast scenes or speech, it should become strikingly and painfully apparent to even the most callous of observers.
2. It does appear that a minority of HD2 users insist they are completely unaffected by the problem, and they are very vocal about it. This does introduce the possibility that, in fact, contrary to all common sense, there may be differences in HD2 hardware that are quite elusive. Alternatively, there is some yet-undiscovered combination of settings, roms, and drivers in which this problem disappears. More likely in many cases is the possibility that the issue is simply difficult to spot in some people's chosen sample footage.
3. HTC has acknowledged the problem in some form but is doing nothing about it, either because of development cost (software issue) or hardware issues. Again, there is also the possibility that there are other factors tying the company's hands.
4. In theoretical terms, the class 2 SD card read speed is more than sufficient to maintain sustained data flow of, for instance, a 300kbps audio/video stream. However, the delay issue persists even with the smallest of encodes, and even when the files are placed in the phone's built-in memory.
5. The Snapdragon chipset itself has been repeatedly implicated as being the culprit behind the A/V delay. Other potential candidates include driver issues, ROM issues, and/or general software issues on the part of HTC.
6. It is absolutely not a codec issue. This is not speculation or conjecture, but certainty. There is an overwhelming amount of evidence to support this, including the use of different players and encoders that produce valid streams--which play back perfectly in sync on any other computer or device. If there is any software you are using that you claim "doesn't get lag," you either do not experience lag/delay issues on your device, or the software is introducing opposite audio delay to compensate, which isn't a solution at all. The latter is known to occur with some community-produced frontends specifically for the HD2 as a crude workaround for this issue. However, it is hardly necessary to stress that the dilemma of not only re-encoding every existing media file for the HD2, but also the obvious lunacy of producing invalid files specifically so this device can read them.
7. The issue is ROM-independent. Cooked and stocked ROMs produce identical results. However, some users report a slight decrease in delay when they disable processor scaling (i.e. lock the device near 1ghz).
WHAT YOU CAN DO
First, decisively determine whether or not your device has this problem, which a large number of HD2 units seem to have. To test this, play this video (or others mentioned in this thread) on your HD2 in Windows Media Player or the HTC Video Player. Also try the included Transformers movie if you have a TMOUS unit. If you have any other media players on the device, you may also play these clips in those players with default settings. Note that all of these files are properly encoded and exhibit no audio lag when played using a computer or other device (including the original HTC HD). Report your findings, along with your OS version, ROM version, radio version, and model of HD2 (i.e. TMOUS or "European"). Also indicate your purchase date or, if known, the date of manufacture.
Secondly, once you've confirmed you have the issue, contact HTC and issue a report/complaint (in other words, request that they fix the problem). To support your complaint, you may refer to some of the ticket numbers at the bottom of this post, which are relevant to this issue. Once your complaint is filed, post the complaint ticket number here. It is crucial that HTC understands the prevalence of this problem or they will not fix it.
Finally, propose a solution (optional). If you manage to change device settings or install software/drivers/tweaks to eliminate the issue device-wide without destroying the file's actual synchronization (i.e. it remains in sync on the computer, other devices, etc), please post what you did! Please, no touting random 3rd party "converters" unless you understand the approach used by these to escape this sync/lag issue.
Ticket numbers (HTC Support)
10GBCW02ENA001052
10GBCW12ENA000301
10USCW13ENA001524
10GBCW12ENA000421
10AUCW15ENA000117
10GBCW13ENA000299
10ZACW16ENA000014 (HTC's acknowledgment)
Further Reading
http://forum.xda-developers.com/showthread.php?t=612935
http://forum.xda-developers.com/showthread.php?t=617163
Another test video. This was the default test clip until I replaced it with my own above.
Sorry, George, its not everybody's doesn't do it. Seriously, no matter what you may think of my mind, etc. mine doesn't seem to do it.
I'm not trying to say the problem is non-existent, you might be right. I didn't investigate enough.
But to give my 2 cents; I am very familiar with video encoding, digital audio and video and everything related. On a PC or on a TV i have an eagles eye (ear) for spotting sync problems. But I haven't noticed a sync problem on my HD2 whatsoever after having watched several movies on it... and 250ms should be very, VERY noticeable. Just 20ms usually catches my attention right away.
barty22 said:
I'm not trying to say the problem is non-existent, you might be right. I didn't investigate enough.
But to give my 2 cents; I am very familiar with video encoding, digital audio and video and everything related. On a PC or on a TV i have an eagles eye (ear) for spotting sync problems. But I haven't noticed a sync problem on my HD2 whatsoever after having watched several movies on it... and 250ms should be very, VERY noticeable. Just 20ms usually catches my attention right away.
Click to expand...
Click to collapse
I'm also very familiar with encoding. I also notice stuttering problems in the video I play, in addition to sync issues (even baseline AVC with 1 ref, bitrate capped at 1000kbps, LC-AAC audio at 64kbps). This problem was even present on the included Transformers movies (the same movies play fine on the PC-- but with the exact same sync issue on coreplayer and TCPMP on the HD2).
Do you have the TMOUS device? What radio and ROM version are you using?
One other interesting thing I noticed. When the volume is turned down to 0, the choppiness present in some videos or situations dissappears, and when the audio is turned back up the choppiness comes back (tried in HTC Media Player).
This might relate directly to the sync issues I'm experiencing. What if there's a problem with the audio module or chipset rendering in general?
Change your thread title. its misleading. just because your device and someones friends first cousin sisters ex boyfriend suffer from this delay doesnt mean that ALL HD2s are affected. and to claim that all apps are affected? do you have all apps that are out there? kind of farfetched to say its a widespread occurence when this is the first time anyone has claimed such a "MAJOR FLAW!!!"
DialecticThought said:
Change your thread title. its misleading. just because your device and someones friends first cousin sisters ex boyfriend suffer from this delay doesnt mean that ALL HD2s are affected. and to claim that all apps are affected? do you have all apps that are out there? kind of farfetched to say its a widespread occurence when this is the first time anyone has claimed such a "MAJOR FLAW!!!"
Click to expand...
Click to collapse
Changed; happy yet? And I'm not so sure it's as "misleading" as you think. I've seen more with the issues than without. If it occurs on all the included videos and apps, I think it's safe enough to say it's a problem with all of them.
If you don't think your device has it, feel free to post to the contrary. It would help to specify what version of the device you're using.
Based on the responses I'm getting, the problem seems constrained to the new 1024 Leo units (the TMOUS devices). If you have such a device and don't have this problem, I (and many others here who complain about the sync--it's not just me) would love to know about it.
A little less arrogance, please.
no audio issues here either... TMOUS stock using CorePlayer in GDI
To OP
I have TMOUS hd2 with stock rom, since I read this thread, I watched Transformers couple times using built-in player and Core player, but I did not notice any audio lag.
You said 250ms audio lag, what programs you used to measure this number, how you measure audio lag in game? Karaoke game?
Thanks
The lag is measured qualitatively; I adjust the skew until I find that there is no more lip sync issues on the video files (basically I change the delay until the audio matches exactly with what's being shown). Then I observe that this audio delay is the same in all videos (including the stock). Then I notice that games are a bit delayed; since the 250ms appears to hold for all of the videos I've tried (the audio delay was set by an mp4 container flag), I simply assumed that the lag that is observable in games is the same; it appears to be the same magnitude, at least.
I noticed it in the Transformer movie as well. (This is probably the first time I played it and paid attention.)
TCPMP can't handle the Transformers movies. I can't notice any lag while playing another video file I had on my sd card. The quality is much lower, compared to Transformers.
curiousGeorge said:
I simply assumed that the lag that is observable in games is the same;
Click to expand...
Click to collapse
You know what they say about assumption ay? lol
See second post on in this page.
TCPMP solved my problems (Audio sync in videos, I don't have any delay at all in apps etc though).
http://forum.xda-developers.com/showthread.php?t=617423&page=11
Don't know if that will help you out for your videos?
aceo07 said:
TCPMP can't handle the Transformers movies.
Click to expand...
Click to collapse
TCPMP runs 2.5 - 3 hour action films fine for me.
I've experienced no audio sync issues in the couple included games I've played with (all but Prince of Persia) nor any in the videos I've played (both Transformers and a couple other mp4's I've encoded with CloneDVDMobile). I'm not a big fan of games on these though, but the video capabilities have been THOROUGHLY tested on my unit. Oh, and all of this has been played from the supplied 16GB card and two 8GB cards (both made by Kingston) which I already had. I've played the videos using both the included "Video Player" and TCPMP (took a little work to get MPEG2s to play decently though).
Stock T-Mo US --NOT HardSPL or flashed yet.
OS: 5.2.21889.5.0.87
Manila ver: 2.5.20121412.1
ROM ver: 2.10.531.1 (82076) WWE
ROM date: 02/22/10
Radio ver: 2.08.50.08_2
Protocol ver: 15.34.50.07U
I have reformatted the memory card and only replaced what I still wanted that was originally on it. I have not hard reset at all.
The only app I have installed which might affect performance is BsB Tweaks, and the only settings I've adjusted are: Power Saving - OFF; Hidden Camera Modes - ON; Camera 8MP - ON; and Wifi N - ON (I was curious about what this does, but it's not something I need.. I'm turning it off now, now that I'm thinking on it).
To those of you experiencing these issues: Are you only seeing this problem with games? Or is it affecting movies too?
HTC_Junglist said:
TCPMP runs 2.5 - 3 hour action films fine for me.
Click to expand...
Click to collapse
I did not say that TCPMP couldn't handle long films. It was very specific to the Transformer movies. More specifically, I meant the exact Transformer movie files that came with the US T-Mobile HD2. TCPMP was not able to play those Transformer movie files smoothly.
However I do notice the audio lag in the default movie player it uses to the Transformers movies. The video is smooth, but the audio is lagged a little.
I am experiencing the exact delay that is being reported.
All you have to do is actually watch a few minutes of Transformers. Its really annoying.
aceo07 said:
I did not say that TCPMP couldn't handle long films. It was very specific to the Transformer movies. More specifically, I meant the exact Transformer movie files that came with the US T-Mobile HD2. TCPMP was not able to play those Transformer movie files smoothly.
However I do notice the audio lag in the default movie player it uses to the Transformers movies. The video is smooth, but the audio is lagged a little.
Click to expand...
Click to collapse
No you just said "The Transformers movies", I have 2 transformer movies & TCPMP plays them both fine. They did not come with the handset like yours though, but they are both high quality of 2.5gb each (Don't know how big the issued ones are, I'm in UK here so we didn't get them).
So maybe it's an issue with the way they were encoded too as well as a hardware issue.
i don't have such an issue with mine... games and movies play fine... maybe you have slower ear sensors or faster vision lol .... and I am curious why do you advertise this in your signature?????? if you were writing in a sports forum and had some disability, would you write that down in your signature as well??
i have this same problem. I loaded my favorite alert sounds from my previous phone. They all get a half second to a second chopped off. So do my ring tones. I have not seen a fix for this on any board yet. You are not crazy.
DialecticThought said:
Change your thread title. its misleading. just because your device and someones friends first cousin sisters ex boyfriend suffer from this delay doesnt mean that ALL HD2s are affected. and to claim that all apps are affected? do you have all apps that are out there? kind of farfetched to say its a widespread occurence when this is the first time anyone has claimed such a "MAJOR FLAW!!!"
Click to expand...
Click to collapse
It's not actually the first time, there was a thread running for a few days not so long ago about the same issue. And as far as I can ascertain, most, if not all HD2's are plagued with this issue.
I have a TmoUS HD2 and I haven't noticed any delay in sound.

[Q] Hardware video decoding failure?

Hi all,
I am the proud owner of a 6 day old Nexus 10. I mention the age of the tablet as i am still within my RMA and wonder if the tablet has developed a fault.
In a nutshell it seems my Hardware supported playback of mp4 has failed. I was running the stress test here:
http://forum.xda-developers.com/showthread.php?t=1995176
"Clips are muxed to MP4 container for native (hardware-accelerated) playback. You shouldn't need to use a 3rd-party player except for the 10-bit clip."
Last night I ran the 1080_demo.mp4 and 1440_demo.mp4 files and for both used both stock and BS Player. BS Player reported that it was running in HW mode as expected. Playback was smooth with a slight judder when the image changed significantly - this tended to be around 7-8 seconds. Other users did not report this judder but I was reasonably happy at this point.
My tablet locked up (I can't be sure but I think it was during video playback). After restarting my tablet Bs Player reported there was an error in the file and could not play it in HW mode and so switched to SW decoding. This problem has persisted with the error in BS player that it has failed to open the file so will attempt to open in software mode
So far i have taken the following steps;
1) reinstalled Bs player - no change.
2) redownloaded the 1080_demo.mp4 file - no change
3) used my wifes account (a clean and fresh account) on the tablet, installed BS Player and redownloaded the 1080_demo.mp4 file. _still software playback.
4) Attempted playback of video footage shoot on the tablet itself. This again failed to play in HW and the tablet switched to SW
The stock player works, but has the same frame drop as BS Player suggesting it has switched to SW decoding. i have ensured no background running apps.
So to summerise
Has my tablet become defective? HW decoding did work until last night when i was playing these videos. I believe the videos stopped working after the tablet locked up and I had to restart by holding down the power button for quite awhile.
Everything else on the tablet seems to be ok, the play store menus opening up are a little more jumpy it seems.
Any thoughts?
Thanks
Graham

Streaming Video Stutter - N9005 - 4.4.2

wondered if anyone else suffered from this - not sure if its an "Android" or Note 3 issue
basically if watching streamed video - in particular Netflix and Youtube - I can't get smooth playback
the phone seems to drop frames (noticeable by either causing judder or a sudden slow down/speed up as it catches up)
this is via 3G or via Wifi - makes no difference
same content on IPAD is silky smooth
I've tried forcing 2D acceleration in dev settings to no avail
it seems like the hardware or OS can't keep up with the video at all times
local content plays back completely smoothly, be it podcasts via Pocketcasts or local video files via MX Player - perfectly smooth - even at 1080p
any ideas please ?
Buckster76 said:
wondered if anyone else suffered from this - not sure if its an "Android" or Note 3 issue
basically if watching streamed video - in particular Netflix and Youtube - I can't get smooth playback
the phone seems to drop frames (noticeable by either causing judder or a sudden slow down/speed up as it catches up)
this is via 3G or via Wifi - makes no difference
same content on IPAD is silky smooth
I've tried forcing 2D acceleration in dev settings to no avail
it seems like the hardware or OS can't keep up with the video at all times
local content plays back completely smoothly, be it podcasts via Pocketcasts or local video files via MX Player - perfectly smooth - even at 1080p
any ideas please ?
Click to expand...
Click to collapse
I would love to say that my n9005 at 4.3 is stuttering as well. I don't know why.
eakkypoo said:
I would love to say that my n9005 at 4.3 is stuttering as well. I don't know why.
Click to expand...
Click to collapse
I noticed something interesting this week -although maybe Placebo (pretty sure not though)
I've always had laggy/stuttering Netflix vs smooth on IOS
yet smooth local 1080p content - perfect really
I was trying Sky Go earlier in week and was lovely and smooth in fact I'd noted how smooth the video playback seemed vs Netflix, tonight I noticed stutter on Sky Go was beginning to think if I was running something in background or something - but then figured the difference - tonight was streamed via Wifi, earlier in week was same/similar content but downloaded first
so is there something odd with chipset that it doesn't like Wifi + Video decoding at same time ?
Buckster76 said:
I noticed something interesting this week -although maybe Placebo (pretty sure not though)
I've always had laggy/stuttering Netflix vs smooth on IOS
yet smooth local 1080p content - perfect really
I was trying Sky Go earlier in week and was lovely and smooth in fact I'd noted how smooth the video playback seemed vs Netflix, tonight I noticed stutter on Sky Go was beginning to think if I was running something in background or something - but then figured the difference - tonight was streamed via Wifi, earlier in week was same/similar content but downloaded first
so is there something odd with chipset that it doesn't like Wifi + Video decoding at same time ?
Click to expand...
Click to collapse
MX Player (and others) might use hardware decoding, Netflix and the sorts might not.
You could go to Dev-settings and check on "Show CPU usage", so you can see whats happening. (But you'ld have to google what it all means as i dont know.
But what i do know is that the procces list shouldnt be too long, like 20 items in my list when idling (for 5 minutes) after usage.

Resources