How to record videos at above 20Mbps? - Xiaomi Redmi 2 Questions & Answers

Hi all, I have a Redmi 2 that I'm using as a dashcam. I've played with the media_profiles.xml and got the phone to record 1080p at 20Mbps. However, anything above that value doesn't work. I've increased <ImageDecoding memCap="40000000" /> and also increased VideoEncordercap MaxBitRate="30000000" but to no avail. Anyone with any ideas?

Did 1 day research on this ,rebooted at least 20 times
read my media profiles
high bitrate rec set on "qcif" .
also edits in encodercap
you may copy this instead of yours.
just give it the right permission

BTW what ROM are you on?
mind u I'm on android 6.0.1 by kumarajay (everything is great here, video already recorded at 20 Mbps).
please backup mediaprofiles.xml before editing it

Hi, thanks for the file but I've tried the same edits on my own file and on your attached files but it didn't work. Video record fails whenever bitrate is above 20Mbps. I'm on rooted stock MIUI Developer ROM.

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!

Flv video files freezing and delaying

Hello .I have a problem with my phone when watching videos from sdcard.(.flv)Sound ok but video freezing and delaying.I tried almost all 'player' apks.If i watch a hd video from youtube everything is ok. (Adobe flash player 10,1 installed)
Flashplayer 10.1 doesn't work for our phone...
10,2 and 10,3 did not installed.Gives an error
Our phone can't play flv files with ease.. I've tried every potential app from market but faced the same as yours..
Sent from the 3rd Galaxy !
What ROM are you using? If It's a custom ROM it probably has sdcardspeedreadingfix which has a bug that causes struttering on videos. You could try this:
1. Download SD speed boost
2. Open it
- If "current value" is at 128, you do not have sdcard speed fix enabled, and this isn't the reason why flv videos lag for you.
- If it is at anything else eg. 2048 (default) then it is enabled. Move the slider to the minimum value, which is at 128
Now you said that you have no lag in other videos so this probably isn't it but you could give it a shot.
If it worked, give thanks to the guy who uploaded the apk for sd card speed boost
I 've install the apk. Selected value 128
current value 128.
Then It's not that. Probably It's just that our phone can't play flv:s well, as we have no support for flash player.
You could convert your flv videos to some other format.

Media_profile.xml modifications

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.

[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

Recording in 240 fps mode gives 7 or 3 fps files

Hi.
I'm having issues with video recording.
This folder contains 3 video files showing my problem.
h t t p s://drive.google.com/folderview?id=0B_lMdWi3lpVOeGJ4Q1U4Ymc3blk&usp=sharing
They were recorded in the three different video modes video with Google Camera.
Right clicking and checking properties shows the files playing in 29.97, 7.45 and 3.72 frames per second.
I would expect the file to playback at 29.97 on my computer. Speeding these files up to the framerate they're supposed to be recorded at does not give me realtime footage.
I have previously recorded in 240 fps mode and the results were quite good. That file played back at 29.97 fps when transfered to my computer and I could edit it as expected.
Speeding up 8x gave me realtime video.
Any ideas on whats wrong? I've cleared data for Google Camera but it didn't help.
6P 64 GB Graphite
Rooted stock 6.0.1 with ElementalX 1.03

Categories

Resources