[Q] Can i add more profiles to media_profiles.xml? - Nexus 4 Q&A, Help & Troubleshooting

hi to all,
I would like to add new media profile under CameraID = 0
right now I have the default profiles (1080p/720p/480p....)
and I want to add a hi-resolution low bit-rate profile without loosing any of the mentioned above, so in the camera app I will have something like this:
in the video quality settings - 1080p, 720p, 480p, 1080p-lowbitrate (for example)
my question is how can I add such a profile?
when I tried to just copy one and change the bit rate (and profile name ofc) I had bootloops
thanks in advance for helpers

Related

Video recording not working in 640x480

Guys, my video recording does not work in 640x480 nor in 320x240. Sound is recorded, but no video... Only CIF works like expected (Video with sound).
Anyone else with that prob?
Thanks,
Marti
Hi,
i got the same problem.. there are only sound on the video recording..
The same after installing "ringtone-patch".
got the same problem. only works in CIF resolution with H.264
I do not have any problem recording video both on momory and SD card and with sound in 640x480 / MP4.
Could you explain how to reproduce this behaviour ?
I fixed it by deleting HKLM\Software\HTC\Camera\recparam\MP4VGA registry key.
If you afraid of deleting, try to rename it.
darknos said:
I fixed it by deleting HKLM\Software\HTC\Camera\recparam\MP4VGA registry key.
If you afraid of deleting, try to rename it.
Click to expand...
Click to collapse
did anyone else try?
it works! just tried it.
darknos said:
I fixed it by deleting HKLM\Software\HTC\Camera\recparam\MP4VGA registry key.
If you afraid of deleting, try to rename it.
Click to expand...
Click to collapse
YESSSSSS!!!
It works fine after deleting of this reg key.
Best regards to all,
Marti
is it really working?
when I bought HD Mini the recording in VGA quality worked fine. I did some customizing (nothing unusual- just installed some apps and tweaked manila to my liking) and.... the VGA mode stopped working. It records audio only. I tried to delete the MP4VGA registry key and after this HD Mini records video in VGA but:
1) the video quality is very poor when compared to the recordings before problems. I checked the files- the resolution is the same (640x480) but the bitrate is drastically lower- it is 375 and used to be 1441. it looks awful
2) the funny thing is that when I opened the registry editor the deleted key is back again. I am a newbie to registry editing and have no idea if I deleted it the "wrong" way and how it restores itsef. I tried several times and after soft reset the key is back again
My most important question is: mrmartischmi and darknos- can you record a high quality files ( hi bitrate?) after the tweak?
thank you
@robertszydlo:
Sorry for the late answer.
You are right:videos have a very low bitrate and thus are of bad quality.
Its false to delete the folder MP4VGA.
I restored it from my backup and set the key "Bitrate" to 1500000.
This made my Videos look much better and the Bitrate returned to be about 151 kBps instead of only 40. Higher values did not work though.
Hope this helps, I am investigating more at the moment...
(maybe someone can post the complete "original" keys of the MP4VGA folder?)
Thanks so far,
Marti
yeah! this one really works (Thanks mrmartischmi!) but it gets me even more confused
after setting the value to 1500000 my phone records great looking videos but the files and the bitrate(well over 3000 now ) are huge! I don't have a problem with large files - it just makes me think:
-what was the original value ( can someone please check and post?)
-why in the world it stopped working? can I expect now to work continuosly and not fail while recording my masterpiece video ?
thank you
@robertszydlo:
I only got 151 kBps, how can yours be 3000?
Did you check on the PC with Quicktime or something else?
Could you post the size, duration and bitrate of a sample video so I can check with the parameters of one of mine?
I am pretty confident, we will understand it in the near future
reg keys
mrmartischmi said:
@robertszydlo:
...
(maybe someone can post the complete "original" keys of the MP4VGA folder?)
Thanks so far,
Marti
Click to expand...
Click to collapse
I'm using 1.32.479.2 WWE ROM with the last HTC hotfix installed. Bellow is MP4VGA key folder, exported from my registry and a screen with info about a short video i've just made.
I've checked the "bitrate" key and mine is 1500000 too.
Hope it helps.
EDIT: the keys have the original values and i don't have any problem with video recording.
mrmartischmi,
I am not any math expert so I can make mistakes- that's why I don't try to convert bits to bytes or do any math I just give you the numbers I see on my mac screen when I "get info" about the new file (value in registry set 1500000) it says it is 640x480, codecs MPEG-4 Video, AAC duration 00:16 audio channels 1 , Total bit rate 3,217. It is probably the bitrate of audio+video in bits? I am not sure how it compares to your 151kBps but your bitrate can be video only expressed in KB.... there are probably many guys on this forum that can enlighten us
ci6i,
thanks for help, the one thing that is strange to me is that before any tweaks my phone recorded files with much smaller total bitrate ( get info says 1486) so maybe in my rom the original registry value was lower?
anyway, yesterday I recorded really long files and everything works, so I am happy
@robertszydlo:
Sorry, it was not my intention to bother you with maths... I was just wondering, why the rates are so different although using the same keys in registry. Could you post the filesize of the small clip you mentioned before so I can compare these parameters to a clip of mine?
@ci6i:
Thanks a lot for your help. I compared the values of the reg key to the ones I have now and they are ecactly the same.
So the question is: why did robertszydlo recorded videos with a much smaller bitrate before the tweaking? Maybe there are other keys to change ...
I'v discovered days ago that this bug is generated by using BsB Tweaks with option "Video MPEG4 Bitrate" enabled or HD2 Tweak with corresponding option enabled..........don't use this tweaks utils if not certified with HD MINI....
hi mrmartischmi,
I uploaded 2 videos- nr 1 is recorded the first day I got the phone, no tweaks
nr 2 i after the last tweaks (value 1500000 in registry) ... bigger bitrate ant bigger file. Can I see difference in quality? well- I am not sure- see for yourself
@ SoftWord: you are probably right! I switched the bsb bitrate tweak on, and this could cause the whole problem, thanks for your input
The best quality I got when remove all keys from MP4VGA registry folder except one: BitRate = 1500000. but 15 seconds video is almost 6Mb on card
Notice: If you leave FrameRate = 20 or 30 in MP4VGA, video file size will be about twice less and quality will be worse.
robertszydlo said:
@ SoftWord: you are probably right! I switched the bsb bitrate tweak on, and this could cause the whole problem, thanks for your input
Click to expand...
Click to collapse
def that's the problem why the video recording not working. without it my video recording's working fine.
watch out with this setting, guys!

Optimal video conversion resolution etc.

Ok its time to load some videos into this device! Does anyone have any tips for the best resolution to convert clips to /what converter to use? I've tried some with mixed results (cant remember what settings i used though). All that other stuff like fps and sound settings would also be helpful!
thanks
854x480 resolution for 16:9 material, 640x480 for 4:3. Always keep same framerate as source.
For me, the Tool "Handbrake" works best.
There I start over with the "iPhone & iPod Touch Preset".
I use the resolution like said before, or the biggest aspect, that is possible at keeping the Aspect Ratio..
Also no change at the Framerate, but I activate 2-Pass Encoding and Average Bitrate at about 1000kbps (didn't determine the best setting yet).
At the Audio Tab, I switch everything to Stereo + Highest Bitrate available (Usually 160kbps as the X10i sounds horrible in either way with my Sure SE530s). Don't forget to press "Remove Track" first, if there already is one. Afterwards "add Track" to get audio again.
If Handbrake is making problems:
Take a look at their nightly builds in their forum.
Even if its strange:
The Nightly Builds work more stable for me, than the latest official build.
I used Videora Android Converter,
Just choose any device, e.g - I chose HTC Magic
Then go to settings, new profile, video tab, General, width:854, height 480, with others remaining constant. - I name the profile X10
So when you want to convert videos, just click htc magic and choose X10 for the profile
And the video will fit perfectly on your X10 in landscape

[Q] (build.prop) parameters for improvements

Hi, I found that on some phones add new parameters to this file to increase the fps of the video or change the recording codec, and I wondered if our mobile i5800 can change any parameter and improve some aspect?
Greetings, thanks and happy new year.

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

REMIX OS - Best video player, best settings

Hi all. Been using Remix OS on the MOJO and loving it, but having some issues with media file playback. I usually use SPMC but I can't seem to set it so that that playback is smooth. I'm getting judders and stutters here and there, most noticeable (but not exclusively) on PAL 50Hz content and when the camera pans. Is there a different media player I should try, or what would the optimum settings be for the MOJO to produce smooth playback? I only have a fairly standard Samsung LE32C450. Thanks all.
NVM, I appear to have resolved it. I've had to set sync playback to display and sync to refresh rate on, and also always enable vsync. Never had to do this on previous versions, but the latest SPMC seems to need it. Playback fixed either way.
EDIT: Posting up my settings as I do indeed appear to have resolved the playback issue across all types of content, not just 50Hz PAL stuff. All video was rather juddery, but no more. Very pleased Anyway, maybe this could help someone else with the same issues:
Enable Expert settings within the SPMC menus.
1. Switch off Mediacodec (Surface) in Acceleration, leaving just default Mediacodec on
2. Set Vertical Blank sync to always enabled
3. Sync display to refresh rate - on
4. Adjust display refresh - always
Then when playing a file, go to the video options:
5. Switch Deinterlace off. Now you may have some files that need it on. You will have to set this to on for those files as you play them. Do not set it to auto either way. Auto seems to screw up playback.
6. Deinterlace method - Bob inverted (probably already set to this)
7. Video scaling - Bilinear (see above)
Then click to set as default for all media.
Let me know if any of this helped you or not.
EDIT 2: Please delete this thread mods, as this is no longer working for me.

Categories

Resources