General Comments
I've created this thread to centralize video discussions, tips, issues, etc.
Please limit this only to those running CM7. Something that works or doesn't work in rooted stock or Froyo may have no correlation to CM7 at present. CM7 is using different codecs, different DSP kernel driver, different media backend, and different userspace ALSA.
To start things off I have attached a handbrake profile that has worked well for me.
I will update this post as more specifics are found.
A few things to consider: ALSA
Our ALSA implementation is picky about the buffer size. Other devices that use ALSA in the same fashion have had to reduce their buffer as well. This may be due to a limitation of what can fit in the DMA buffer on the McBSP. Because the ALSA buffer scales with the audio sample rate, I recommend using 44.1K instead of 48K when transcoding videos. This is contrary to every handbrake profile I've seen folks post on XDA for the nook.
CPU Governor
Some people have had better luck with the Conservative CPU governor rather than Ondemand or Interactive.
Bitrate
I have found it best to limit the bitrate to something under 1000kbps.
Resolution
The resolution should always be limited to 854x480. This is the maximum limit for the open source codecs. We do not have a license for 720P codecs yet. Perhaps B&N will get a license for their Froyo update.
dalingrin said:
I recommend using 44.1K instead of 48K when transcoding videos.
Click to expand...
Click to collapse
I concur....I started doing this last night, coupled with a DRC of "3" and sound is better and louder.
360Razir said:
I concur....I started doing this last night, coupled with a DRC of "3" and sound is better and louder.
Click to expand...
Click to collapse
I agree about DRC. I just updated my profile with dynamic range compression of 2.
Your preset causes an unhandled exemption for me when I load or use it in handbrake. If I try to play what it outputs, it doesn't play in the stock player.
I have to turn off Weighted P-Frames to get the nook to play in hardware (stock player.)
EDIT: Attached my preset. It has all the typical preset stuff, plus 44.1/128 audio like dal recommended, and it doesn't throw a fit when I import or select it in handbrake.
chisleu said:
Your preset causes an unhandled exemption for me when I load or use it in handbrake. If I try to play what it outputs, it doesn't play in the stock player.
I have to turn off Weighted P-Frames to get the nook to play in hardware (stock player.)
Click to expand...
Click to collapse
Weighted P-frames are off in my profile.
What version of HandBrake are you using? I have rev3736.
The other thing I have to test is my Droid X. Most of the Handbrake (HB) encoded movies I have were done for my DX last year. Like the NC, I set the movies to 854x480 for my DX and so that makes it nice to be able to test between the two devices.
My DX is now running (leaked) Gingerbread and playing the same videos between the DX and the NC, the DX is so incredibly smooth. No lag. No crackling. No slow-downs. No audio popping. Just buttery smooth. Now, I understand the screen is smaller, but again, same video resolution of the video. Not sure how the "guts" of the DX are vs. that of the NC, though?
However, what I can say, is that back in January when I first got my NC and went with AutoNooter, I was able to take my existing HB-encoded movies that I had lying around for my DX and play them perfectly on rooted stock. Since CM7, out of the 25 or so movies I have for the DX, only 7 of them play on the NC (using Act 1). The NC is picky, indeed.
The quest continues....
dalingrin said:
Weighted P-frames are off in my profile.
What version of HandBrake are you using? I have rev3736.
Click to expand...
Click to collapse
Yours and the other guy's won't load without throwing an exemption which is where my confusion came from in the other thread.
Mine says 3728... it is 0.9.5 and says 2011010300 and says it is the latest when I try to update... going to redownload...
You are on the linux version aren't you?
Here are the videos with their specs that do currently work with Act 1 on my NC:
NOTE: most of my videos that work are in .m4v format. I had removed that setting in HB, but when I did, the video didn't play. I am sure it was probably something else getting in the way, but .m4v just seems solid for me right now, so sticking with that. To each his own.
As you can see from the attachment, the size, bitrate, dimensions, and frame rate are all over the map. Each plays well in Act 1 with Zoom set to "Aspect Full".
I will post my exact HB settings when I have something I have settled on and I am taking the suggestions from this thread, so thanks for that.
chisleu said:
... it is 0.9.5 and says 2011010300 and says it is the latest when I try to update...
Click to expand...
Click to collapse
Same here....Win7/32-bit
I am attaching my settings for HB that work well for me with regards to full-length movies. Has excellent audio/video sync, with no lag.
Highlights include:
[ Original Presets were taken from Regular > High Profile and then just tweaked accordingly ]
● Picture: Anamorphic Loose
● Video Filters: Off
● Video: H.264, Same as source, 2-Pass Encoding (Turbo 1st), Avg Bitrate (kbps) 2000
● Audio: Source (default), AAC (faac), Stereo, 44.1, 160, DRC = 3.8
● Advanced: B-frames = 0, CABAC & 8x8 & Weighted P-Frames = unchecked
Again, I am using Act 1 with "Zoom" set to Aspect Full.
Please let me know what you think if you dare to try.
EDIT: Video source is a regular DVD, widescreen, ripped into Handbrake directly
The dalingrin presets work for me with the Handbrake svn3907 on Ubuntu. My resulting conversion of my Letterman test video plays fine.
@dalingrin:
Any ideas as to why disabling WiFi would stop the madness of the lagging/stuttering in the video? Was it something my system was doing in the background or one of my widgets fetching data?
Is this just the case for my NC or can this be replicated? Any tests I can run for you to see if it is something you can help with? Thoughts? Thanks.
~ Razir
360Razir said:
Any ideas as to why disabling WiFi would stop the madness of the lagging/stuttering in the video? Was it something my system was doing in the background or one of my widgets fetching data?
Click to expand...
Click to collapse
That's always been my guess. Things never quite settle as long as they have access to the network.
Is this just the case for my NC or can this be replicated? Any tests I can run for you to see if it is something you can help with? Thoughts? Thanks.
Click to expand...
Click to collapse
Nope. Same here. And, it's not just video... it makes Pandora rather unpleasant. Luckily, my primary use case for video is on a plane where network access is unlikely or expensive.
Have you tried using the Conservative governor? It helps my situation.
Some rules for this thread to consider
Let me extend this discussion and propose a few rules for this thread:
1. The source video should be made clear. If you start with poorly encoded video you're obviously going to output something similarly crappy. Provide a link to the file, or upload it yourself and provide a download link. It should be legal, i.e. if you ripped it from your blu-ray, or if you torrented it from somebody else who ripped it from a blu-ray, then it doesn't belong on this thread. My source video will be a 1080p trailer from The Eagle, downloaded (legally) from here: http://www.hd-trailers.net/movie/the-eagle/
2. The encoder and settings should be made clear. I never used Handbrake before, but this morning I downloaded Handbrake 0.9.5 and installed it on my Win7 64-bit desktop. I'm using the preset for "iPhone & iPod Touch". This defaults to H.264 encoding and m4v container. I then adjusted either resolution or average video bit rate but everything else I also left at default, since I mostly don't know what they mean anyway.
3. The player should be made clear. I used Titanium Backup to uninstall Music because of a prior FC issue, then sideloaded music.apk that I pulled from cm_encore_full-37.zip, thus I'm back in business with the stock Video player and no longer using Act 1.
4. Optional: upload your transcoded file and provide a link to it. I've made 2 clips of the eagle trailer which can be downloaded here:
Eagle trailer - 854x352 - 800K: http://dl.dropbox.com/u/22573583/Eagle_854x352_800K.m4v
Eagle trailer - 576x240 - 800K: http://dl.dropbox.com/u/22573583/Eagle_576x240_800K.m4v
The short of it is that both files play flawlessly on my NC running CM7 n37 with dalingrin OC kernel 040411, overclocked 300/1100 interactive. Here are some notable observations:
- The 480p-ish 854x352 resolution limited by our open-source license plays flawlessly for me up to a video bit rate of 1300K, at which point one or two random split-second audio stutters occur through the clip. You can download my 800K encoded video at this resolution. I've gone up to 3000K at 854x352 resolution with still very smooth playback. I've also been able to play an 800K clip resized to 1024x600, the native NC resolution, flawlessly.
- The 576x240 resolution for me is the sweet spot on the Nook. Text resolution is inferior to 854x352, but the playback is perfect and file size is more accommodating. Stutter-free at 800K (download my Handbrake encoded file if you want), and actually stutter free all the way up to 3000K. What's so incredible is that the high-speed scrub (put finger in middle of screen and slide right or left) at this resolution is buttery-smooth.
- Adjusting the CPU speed up or down and moving around governor setting didn't do anything good or back for video playback. Video playback was just as good at 800MHz as 1100MHz CPU speed.
I'm not an expert on video codecs and encoding, by any means, but I've been around HD-DSLR video and non-linear editing ever since Vince Laforet busted out with Reverie nearly 3 years ago.
I'll stand by my opinion, expressed previously on the kernel thread, that CM7 and dalingrin OC kernel in its current iteration (nightly 37 and 040411) absolutely rocks for properly encoded video.
360Razir said:
@dalingrin:
Any ideas as to why disabling WiFi would stop the madness of the lagging/stuttering in the video? Was it something my system was doing in the background or one of my widgets fetching data?
Is this just the case for my NC or can this be replicated? Any tests I can run for you to see if it is something you can help with? Thoughts? Thanks.
~ Razir
Click to expand...
Click to collapse
it doesnt stop it for me. no wifi. no bt. still stutters randomly on good files.
sinanju said:
Have you tried using the Conservative governor? It helps my situation.
Click to expand...
Click to collapse
Yes, I saw your post about that from the OC Kernel thread and so that is what I tried last night. It seemed to work at first, but then this morning it was also choppy using that governor. So, being on Interactive with WiFi off works.
My Droid X has many more widgets running and network access (both 3G and WiFi) and there is no hiccups or slowdowns whatsoever playing the same video. I know not apples-to-apples, but the quest is to get my NC to that kind of stability.
MedLine said:
Eagle trailer - 854x352 - 800K
Eagle trailer - 576x240 - 800K
The short of it is that both files play flawlessly on my NC running CM7 n37 with dalingrin OC kernel 040411, overclocked 300/1100 interactive.
Click to expand...
Click to collapse
Both of your videos are still choppy for me with WiFi enabled....meaning, something is fetching data in the background (Pulse, Palmary Weather, Plume, Engadget, or Google News, or even email polling) is messing with my video playback. Just wish the video was "shielded" from such things.
When WiFi disabled, all is good with your videos.
Which app you guys using to play videos? I'm using Rockplayer right now and getting audio sync issue. I had better luck with Mobo Player.
OK:
Using Sony's HD Experiment because it is short and high action.
http://www.demo-world.eu/trailers/redirect-high-definition.php?file=hd_other_sony_hd_experiment.rar
Encoding using the iphone and ipod touch preset.
I set 576x240 resolution and I can play completely smoothly with wifi on. File size is 4.44megs w/ RF: 25 (iirc)
I set 854x480 resolution and RF 30 it locks on whatever frame you start playing (black screen, etc.) Won't play. I set 854x480 and 800kbps avg kbps and it is also black screen. If I hit home and then go back and let it go, the video will change, but it doesn't seem like it will catch up. Definately broken.
I downloaded that 1080p trailer you linked.
start handbrake, load 1080p trailer, select "iphone and ipod touch" preset, select 854 width (auto height 368), changed to average kbps and set 800. My file size isn't exactly yours, but is very very close.
854x368 plays very well and looks fantastic, but it does have those pops/skips.
Disable wifi:
still get rare/random skips with my 854 file.
still get rare/random skips with your 854 file.
I turned "Disable Fullscreen" off on a hunch it was play a role in this:
My 854 file still skips from time to time.
My 576 file still skips from time to time, although more rarely. only once in 2 plays.
Your 854 file still skips from time to time.
Your 576 file still skips from time to time, maybe more rarely? Hard to quantify.
I encoded the eagle trailer with my 854 width, RF 25 "high quality" preset.
It is smaller than 800kbps (13.1M vs 18M)
It skips too.
tablo said:
Which app you guys using to play videos? I'm using Rockplayer right now and getting audio sync issue. I had better luck with Mobo Player.
Click to expand...
Click to collapse
We are mostly using the stock player because it forces hardware accel.
I prefer VitalPlayer to all. If you are having sync issues it is probably playing in software mode. I should say, VitalPlayer has never given me any sync issues at all while playing in software. Wish I had discovered that before DSP was working. haha
I have only had my nook color 2 weeks and i have noticed streaming video on most sites is very choppy or jummpy for lack of better terms. Is there something i could.change to fix this. I am running stock software and am also wondering if CM7 on a sd card would do the same thing or is it better?
Thanks
CM7 definitely has better video performance. Try it.
Choppy jumpy streaming video espn3 espn360 codec flv?
Choppy jumpy streaming video, poor video quality; espn3 espn360 codec flv?
I gave out refurbs with cm7 for x-=mas and they are all choppy when viewing online video espn 3 espn360...Here is the fix!
EDIT: 1.download nook tweaks off market by dalgrin...
2. Download free cpu govenor(forget actual name")
3. In nook tweaks apply these settings in this post(also shown below) http://forum.xda-developers.com/show...104039&page=18
Make sure interactive X governor is on, here are my settings(some user in eariler post, not me)
300- step 1 is 0.8125v
600- step 2 is 1.0v
800- step 3 is 1.1875v
1100- step 4 is 1.25v
1200- step 5 is 1.2875 check the restore on boot box (someone said 1.3 worked better for them)
Voltage settings never stick even if I press reboot, instuructions are arond pg 19 of that link I refrenced above if you want to alter a linux like command to fix or you could flash cm7 nightly 253(I was running stable cm 7.1), now settings stick!
For some reason JIT and keep home app in memory are two check boxes that I had success with in Cyanogen settings...Only two i have checked, still playing around with this as I am trying to see what works best with my infrastructure mode on my samsung galaxy s epic.
EDIT: Using dolfin browser and is working better than the stock browser! too! set your screen timeout for 30min if you wish to watch trouble free! Happy new year!
EDIT: Have not traced the problem yet but something keeps messing with my wifi connection to my sph-700 samsung epic in infrastructure mode... fix is to turn off wifi and backout to home one screen at a time check and uncheck keep home app and jit and change ondemand to acive x or conservative, then again backout one screen at a time... re-enable wifi and fixed for a spell...this randomly started happening and I hope its my wifi(which it prolly is)
hi, i just changed my galaxy s2 for this lg p990 because i needed some money. i love this phone but current software lacks of full hardware control. for instance on sgs 2 tegrak apps and kernels provide a full customization in frequency and voltages (cpu and gpu). if you can find a lucky phone like mine was you can undervolt gpu from 1,1 to 0,75 volt at full frequency with a great battery life improvement. i love small but powerful apps like
-voodoo control
-tegrak apps
-chainfire 3d
and i paid for all of them! so i will buy also a nice app to control gpu and avp of my tegra 2 lg p990! i don t care about need of reboot or aomething, i will just watch my full hp movies on hdmi without lag or frame skip!
Hello!
What you want is available - to a certain extent.
To UV you need a OC/UV kernel to do this and you could use either one of kernels like i.e. spica(Horse Power kernel for stock rom), dr4go(fps kernel for stock), SetiroN(ironknL for CM7) or vodonka (KANG kernel for CM7).
Then use i.e. Pimp my CPU to customise under-volt over-clock...whatever...
But if it is possible to undervolt GPU independently in Tegra 2 chips - I don't know. You could ask any of the kernel devs above!?!?
Chainfire 3D is available - if you bought it just install it - it gives some performance but MSAA customisation isn't supported by the Tegra 2 - if you are looking for this...
Voodoo sound control is available and still under development - right know their are only some basic features - but it works and brings some dynamic range improvement. IMHO it is a noticeable improvement.
BTW: Watching video with full HD up to 1080p is possible out of the box - no need to OC or to OC GPU for that.
hi, thank you for your answer! i flashed cm7 and now i don't cry anymore for my ex sgs2, but a friend of mine gave me an hd file for test and it was 1080p with low bit rate ( 2,5gb for 2 hour lenght) but impossible to watch properly on my hd tv. and i was very disappointed when the encoding speed was almost the same switching beetween hw and sw decode ( on mx player). i don t think tegra 2 sucks as it seems. i manage clock speeds on my mobile with pimpmycpu but it is not very reliable and still don t have any control on gpu and avp clock. so what i think that really lacks on p990 sw
environment is a gpu/avp control. i home cm9 will bring any improvement on this side
isd88 said:
hi, thank you for your answer! i flashed cm7 and now i don't cry anymore for my ex sgs2, but a friend of mine gave me an hd file for test and it was 1080p with low bit rate ( 2,5gb for 2 hour lenght) but impossible to watch properly on my hd tv. and i was very disappointed when the encoding speed was almost the same switching beetween hw and sw decode ( on mx player). i don t think tegra 2 sucks as it seems. i manage clock speeds on my mobile with pimpmycpu but it is not very reliable and still don t have any control on gpu and avp clock. so what i think that really lacks on p990 sw
environment is a gpu/avp control. i home cm9 will bring any improvement on this side
Click to expand...
Click to collapse
The last thing i heard was that CM7 and HMDI 1080p and 720p playback didn't work 100%. on stock, that should work..
yes, it played well on stock gingerbread....not like sgs2 but something lile. dual boot on lg dual (italian name of lg 2x) could be a good idea also
Hello!
The Question is if the used codec that was used for encoding the video is supported by the hardware.
BTW: I use moboplayer, but my TV only supports 720p with this phone (don't know why - while it supports 1080p with my laptop) and I used 720p sources from OnlineTVRecorder.com for testing - this works without glitches...
Hey guys, y'know the gta 3 special edition or whatever it's called off the market, has anyone tried it on the hd2? Before I download it.. is it slow, or does it run okay?
Regards,
Sent from my NexusHD2 using xda premium
Hi gta 3 runs good if you follow those settings:
my configuration:
last dorimanx rom high end with zram and swap enabled
kernel dorimanx 6.4
[email protected] 1612 Mhz
gta3 1.3
video settings:
draw distance 31%
resolution 35%
visual effects low
dynamic shadows off
frame limiter off
you have to delete those files from the audio folder to make the game smoother (those are the radio station,slow down the cpu)
HEAD.nfx
CLASS.nfx
KJAH.nfx
RISE.nfx
LIPS.nfx
GAME.nfx
MSX.nfx
FLASH.nfx
CHAT.nfx
I play this game sometimes with no problems,if you have slowdowns try to set a low resolution anddraw distance...Consider the fact that dorimanx rom+ his last kernel is extremely tweaked with cpu @ 1,6Ghz.Before I changed the rom to dorimanx one,I was on thyphoon cyanogenmod and I could get only 5/8 fps
Thanks Axel85 for the info. Now I hope I can enjoy Gta3 on my phone.
Installed it yesterday and it's very very slow, even after removing the radio files.
How do I change the video settings? There's no option ingame within the settings.
Regards
Sent from my HTC HD2 using xda premium
you can find video settings onlysince version 1.3 of the game
Sorry to hijack. The Play Market wont let me install this on my HD2. Isn't there something I need to edit to get the Market to think my device is compatible?
I have a nook color running phiremod 7.2
I have noticed a lag while playing games like Angry Birds. Angry bird space is unplayable it lags so much.
Is there a setting I should change? CPU speed? Or do I need to change ROMS?
Thanks
Ryan
I would start by updating to cyanogenmod 7.2 stable. How old is the ROM you are using right now? Sometimes its best to do a data and a cache wipe once and awhile just in case you corrupted your kernel base through updates. You will need to do this if you want to go from CM7 to CM9.
You can do this with the options in ROM manager along with clockworkmod. A nandroid backup first is recommended.
I use the built in overclocking with these cyanogenmod builds, I got mine overclocked to 1200 mhz. Any higher and you start running into problems with stability. I use the "on demand' governor within those options.
I have had no lag whatsoever on my nook playing all of the angrybirds apps. Might want to add a speed script you can find here after you update. http://forum.xda-developers.com/showthread.php?t=1508481
The only time I notice any lag is through the Opera browser I am using when trying to watch HD video on youtube, I just chalk that up to the processor bogging down.
Test the ram if this is an issue, by killing with task manager all that is running, before you start the game.
It's not right to use task manager like this, but at least you could check if this is the trouble maker.
Unleashed from my Revolutionized Desire HD
I checked the ram ant it was not the issue. Iended up installing cm7.2 and everything is working much faster and smoother
Thanks for the help!
Sent from my NookColor using xda app-developers app