Media_profile.xml modifications - Eee Pad Transformer General

I was looking at the media_profile.xml file from the Xoom forums (posted and edited by bracken21, Thanks for the work) and noticed that the file was different than the Asus TF one. Instead of trying that file on my TF I modified the TF profile.
I have experienced no problems so far with this modified file but try at your own risk, replacing the file with the original should resolve any issues you might experiences, but no promises. I highly recommend backing up your own media_profile.xml instead of using my backed up original.
A few questions for anyone that knows.
For the camera app what is 'high' quality? I assume it is the 720p profile do to the outcome I had. I ask because in the media profile there is no youtube video quality but is on the app. other video quality names aren't listed in the app either.
What do the video decoder and audio decoder caps do exactly? I turned them off only because they where turned off on the Xoom, and I wanted to see if it prevented video from playing or caused glitch's (I saw no issues in the video I played)
I set the camera to the rear and "high" for quality then recorded a video before the changes and one after then transferred them to my desktop. The details in properties shows both at 37 seconds long and a frame rate of 1280x720. the data rate for the 3gp was 7478kbps while the mp4 was 20350kbps. Total bitrate increased from 7574kbps to 20446kbps. Frame rate dropped from 28fps to 24fps. file size increased to 93MB from 33.7MB. I noticed a small improvement in quality at full screen on my monitor, it was a slow video so I couldn't tell if it had more or less tearing.
more info: You will need to reboot to see any chances. setting any setting the camera can't use will result in the camera app force closing. I tried setting the frame rate to 40 in one profile and the camera app crashed every time I tried to access the rear camera (that profile was already selected so was auto loading). placing the xml with the correct framerate back into the /system/etc folder and rebooting fixed the issue.
Since it is a busy day today for me I just did some quick modifications. If anyone else wants to make a modified file with better changes (specially someone who knows audio/video better) it would probably be appreciated by all.
Placing this file where it needs to go requires root and a file browser that can mount the system folder in read/write.
The XML file should be placed in /system/etc. the full path is /system/etc/media_profiles.xml
changed:
All 3gp encoding to mp4 encoding
Rear Camera 720p quality bitrate from 8,000,000 to 25,000,000
Front Camera high quality bitrate from 4,000,000 to 8,000,000
Changed both "imageencoding quality from 90/80/70/20,000,000 to 100/99/95/250,000,000
Turned off videodecodercap and audiodecodercap
Again thank you to bracken21 for doing the Xoom's profile, which provided a base to go off of.

Related

Baseline 720p h.264 still not smooth

I know that Tegra 2 cannot handle high profile h.264 video playback, so I re encoded some of my videos using baseline settings and video is still slightly choppy whenever the camera is moving.
Anybody have any idea what the deal is?
The link below is a screenshot of mediainfo with one of the video files in question.
http://imgur.com/cdbYa
You might try dropping your video bit rate down to 2200. Been encoding using HandBrake with that and they've been coming out pretty smooth.
I have been using HandBrake with the bitrate at 4000 and the videos are smooth
I use constant quality.
But that doesn't seem to be the issue, I just encoded a sample at the bitrate you suggested and it still had slight playback problems.
Here are the h.264 encoding settings I'm using in handbrake.
This is what I got in mine
And here are the samples I made. One is at 2200 kbps the other is at a constant quality setting of 20. If someone could try them on their Xooms that would be awesome. Maybe I have a defective device.
Sorry to make you use Rapidshare, I couldn't get the attachment uploader to work. It would just hang after uploading the files.
http://rapidshare.com/files/451985226/Toy_Story_samples.zip
Hmmm. I started off with the iPod Legacy preset, then modified the picture size. Looking at my advanced settings, I see it has "Reference Frames" set to 1, "Partition Type" set to "All", and the "Psychovisual Rate Distortion" all the way to the left.
Not sure what any of that really does, but you might give it a try.
I might try encoding something with a higher bitrate just to see how it turns out.
I'm gonna try it, I'll let you know.
Dr.Preston said:
And here are the samples I made. One is at 2200 kbps the other is at a constant quality setting of 20. If someone could try them on their Xooms that would be awesome. Maybe I have a defective device.
Sorry to make you use Rapidshare, I couldn't get the attachment uploader to work. It would just hang after uploading the files.
http://rapidshare.com/files/451985226/Toy_Story_samples.zip
Click to expand...
Click to collapse
It is slightly choppy in the beginning. Here is the .plist file I'm using. I got it from someone but I don't remember. All the videos that I have encode look great.
Grrr, even using the settings in that plist I'm still getting the slightly choppy playback. It's only noticeable when the camera is moving.
If you still have to convert, why not just convert it to mpeg4 (.mp4) with 3,000 kbits rate? It looks blu-ray quality for me. I used either the program Ultra MKV Converter or Xilisoft Video Converter Ultimate.
I can playback main profile vids just fine.. level 3.1 mp4, aac audio. I can post up a batch file that I made.. it just requires dgnvindex.. I drop a mkv file and it re-encodes in about 14 minutes.. granted, I do have a 3.9 GHz amd hexacore.
The important thing is the cmd line for the 64-bit x264 enc binary I use.. I can post a short test video for those that would like to try it out... robot chicken ep anyone?
If you could post the script as well as an example video that would be fantastic.
I'm beginning to think maybe my Xoom is defective as the settings I'm using should play smooth on just about anything.
Here is a video I encoded this morning: http://www.megaupload.com/?d=MIX4IUTB
I used these settings in handbrake:
--quality 21 --encoder x264 --x264opts no-8x8dct:bframes=0:no-cabac:cqm=flat:weightp=0 --drc 2.0 --markers --format mp4 --maxWidth 1280
media player classic reports this as having a bitrate of 4000. It runs great on my xoom. There is no lag at all or frame drops using the stock movie player.
I have a few videos that have hit 8000kbps, and they run great too. I'm thinking about trying to get it up to 10k to see if the xoom can handle it or not.
I played back your video on my xoom. It looks like it's playing smooth, but there aren't very many pans or high motion camera movements in it, which is where I have been seeing most of the choppiness.
I remoted to my machine at home and got handbrake transcoding another video using your settings. Should be done by the time I get home.
I recently encoded a handfull of movies for my Xoom, one being the new Tron Legacy movie.
I re-encoded a 1080p mkv file
these are the settings I used
Picture Settings:
Anamorphic: strict
Filters:
Decomb - default
Detelecine - default
Target size: 3900 (since the xoom can't handle files larger than 4gb)
Audio tab: remove all but one channel since you don't need multiple streams
Advanced:
Referenced Frames - Default (3)
Maximum B-Frames - 0
CABAC Entropy Coding: unchecked
8x8 transform: unchecked
weighted p-frames: unchecked
option string should be: 8x8dct=0:bframes=0:cabac=0:weightp=0
screenshots are...
http://img.exstatica.net/images/screenutu.png
http://img.exstatica.net/images/screenlsl.png
exported preset
http://www.exstatica.net/HB_Export.plist
If you use the exported hb settings make sure you still modify the picture settings as its not stored in the preset.
So I've been messing with this same issue since launch day and I had a revelation two days ago. I got out my iPad and played the same file but using the iPad preset in Handbrake for the encode, just like I have for the last year. The iPad had the same exact, imperfect, slight hitching in the playback of slow camera pans! I realized that because the picture on the XOOM is bigger, and I'm scrutinizing it like crazy with my face up against the screen, I'm noticing it more than I ever had before.
Conclusion: the iPad has almost the same exact video playback characteristics as the XOOM and it's probably not getting any better. I think a lot of it simply has to do with encoders compression capabilities and deficiencies, but I could be wrong.
Still no better with those exact encoding settings.
My device must be defective.
Shhhhhhhhhhhhhhhh you will awake the trolls
CJNYC said:
So I've been messing with this same issue since launch day and I had a revelation two days ago. I got out my iPad and played the same file but using the iPad preset in Handbrake for the encode, just like I have for the last year. The iPad had the same exact, imperfect, slight hitching in the playback of slow camera pans! I realized that because the picture on the XOOM is bigger, and I'm scrutinizing it like crazy with my face up against the screen, I'm noticing it more than I ever had before.
Conclusion: the iPad has almost the same exact video playback characteristics as the XOOM and it's probably not getting any better. I think a lot of it simply has to do with encoders compression capabilities and deficiencies, but I could be wrong.
Click to expand...
Click to collapse
Handbrake preset export
Here is my current handbrake setup for encoding any HD movies for my Xoom.
I have encoded 10 full length movies and they all play fine... including ones with lots of light changes and fast action scenes. I notice no tearing or glitches.
Attached is the .plist preset. just rename it from xoom.plist.txt to xoom.plist and go to handbrake preset menu and import it.

Video playback (vegacomb)

I'm wanting to put a few videos on for my sons, I cannot get the audio codec right, so far I've tried ac3 and aac in mp4 container with avc video, the video plays back fine but never plays audio. Tried a couple of different players (dice player just force closes) but they part without audio too. Any one know what audio codec the default video player accepts?
I can stream from my pc using plex and it works fine but would rather play from local sd card
Sent from my LG-P920 using XDA App
Have you tried Mobo Player? Works fine for me and i play all types, mkv, avi, mp4
Plus they have lots of codec packages to add if havng any trouble,
Worth a try.
foxguard said:
Have you tried Mobo Player? Works fine for me and i play all types, mkv, avi, mp4
Plus they have lots of codec packages to add if havng any trouble,
Worth a try.
Click to expand...
Click to collapse
Thank you for the suggestion! I have been wondering the same.
I wish there was a simple way to side-load codecs onto Android so the default video player supports more
Sent from my VegaComb using Tapatalk
No probs.
Let me know how you get on.
Try this from modaco.
Afternoon all
As mentioned in a few threads, I've been tinkering with encoding settings in Handbrake in order to get the optimal settings for converting video. After spending a few hours with this last night and this morning - what a fun Friday night, huh? - I think I have nailed it. This profile will allow you to watch files using the native video player - you don't need anything like RockPlayer, or VPlayer. This means that they should be hardware accelerated. You can use something like RockPlayer, but framerates will suffer if you're using HD videos. I tested this using the 1080p MP4 version of Big Buck Bunny as the input file and it works very well - I'm going to give this a shot on some of my other videos today.
I have attached the profile in question.
EDIT: Rename the file to "Vega.plist" before importing (take off the .txt extension) - I've only just realised that modaco will not let me upload PLIST files...
Don't try to double click this, as it might try to open in Quicktime - no idea what it will do on a Mac! To import it open Handbrake, go to "Presets" and click "Import". The profile export feature is experimental, so I'll list the detailed settings that I used in case it does not work.
Firstly though, if you're not sure what you're doing in the "Picture" tab, have a read of this quick primer on Anamorphic video. If you want to scale down a 720p or 1080p video to match the Vega's resolution, set Anamorphic to loose, modulus to 16, and set the video width to 1024. For any videos that are not HD, or if you're not sure, just set this to "Strict": this will make sure that the video always displays in the correct aspect ratio, but you won't be able to scale the video down. Don't mess with the "Cropping" settings unless you know what you're doing.
I'd highly recommend scaling 720p or 1080p HD videos down to match the Vega's resolution - it drastically reduces the output size:
The original version of Big Buck Bunny (1920*1080): 885MB
Strict anamorphic - no scaling (1920*1080): 388MB
Scaled down to 1024*576 with loose anamorphic: 128MB
The Vega will play 720 or 1080 files, but you won't see that extra detail so there's no point in wasting the extra space on your SD card, IMO.
Detailed settings - in case the attachment fails. If anyone finds any optimisations for this, please let me know!
Output Settings:
Container: MP4 File
Large file size: Unchecked
Web optimised: Unchecked
iPod 5G support: Checked
Video Filters Tab:
Detelecine: Default
Decomb: Default
Deinterlace: Off
Denoise: Off
Deblock: Off
Grayscale Encoding: Off (Unchecked)
Video Tab:
Video Codec: H.264 (x264)
Framerate: Same as source
Quality: Constant Quality, set slider to RF:20
Audio Tab:
This is going to vary, depending on the audio tracks in the source video (for example, a DVD may have multiple languages and each of these will be a different audio track) - I have not yet tested multiple audio channels on the Vega, so I highly recommend only adding one audio track to your output file. The following drop-downs must be set:
Audio Codec: AAC (faac)
Mixdown: Stereo (no point having multi-channel audio if you can't play it on the Vega)
Samplerate: Auto
Bitrate: 160
Subtitles:
This will depend entirely on whether you want to include the subtitles from the source video. This can get a bit more complicated, so I'm not going to cover it here; if your source has subtitles as a separate track (i.e., soft subs not hard subs), you may need to take some extra steps - do some research on this over at afterdawn.com or doom9.org.
Chapters:
If your source video has chapters - like a DVD - you can replicate those chapters in the output video; if there are no chapter markers in the source, the checkbox is greyed out.
Advanced:
There's quite a lot in here, so bear with me...
Reference Frames: Default (3)
Maximum B-Frames: Default (3)
CABAC Entropy Encoding: Checked
8x8 Transform: Checked
Weighted P-Frames: Unchecked
Pyramidal B-Frames: Default (Normal)
No DCT-Decimate: Unchecked
Adaptive B-Frames: Optimal
Adaptive Direct Mode: Default (Spatial)
Motion Estimation Method: Default (Hexagon)
Subpixel ME & Mode Decision: Default (7)
Adaptive Quantisation Strength: slider set to middle
Psychovisual Rate Distortion: slider set to middle
Psychovisual Trellis: slider set fully to the left
Partition Type: Default
Trellis: Default
Deblocking: Both drop-downs set to Default (0)
For those that are interested in the more nerdy side, I started off by copying Handbrake's built in "High Profile" x264 settings. I found this page, which mentions that the Xoom only supports the baseline x264 profile, so I turned off the advanced x264 stuff. However I realised that even though the hardware is the same, the Xoom is not the Vega. So started re-enabling the advanced options one by one to see if any caused a problem. The only one I found that caused any issue was weighted P-Frames, which seemed to make videos judder slightly.
Attached File(s)
Vega.plist.txt (3.52K)
Number of downloads: 521
This post has been edited by blcollier: 26 March 2011 - 01:44 PM
Cheers but I shouldn't have to convert for my Optimus 3D as well as the Vega, one video should be able to work on both
kenfisher said:
Afternoon all
As mentioned in a few threads, I've been tinkering with encoding settings in Handbrake in order to get the optimal settings for converting video. After spending a few hours with this last night and this morning - what a fun Friday night, huh? - I think I have nailed it. This profile will allow you to watch files using the native video player - you don't need anything like RockPlayer, or VPlayer. This means that they should be hardware accelerated. You can use something like RockPlayer, but framerates will suffer if you're using HD videos. I tested this using the 1080p MP4 version of Big Buck Bunny as the input file and it works very well - I'm going to give this a shot on some of my other videos today.
I have attached the profile in question.
EDIT: Rename the file to "Vega.plist" before importing (take off the .txt extension) - I've only just realised that modaco will not let me upload PLIST files...
Don't try to double click this, as it might try to open in Quicktime - no idea what it will do on a Mac! To import it open Handbrake, go to "Presets" and click "Import". The profile export feature is experimental, so I'll list the detailed settings that I used in case it does not work.
Firstly though, if you're not sure what you're doing in the "Picture" tab, have a read of this quick primer on Anamorphic video. If you want to scale down a 720p or 1080p video to match the Vega's resolution, set Anamorphic to loose, modulus to 16, and set the video width to 1024. For any videos that are not HD, or if you're not sure, just set this to "Strict": this will make sure that the video always displays in the correct aspect ratio, but you won't be able to scale the video down. Don't mess with the "Cropping" settings unless you know what you're doing.
I'd highly recommend scaling 720p or 1080p HD videos down to match the Vega's resolution - it drastically reduces the output size:
The original version of Big Buck Bunny (1920*1080): 885MB
Strict anamorphic - no scaling (1920*1080): 388MB
Scaled down to 1024*576 with loose anamorphic: 128MB
The Vega will play 720 or 1080 files, but you won't see that extra detail so there's no point in wasting the extra space on your SD card, IMO.
Detailed settings - in case the attachment fails. If anyone finds any optimisations for this, please let me know!
Output Settings:
Container: MP4 File
Large file size: Unchecked
Web optimised: Unchecked
iPod 5G support: Checked
Video Filters Tab:
Detelecine: Default
Decomb: Default
Deinterlace: Off
Denoise: Off
Deblock: Off
Grayscale Encoding: Off (Unchecked)
Video Tab:
Video Codec: H.264 (x264)
Framerate: Same as source
Quality: Constant Quality, set slider to RF:20
Audio Tab:
This is going to vary, depending on the audio tracks in the source video (for example, a DVD may have multiple languages and each of these will be a different audio track) - I have not yet tested multiple audio channels on the Vega, so I highly recommend only adding one audio track to your output file. The following drop-downs must be set:
Audio Codec: AAC (faac)
Mixdown: Stereo (no point having multi-channel audio if you can't play it on the Vega)
Samplerate: Auto
Bitrate: 160
Subtitles:
This will depend entirely on whether you want to include the subtitles from the source video. This can get a bit more complicated, so I'm not going to cover it here; if your source has subtitles as a separate track (i.e., soft subs not hard subs), you may need to take some extra steps - do some research on this over at afterdawn.com or doom9.org.
Chapters:
If your source video has chapters - like a DVD - you can replicate those chapters in the output video; if there are no chapter markers in the source, the checkbox is greyed out.
Advanced:
There's quite a lot in here, so bear with me...
Reference Frames: Default (3)
Maximum B-Frames: Default (3)
CABAC Entropy Encoding: Checked
8x8 Transform: Checked
Weighted P-Frames: Unchecked
Pyramidal B-Frames: Default (Normal)
No DCT-Decimate: Unchecked
Adaptive B-Frames: Optimal
Adaptive Direct Mode: Default (Spatial)
Motion Estimation Method: Default (Hexagon)
Subpixel ME & Mode Decision: Default (7)
Adaptive Quantisation Strength: slider set to middle
Psychovisual Rate Distortion: slider set to middle
Psychovisual Trellis: slider set fully to the left
Partition Type: Default
Trellis: Default
Deblocking: Both drop-downs set to Default (0)
For those that are interested in the more nerdy side, I started off by copying Handbrake's built in "High Profile" x264 settings. I found this page, which mentions that the Xoom only supports the baseline x264 profile, so I turned off the advanced x264 stuff. However I realised that even though the hardware is the same, the Xoom is not the Vega. So started re-enabling the advanced options one by one to see if any caused a problem. The only one I found that caused any issue was weighted P-Frames, which seemed to make videos judder slightly.
Attached File(s)
Vega.plist.txt (3.52K)
Number of downloads: 521
This post has been edited by blcollier: 26 March 2011 - 01:44 PM
Click to expand...
Click to collapse

[TIP] Good video/sound quality mp4 recording

Because i'm using CM7 and it's recording quality is very ****ty, now looking at the source i found one file in system/etc/media_profiles.xml
here you can set YOUR values of quality! I've attached file with in my opinion very optimal configuration of good quality video/audio recording settings.
If you want to also change low quality settings - you're welcome.
So just overwrite old file with new one You can use my settings or change to yours.
This also reduces your file size to half of 3gp (current profile) size! Cool.
NOTE: MIUI users also maybe oxygen already have mp4 recording config.
PS: unzip file
Just tried, didn't see any big diference except the output to m4v.
Is there a way to change the fps from 7-8 ( mine at least) to something like 25 ??
EDIT: But is has much better sound quality (5Kbps @3gp vs [email protected])
RaNd.gr said:
Just tried, didn't see any big diference except the output to m4v.
Is there a way to change the fps from 7-8 ( mine at least) to something like 25 ??
EDIT: But is has much better sound quality (5Kbps @3gp vs [email protected])
Click to expand...
Click to collapse
Cause video quality is most depending on sensor and lenses, then bitrate...because this phone has cheapest sensor and no lenses so the quality can not be improved very major.. but the main purpose of this is to allow people to change parameters, i don't need 6Mb/s bitrate, it's stupid, 3mb/s is the best. Also i dropped frames to 23/s and do not use full hd.
And audio is superb 96kbs and 32 Khz, you can change this to even 320Kbs and 96Khz but there is no need
try to increase the photo encoding atleast by 10%
default
<ImageEncoding quality="90" />
<ImageEncoding quality="80" />
<ImageEncoding quality="70" />
improved
<ImageEncoding quality="100" />
<ImageEncoding quality="90" />
<ImageEncoding quality="80" />
it'l improve quality
well done can u upload a movie recorded with that to people see the diference?
anjo88 said:
well done can u upload a movie recorded with that to people see the diference?
Click to expand...
Click to collapse
all included recorders in rom supports this.
The quality will not be better because sensor is ****, what i meant by saying quality -is that you can adjust it by your needs. I don't use 720x1280 resolution i don't need it, it's stupid because phone do not support it anyway, i use 720x480. Cause then it will record better fps and less size. Also you can adjust audio to be near perfect. That's what i mean by quality. You cant make **** to be and pie just because you put some sugar on it
Just flashed the newest CM7 with latest Franco kernel (24 Sept) and looks much better.
Resolution 1280x720, 30FPS, audio 8000Hz with 96Kbps with stock app.
RaNd.gr said:
Just flashed the newest CM7 with latest Franco kernel (24 Sept) and looks much better.
Resolution 1280x720, 30FPS, audio 8000Hz with 96Kbps with stock app.
Click to expand...
Click to collapse
could you do a movie and put it here to see
thanks
RaNd.gr said:
Just flashed the newest CM7 with latest Franco kernel (24 Sept) and looks much better.
Resolution 1280x720, 30FPS, audio 8000Hz with 96Kbps with stock app.
Click to expand...
Click to collapse
Ι m curious too.. I want to see the result.
Greek: Για ανεβασε ενα βιντεακι φιλε, να δουμε κ εμεις αποτελεσμα.
It's just what i could record with some movement outside my workplace
It's some points that the video freezes and i assume its cause of the sync it was doing at that time.
https://rapidshare.com/files/3065924380/VID_20110928_145804.m4v
RaNd.gr said:
It's just what i could record with some movement outside my workplace
It's some points that the video freezes and i assume its cause of the sync it was doing at that time.
https://rapidshare.com/files/3065924380/VID_20110928_145804.m4v
Click to expand...
Click to collapse
Looks nice & smooth.Will try ASAP.
But seems to be @20fps on media properties.
RaNd.gr said:
It's just what i could record with some movement outside my workplace
It's some points that the video freezes and i assume its cause of the sync it was doing at that time.
https://rapidshare.com/files/3065924380/VID_20110928_145804.m4v
Click to expand...
Click to collapse
the problem is in video encoding - it's encoding video in VARIABLE bframerate, so it means some seconds it could be 30fps and at some points onli 1fps so at place where it's only 1fps - you see one frame 1 second and it looks like it frozen. To avoid that i use lower resolution [720x480], lower bitrate [3200], and lower framerate [23] and phone handles it good min fps i get is 11.
your file info is:
Minimum frame rate : 0.628 fps
Maximum frame rate : 30.191 fps
Click to expand...
Click to collapse
so not even 1 frame per socond..so it causes 1.5 second delay. And your sound is ****. 8Khz is way too low. Use 32 000
So, how do i change the sound quality ??
I don't think there is a way to record to stable framerate instead of variable, right ?
RaNd.gr said:
So, how do i change the sound quality ??
I don't think there is a way to record to stable framerate instead of variable, right ?
Click to expand...
Click to collapse
My given/attached XML already with good [better than yours] sound.
2. don't know i don't see option in XML to change to constant framerate [i changed in xml min framerate from 1 to 23 - but this doesn't helped], i think it's somewhere in codec source but i do not have time so don't know 100% where exacly.
Is there a way to change the path that the video are saved. i have a slow memory card which causes freeze in videos so i want them to be saved directly somewhere at HWUserData. Is there a way to do that (not by removing sd)?
I think no with default cammera app. You can use lg camera that have an option for this though.
Also you can try an app as SD Booster which incaze cache size and lead to faster read speed
genti7 said:
Is there a way to change the path that the video are saved. i have a slow memory card which causes freeze in videos so i want them to be saved directly somewhere at HWUserData. Is there a way to do that (not by removing sd)?
Click to expand...
Click to collapse
your card is good. Videos are in 6 mbps [which is btw way to hi, change to 3200] so this is like 0.75MB/s so if your card can write at 1MB/s your card is not making difference. Freezes is because of variable framerate. Also i don't think that it's writing directly to card, there should be some buffer first then only writes to card..so problem is somewhere else i think.
How do you fix this? When i try to copy and paste it just deny it... can you make a quick guide? Got MIUI rom with franco kernel but its not the newest version.
Sent from my u8800 using Tapatalk
Isakk1 said:
How do you fix this? When i try to copy and paste it just deny it... can you make a quick guide? Got MIUI rom with franco kernel but its not the newest version.
Sent from my u8800 using Tapatalk
Click to expand...
Click to collapse
use root explorer ant make sure etc dir is writable.
I already tried Root explorer but it just says "This file is a system read only file" or something like that

[GUIDE] U8800(all versions) Best Encoding Settings For Video Playback

Hello there guys!
Today I'm gonna share my encoding settings that I think are the best for movie/tv-show/anime watching on ideos x5(pro/non-pro) screen.
Note: Encoding is a very heavy task for a computer. Make sure that you computer has at least 2 CPU cores and 2 gb of RAM before proceeding.
For example I have an Intel Core 2 Quad Q9300 (4 cores at 2,5 GHz),4gb RAM and Win7 x64. Re-enconding 20 minutes of anime/movie takes about 5 to 7 minutes. Output file size is about 160-180 MB.
Anyway.Let's get started!
-----------------------------
1) Download a program called HandBrake. You can get it here:http://handbrake.fr/downloads.php
Note: If you have 64bit OS get the 64bit version of the program,as this will greatly speed up the encoding progress.
2) Install HandBrake(hope you know how to do it ).
3) Run HandBrake
Note: In Windows in case it shows up an error when trying to run it, try running it as admin.
4) Find a movie/tv-show/anime file to re-encode + proper sub suitable for your needs
5) Take a break here and get ready for the hard part
----------------------------------------------------------------------------
1) Click the Source icon located in top left corner in HandBrake interface. Press select video file (I won't do a source->folder example since it's pretty much the same.)
Select your video file. Usually the extension of your video file will be something like .avi .mp4 .m4v .mkv etc.
2) Now in Output Settings (Preset: Normal) make sure that Container: is set to MP4 File
Now click the browse button located a little bit above and right and give a name and location to your output file
The hard part really starts here...
3) In Picture Tab set Anamorphic: to None
See how Width and Height changed and you can now edit their values?
Now change Width: to 800 and Height: to 480 (that's x5(all versions) screen resolution)
Make sure Keep Aspect Ratio is UN-CHECKED
4) Switch to Video tab (leave Video Filters Tab as is)
Set Video Codec: to MPEG-4 (FFmpeg)
Framerate (FPS): Same as source (leave as is)
Constant/Variable Framerate don't make a difference to me but feel free messing around with these options if you want to.I just leave the default one(variable) selected
Now in Quality select Avg Bitrate (kbps):
Enter a value here from 850 to 950. The higher the value the better. I use 920 which I find very good. The only difference here is that in dark scenes higer values will give a better image,where lower values (i.e. 850) will make the image look a little "pixelated-like". Increase it even further (i.e. 1000-1150) if you are not satisfied with the result in your phone's screen.
5) Switch to Audio Tab
Remove any audio tracks you don't want by selecting them from the drop down menu and pressing remove in order to save up space
Now select the audio track you want to keep.
Change Audio Codec to AAC (ffmpeg) (2nd dropdown menu)
Change Mixdown to Stereo (3rd dropdown menu)
Leave the rest as is
6) Switch to Subtitles Tab
If you don't want any sub simply remove any sub track like you removed the audio track previously.
If your video file includes a sub stream(usually .mkv files have one) that you want to use for sure,select it from the track list and check forced only, burned in(This will hardcode the sub into the image.You won't be able to remove the sub after that.If you don't want that,then just remove the check from this checkbox) and finally check default.
If your video file has no sub track/stream but you have a working .srt or .sub file then continue reading.
7) Chapters Tab is useful for some people. I just just un-tick create chapter markers.
In advanced I dont' enter anything
8) Switch back to picture tab and revise your settings (also do this in video,audio and subtitles tab).
Correct any mistakes.
When you are ready press the Start Button located next to the Source Button you used to load your movie.
Encoding should start. Your pc may stop responding fast during re-encoding of your video file.That's normal. Just wait for it to finish.
After encoding finished test your re-encoded video in your computer to test if it is as you want it (in terms of video/audio quality and subs). Well you can't tell much about the video quality by viewing the video in your computer because image will be stretched to fit computer's screen resolution.
9) Now copy your re-encoded video file to your phone's sd card.Better make a folder called movie or something. Paste the movie there. Place any additional .srt subs you may have here.
Download MX Player from PlayStore. Install it.
Open MX Player and load your video. Make sure HW Decoder is in use. Load any sub stream you may have.
10) Turn your phone into landscape view and Enjoy!
-----------------------------------------------------------
Well,that's it!
I hope my settings will proove useful for some users who want to use their phone more like a media center device.
Don't forget to click thanks if this helped you and also comment That means a lot to me!
If you disagree with some part of the guide,have another opinion/solution then feel free to comment and make this guide even better.
Cheers!
Guide is well written but why re-encode?
The only reason in my opinion is the free space, since our phone can play standard definition (didn't try HD) videos with srt subtitles (software decoded). If it is a space problem go with a bigger SD card re-encoding will cost in time...
Also keep in mind that any re-encode from a lossy codec to a lossy codec will cause loss of quality (even when re-encoding at the same bitrate/specs)
priestx said:
Guide is well written but why re-encode?
The only reason in my opinion is the free space, since our phone can play standard definition (didn't try HD) videos with srt subtitles (software decoded). If it is a space problem go with a bigger SD card re-encoding will cost in time...
Also keep in mind that any re-encode from a lossy codec to a lossy codec will cause loss of quality (even when re-encoding at the same bitrate/specs)
Click to expand...
Click to collapse
By re-encoding to a lower resolution it may use less cpu power to decode it, and therefore less battery (could be wrong though, this may not be that noticeable).
But yes, our phone can even play HD videos (they seem to have a low framerate on my phone, but I think it is related to a slow sd card).
@priestx
Well to tell the truth I don't do it for the free space.
I watch a lot of anime but there all in .mkv format with softcoded subs at 720p resolution and a high bitrate (1200kbps avg).
Trust me you can't watch this even with hardware decoder.It's laggy. Of course software decoder served me quite well some times but that was for easier to handle videos(like standard avi files).
You are absolutely right saying that re-encoding costs in video quality and time,but I think it worths re-encoding in some special occasions you want to watch something somewhere else apart from your computer and u8800 specs fail to playback the video correctly. Also due to screen's size it's not very easy to spot quality drop ,but only in special scenes. The advantage of re-encoding to me is that I can use hw decoder no matter if I am in 2.3 or aurora and get proper video playback.If I don't re-encode usually I won't have a hw decoder option in 2.3 and in aurora playback will be laggy sometimes even with hw decoder.
@FlashTH
I also think it uses less power but I didn't do any tests to proove it.
I don't think that slow hd playback is due to your sd card(I have a class 8 and still a lot of 720p videos shutter/lag a little).
Anyway,thanks for your comments and opinions

Camera mod?

Hello
I was wondering can we improve camera quality on our Redmi Pro, especialy video recording. I am very pleased with this device, except camera quality. This is not bad hardware or sensor, this is just bad software implementation and optimization. I hope that Xiaomi will improve something in future updates.
I have tried to change some settings in camera app. For best still picture quality you can set saturation and cotrast to high, and sharpness leave at medium. With this settings pictures will look more punchy and vibrant. When you put sharpnes also to high, picture look to much artificial with some artifacts.
For Video we do not have similar settings like sharpnes, saturation and contrast. It is shame that with Sony IMX258 we have such soft video recording.
I have tried to use some other camera apps, and no camera app can improve video recording quality. With Cinema FV5 you can change bittrate to 30Mbps but quality stays the same.
I noticed that in low light conditions video recording drops to 15FPS and a bitrate around 10-12Mbps with stock camera. This is awfull image quality. With google camera, recording video in low light is better, bittrate is 17Mbps and FPS is 30. Image is a little bit darker, but much much smoother than stock camera.
I have question now. What libs and settings google camera is using for video recording? It is for sure something different from stock camera.
I Have tried to edit omega.xml in system/etc/device_features. I have copied gemini.xml, edited vendor string from qcom to mediatek, set permisions like the original file. Then I renamed original to omega.xml.old and gemini.xml to omega.xml. Rebooted and camera app worked just fine. In video modes I got audio zoom feature, and in manual picture mode unlocked everything. But there is no 4K recording, regerdless that in xml file 4k was set to 'true'.
So where are the others settings stored?
I have read something about editing lib files, shared objects *.SO files. And this is very hard to edit or do somekind of reverse enginering. Maybe someone have knowlege to do this? Or we do not need to edit lib files at all?
I am ready to test everything on my phone, so if someone have idea how can we edit camera app, google camera app, or something else to enable 4k, to improve qulity of 1080p recording, or even enable 1080p 60FPS mode.
Also I have tried to edit build.prop and add line persist.camera.HAL3.enable=1 and this will do nothing. In system lib and lib64 folder I have found files with names HAL3a.V3. I dont know is this mean something.
I am just thinking that is a shame to have very capable helio x25 and a solid sony sensor and such a mediocre image quality.
Thanks everyone in advance, and I hope that we will find some good ideas for improving our Redmi Pro
You have unlocked manual camera mode including long exposure/shuttertine and manual focus? Have you tried these two features? For me just the buttons are unlocked, but no changes if you shoot a photo or used the manual zoom has no effect. Could you explain "edited vendor string from qcom to mediatek"
You are wright, I forgot to mention that those two functions do not work. I have decompiled stock camera app from system to see xml and smali files. I dont have enough knowlege to do some mods and recompile it. Maybe someone can help. So far, i have seen in those file that camera app recognize if your vendor is mtk or qcom and base on that unlock 4K video recording and other functions. We need help from someone to look at that app and try to modify it, to change some values etc.
Mr.Nice.ba said:
Hello
I was wondering can we improve camera quality on our Redmi Pro, especialy video recording. I am very pleased with this device, except camera quality. This is not bad hardware or sensor, this is just bad software implementation and optimization. I hope that Xiaomi will improve something in future updates.
I have tried to change some settings in camera app. For best still picture quality you can set saturation and cotrast to high, and sharpness leave at medium. With this settings pictures will look more punchy and vibrant. When you put sharpnes also to high, picture look to much artificial with some artifacts.
For Video we do not have similar settings like sharpnes, saturation and contrast. It is shame that with Sony IMX258 we have such soft video recording.
I have tried to use some other camera apps, and no camera app can improve video recording quality. With Cinema FV5 you can change bittrate to 30Mbps but quality stays the same.
I noticed that in low light conditions video recording drops to 15FPS and a bitrate around 10-12Mbps with stock camera. This is awfull image quality. With google camera, recording video in low light is better, bittrate is 17Mbps and FPS is 30. Image is a little bit darker, but much much smoother than stock camera.
I have question now. What libs and settings google camera is using for video recording? It is for sure something different from stock camera.
I Have tried to edit omega.xml in system/etc/device_features. I have copied gemini.xml, edited vendor string from qcom to mediatek, set permisions like the original file. Then I renamed original to omega.xml.old and gemini.xml to omega.xml. Rebooted and camera app worked just fine. In video modes I got audio zoom feature, and in manual picture mode unlocked everything. But there is no 4K recording, regerdless that in xml file 4k was set to 'true'.
So where are the others settings stored?
I have read something about editing lib files, shared objects *.SO files. And this is very hard to edit or do somekind of reverse enginering. Maybe someone have knowlege to do this? Or we do not need to edit lib files at all?
I am ready to test everything on my phone, so if someone have idea how can we edit camera app, google camera app, or something else to enable 4k, to improve qulity of 1080p recording, or even enable 1080p 60FPS mode.
Also I have tried to edit build.prop and add line persist.camera.HAL3.enable=1 and this will do nothing. In system lib and lib64 folder I have found files with names HAL3a.V3. I dont know is this mean something.
I am just thinking that is a shame to have very capable helio x25 and a solid sony sensor and such a mediocre image quality.
Thanks everyone in advance, and I hope that we will find some good ideas for improving our Redmi Pro
Click to expand...
Click to collapse
Hey I think you get de wrong command on build.pro, the right one in "persist.camera.HAL3.enabled=1"...
And about 4k video... I don't think it's gonna work cause the processor maybe can't handle this. And 1080 at 60fps maybe it's possible.
MathePro said:
Hey I think you get de wrong command on build.pro, the right one in "persist.camera.HAL3.enabled=1"...
And about 4k video... I don't think it's gonna work cause the processor maybe can't handle this. And 1080 at 60fps maybe it's possible.
Click to expand...
Click to collapse
1080 at 60 fps maybe work
So, any one knows what exactly on Android system handle all this?. It's on encoder? It's on camera driver? I don't think of just a "app" will change anything. It's has something like a encode line or a lib. Any modder? I had looking for a mod for that sensor but until now, the only thing what works is about Hal3 on build.prop.
Anyone know how to get 60 fps 1080?

Categories

Resources