Related
Hello,
I'm having some problems about playing 720p videos from HTC Desire Z. It plays some 720p videos smoothly which are recorded by itself (also there is a fps problem in there, some are about 19fps).
I wonder which {container, codec} we should use to play 720p videos smooth. I tried with several media players like Vplayer, Moboplayer, Rockplayer and Android's default media player.
I tried some files. Here their properties:
Container: MKV
Video Codec: H264
Audio Codec: AC3
Overall Bitrate: ~4.5Mbps
Length: 71min
Size: 2.2GB
This was a concert video.
--
Container: MKV
Video Codec: H264
Audio Codec: AC3
Overall Bitrate: ~4.5Mbps
Length: 40min
Size: 1.1GB
This was a tv show.
Rockplayer can play this videos but not smooth enough. It freezes for 5-10 milliseconds at every 1-2 seconds.
Using stock 2.3.3 ROM and stock SD Card.
Phone can play 480p videos smoothly but I think it can play 720p videos since it can record 720p videos.
Thanks in advance.
The DZ isn't actually powerful enough to play 720p videos from an external source. I can barely play 480p AVI smoothly. MKV and MP4 are a total lost cause for me. Haven't tried after I installed Virtuous 2.0 and had it OC'd to 1.5GHz though.
ArmedandDangerous said:
The DZ isn't actually powerful enough to play 720p videos from an external source. I can barely play 480p AVI smoothly. MKV and MP4 are a total lost cause for me. Haven't tried after I installed Virtuous 2.0 and had it OC'd to 1.5GHz though.
Click to expand...
Click to collapse
As far as I know, DZ has hardware decoding for 720p videos. So it can play 720p videos and DZ records with 8mbps and encodes with h264 and its container is 3gp. Only difference is container. Maybe changing container will fix this but I tried with avi, mkv. Maybe I should try with 3gp container.
Anyone tried?
Try dice player
Sent from my HTC Desire S using XDA Premium App
tcchuin said:
Try dice player
Sent from my HTC Desire S using XDA Premium App
Click to expand...
Click to collapse
Tried with its trial version but it says "sorry, this video can not be played" when i try to play video which I mentioned at my first post (tv show one) and also another video which is a mp4 video.
DicePlayer can not play any video in the phone
I use Rock Player Lite and it can play MP4 vids properly. Granted, I just OC'd my DZ to 1.5GHz, and an MP4 file encoded in h.264 with an average bitrate of 1.5kbps plays flawlessly. At stock speeds the audio goes out of sync and artefacts get introduced. Haven't tried MKV files since I OC'd yet though. Software decoding in RPL.
Hardware decode basically is the same as the default media player, software decoding takes up more CPU resources, but is able to play more formats and containers.
I haven't found any way to reliably open mkv container on desire z. MX video player by far does the best job (and yes, I've used other players like rockplayer, dice player, etc) but it still plays 720p mkv h264 slightly choppy. 720p h264 mp4 plays fine with software and hardware decoder, while 720 avi xvid can play smoothly on a small overclock.
I try to avoid 720 anyway because the difference between 720 and 480 on a 3.7inch screen is barely visible to me lol
Exactly lol. As long as it can play 480 on the DZ it's more than fine by me. 720p on a 480x800 screen... ~_~
MX Video Player.. Never heard of it. Gonna search and try that out. How does it compare to Rock Player?
i really liked rockplayer for a long time until i found out mx player had software codecs tweaked for ARMv7. Check it out on the market, its free anyway lol
I tried mx player but still there is the same problem.
I also tried to change the container to mp4. PC plays well but when I try to play on phone, video is smooth but there is no sound and audio codec is ac3. Maybe the problem is here.
I tried with rockplayer using software decoding, there is sound but laggy video.
Try MX with SW. Works fine on any container and format so far for me.
ArmedandDangerous said:
Try MX with SW. Works fine on any container and format so far for me.
Click to expand...
Click to collapse
Tried in 3 available mode in MX Player but still laggy video
The trick is to use video in the correct settings for the hardware decoder. If you do that then it won't matter if it's in mkv or mp4.
For the video portion, use baseline profile h.264 with the maximum bitrate (VBV) capped at 8mbps up to 720p
For audio, use AAC-LC in stereo.
Sent from my HTC Vision
ChronoReverse said:
The trick is to use video in the correct settings for the hardware decoder. If you do that then it won't matter if it's in mkv or mp4.
For the video portion, use baseline profile h.264 with the maximum bitrate (VBV) capped at 8mbps up to 720p
For audio, use AAC-LC in stereo.
Sent from my HTC Vision
Click to expand...
Click to collapse
I think so. But there is a problem when playing MKV files. There is problem after I changed container to mp4, though.
But the audio codecs of videos which I tried are not AAC. Maybe this causes the problem.
I don't know, how hard can it be to play videos which have AAC audios.
Use Handbrake to encode and it'll be easy to specify AAC for audio. You can use the iphone profile for encoding.
Hi again,
I've solved my problem. I use dice player which plays 720p mkv videos (even with ac3 audio codec).
I wrote here dice player can't play any video in the phone. That was a hardware decoding problem, I think. When I try to play an unsupported video format with hardware decoding, hardware decoding crashes and unable to play videos as it should be.
So, after that if I restart the phone hardware decoding comes back and plays videos perfectly.
Is this a common issue? If it is not should I do a factory reset to my phone?
To be honest, with our default 800*480 screen, we would not be able to take advantage of 720p quality as 720p is 1280*720 (Unless we stream it to a HDTV or Monitor). Re-encoding it to 800*450 is wiser to conserve file size as well
found this recommended settings at afterdawn for Handbrake or MEGUI. Tried it with rockplayer hardware decoding and it is smooth i used mp4 format
full link is here http://www.afterdawn.com/guides/archive/converting_video_for_the_htc_desire_z.cfm
Code:
Recommended Video Options
Format H.264 (MPEG-4 AVC)
Profile Baseline
Level 3
Average Bitrate 800kbps - 1800kbps
Max Resolution 800×480 @ 24fps
800×480 @ 25fps
800×432 @ 30fps
768×448 @ 30fps
720×480 @ 30fps
Maximum GOP Length 250
Minimum GOP Length 25
B-frames None
CABAC Off
Other Recommended Settings
Audio Format AAC
Audio Channels 2
Audio Bitrate 128kbps - 256kbps
Container (File Type) MP4*
Subtitle Format Timed Text or SRT **
although the Epic 4G Touch could play most videos, some of my videos (mp4,avi,divx) could not be played(it has sound but no picture) and the way to solve it is to download a video player on market on use software decoding which eats up cpu usage which in turn eats up battery life
according to THIS, it should be able to play almost all format there is available but that isn't always the case.
so basically what i am looking at is
*hardware accelerated Video/Audio Codec
*convert the video to 480 x 800 (or close depending on the aspect ratio of movie)
*high bitrate (not too high that it would drain the battery life or the file would become too big and the quality is more like a placebo)
*Video/Audio Converter software that does the above list
i am thinking about h.264 but do not know what presets the E4GT supports
I use iSkysoft on my PC to convert to mp4 and have over 1200 movies. After the conversion all the android players work on all the movies. I also use Tversity to stream 800x480 over 4G and 320x240 over 3G. If streaming keep the bit rate of the conversion at 900kbs or lower. Otherwise, you will get buffering problems. $20 per year for a dynamic DNS to stream Tversity over any mobile browser on android from your PC. 320x240 is a little grainy. However, works very well with no buffering issues for in motion in your car. Tethering to a larger tablet also works well for in motion in the car.
This is for those who have issues in playing Youtube HD files and 720p files on Defy+ and to find the best tweaked settings (CPU Freq, Voltage, memory, settings etc) that enables us to do so.
I have found some interesting facts.
1) Youtube HD (1080) plays without any lag when media.stagefright is enabled.
2) When it is disabled, HD shows black screen
3) All mkv files play on the Defy+. I tried 720p, and it plays sometimes (not always...sometimes it lags and audio/video has sync issues)
Just fyi, HD enabled in YouTube isn't 1080, it is probably 480p as that is the native res of our phone (854x480).
I have found that for Other HD files like MKV and MP4, they play fine as long as the bitrate is low. Higer bitrates and weird things start to happen, like video lagging or not playing at all.
Your facts aren't valid for all roms.
E.g. on CM10 you can't run 720p yet.
So, I've been trying to play 720p Anime lately but the videos are really choppy and the audio ends up desyncing because of the lag. I've tried Dice player and MX player.
The video is h264, with AAC audio in a MKV format. About 300 MB for a 23 minute episode.
(If you're interested in the anime, it's sword art online 720p. Watch it! It's a great anime)
Anyways. I never had this problem with shows/movies that are 720p + h264. I'm wondering if anyone else experiences this when playing anime.
I've demuxed the container into a mp4 container, but the video still lags. =( so it's not MKV's fault.
XBMC sideloaded and trying to play a 10 GB MKV (1080p + DTS) which stutters very much.
Same MKV reduced to 5 minutes playback, but same codecs, resolution, audio. Only difference is the size: 200MB. This one plays very smooth.
USB 3.0 plugged into my router and FT connected directly to my router.
Anyone who knows what the problem is?
(Netflix 1080p does play smooth, though.)
Mitsjke said:
XBMC sideloaded and trying to play a 10 GB MKV (1080p + DTS) which stutters very much.
Same MKV reduced to 5 minutes playback, but same codecs, resolution, audio. Only difference is the size: 200MB. This one plays very smooth.
USB 3.0 plugged into my router and FT connected directly to my router.
Anyone who knows what the problem is?
(Netflix 1080p does play smooth, though.)
Click to expand...
Click to collapse
on a fireTV? did you disable mediacodec and enable libstagefright?
are you pulling up the codec info overlay and making sure its not buffering the video at all?
nhumber said:
on a fireTV? did you disable mediacodec and enable libstagefright?
are you pulling up the codec info overlay and making sure its not buffering the video at all?
Click to expand...
Click to collapse
All I can see is this (very high CPU usage):
D(Audio: dts (DTS) 48000 Hz, 5.1 (side), fttp, 1536 kb/s)
p (aq: 99%, Kb/s: 1481.05, att:0.0dB)
D(Video: h264 (High), yuv420p, 1920x1080 [SAR 1:1, DAR 24:13])
P(fr23.976, vq99%, dc:ff-h264, Mb/s: 13.42, drop: 30, skip: 7, pc: none)
c( ad: 0.000, a/v-0.021, di- dpcu: 0%, acpu: 0%, vcpu: 0%, cache: 75.95MB, 100%)
W (fps: 24.04fps CPU0: 100%, CPU1: 94%, CPU2: 92%, CPU3: 91%)
-------------------------
Hardware decoding enabled. Libstagefrigh on, mediacodec off.
Mitsjke said:
All I can see is this (very high CPU usage):
D(Audio: dts (DTS) 48000 Hz, 5.1 (side), fttp, 1536 kb/s)
p (aq: 99%, Kb/s: 1481.05, att:0.0dB)
D(Video: h264 (High), yuv420p, 1920x1080 [SAR 1:1, DAR 24:13])
P(fr23.976, vq99%, dc:ff-h264, Mb/s: 13.42, drop: 30, skip: 7, pc: none)
c( ad: 0.000, a/v-0.021, di- dpcu: 0%, acpu: 0%, vcpu: 0%, cache: 75.95MB, 100%)
W (fps: 24.04fps CPU0: 100%, CPU1: 94%, CPU2: 92%, CPU3: 91%)
-------------------------
Hardware decoding enabled. Libstagefrigh on, mediacodec off.
Click to expand...
Click to collapse
You could try this: http://kodi.wiki/view/HOW-TO:Modify_the_video_cache.
Mitsjke said:
XBMC sideloaded and trying to play a 10 GB MKV (1080p + DTS) which stutters very much.
Same MKV reduced to 5 minutes playback, but same codecs, resolution, audio. Only difference is the size: 200MB. This one plays very smooth.
USB 3.0 plugged into my router and FT connected directly to my router.
Anyone who knows what the problem is?
(Netflix 1080p does play smooth, though.)
Click to expand...
Click to collapse
Is the video trying to play with XBMC (Kodi's) internal player? Is the video streaming via a url, a connected network or from external/internal storage?
Try (if possible) playing the video from a 3rd party app (i.e. BS Player, MX Player etc) & see if it still stutters.
I've had similar issues when trying to stream via url but if I download the video & play it in MX Player, there's no stutter.
EL TEJANO said:
Is the video trying to play with XBMC (Kodi's) internal player? Is the video streaming via a url, a connected network or from external/internal storage?
Try (if possible) playing the video from a 3rd party app (i.e. BS Player, MX Player etc) & see if it still stutters.
I've had similar issues when trying to stream via url but if I download the video & play it in MX Player, there's no stutter.
Click to expand...
Click to collapse
Mine stuttered like this and the hardware acceleration fix above did the trick. Now the issue I have is with buffering. I'm on the Fire TV Stick, so I can't connect it directly. Videos often have to buffer several times. I have an older HTPC streaming wirelessly right next to my Fire TV Stick without the issue so I know it's not the router.
<advancedsettings>
<network>
<buffermode>1</buffermode>
<cachemembuffersize>157286400</cachemembuffersize>
<readbufferfactor>20</readbufferfactor>
</network>
</advancedsettings>
Worked for me! For one mystery reason it activated my hardware decoding
Before hardware decoding was activated but playback forced software decoding. Weird, but thnx!