GALNET's fix for choppy 720p recording in CM7/MIUI

Search This thread

michelfeldman

Member
May 6, 2009
27
8
ALL THE CREDIT FOR THIS FIX GOES TO GALNET

Galnet posted a fix for 720p choppy recording in the MIUI post.
The problem I found was that it didn't work for everybody.
So, after doing a tkdiff on the changed file for the fix: media_profiles.xml, I saw that the 720p fix is a change of the recording bitrate from 12,000,000 to 10,000,000.
For my phone it wasn't enough and I was still getting choppy recordings, so lowered the bitrate even further to 5,000,000 and now I have flawless 720p recording!!!

How to fix the issue:

1) Make /etc/ R/W (use root explorer)
2) Edit the file: media_profiles.xml and change the bitrate line:
<CamcorderProfiles cameraId="0">
<EncoderProfile quality="hd" fileFormat="mp4" duration="60">
<Video codec="h264"
bitRate="12000000"

to:
bitRate="5000000"

3) save the file
4) make /etc/ R/O again
5) enjoy 720p recording

NOTES
1) HD playback is still choppy -- so you have to transfer the file to your computer to test!!!
2) You can try and increase the bitrate from 5000000 to 10000000 (which was GALNET's original value) -- and if it is still good for you great.

THANKS A LOT GALNET!!!
 

zerozoneice

Senior Member
Dec 18, 2010
1,846
223
When on cm7 i found out that playing with different cpu governors influences the 720p choppiness more or less as well. Conservative governor messes 720p up, while on demand improved it....but didnt get rid of it.

Havent tried galnet's fix or their latest miui but on a pc the reported bitrate of 720p material from SGS is ~12mbps + ~2mbps audio track

Im on Doc kitchen jvp rom now with SGS2 camera app and works butter smooth. Its not just the recorded material that is smooth but also when panning around just after starting the camera app is very fluid (as opposed to cm7/miui)
 
Last edited:

thunderteaser

Senior Member
Jul 22, 2010
830
296
Thanks! :) I also found out about this workaround by looking at the patch to 7.7, which diff showed a change from 12,000,000 (in 7.5) to 8,000,000. I don't recommend lowering that value to 5,000,000 because more kb/s = smoother video. Though I noticed something strange:

1. After upgrading to 7.7 (8,000,000 bitrate), I tried catching a HD video with MiuiCamera, that produced a very choppy video (still...) with unsynced audio.
2. I catched another 720p video with Android Camera, and the result was better, though I don't like the m4v container for the output files.
3. I used MiuiCamera to record another HD video, but this time it was perfect! :eek:
4. The following videos shot by MiuiCamera were still as good, even after a reboot, for now.

So, I don't think we require the Camera.apk to make MiuiCamera.apk work as it should. There is probably something about the governor or kernel ticks (HZ) which is clashing with the 720p recording. For the "record" (lol), I'm using the smartass governor on Zach's NEO 08, while scheduler and OC/UV don't seem to have a high relevance.

Also, why does MiuiCamera produce a 3gp video for 720p recordings, while it's clairly specified to use the mp4 container? I also used Avidemux and ffmpeg to check the video, and it has a 1280x720 resolution with H.264 and AAC codecs. So, why the 3gp extension?

EDIT: I forgot, have you understood why the m4v max bitrate was lowered to 2,000,000 while stock JVP has 12,000,000 ?
 
Last edited:
  • Like
Reactions: Crimsonthunder

alinescoo

Senior Member
Mar 12, 2008
622
60
Currently on CM7 recording is bad, doen't work properly. Users from galnetMIUI forums claim that recording works fine with Chameleon release. Fix is not public, so... CM7 hasn't got proper 720p video recording
 

alinescoo

Senior Member
Mar 12, 2008
622
60
Probably some more changes in the kernel also.There was a thread on their forums, where a user said thar 720p recording works only with default kernel, while with custom kernels doesn't. It's quite annoying, using a stock/custom ROM based on official looks really slow for me, using CM7 feels really good and fast... but with the loose of recording, which I really need for my little girl's unique moments in life recording. The High setting for camera in CM7 makes recording possible, there are very small glitches sometimes, but it's a pitty to not use it a fully potential.
 

beababe

Senior Member
Jan 24, 2010
187
14
Thats not a "fix"? It just lowering the bitrate which means less smoothness and worse quality.

That aint a "fix" for the problem to me :(
 

alinescoo

Senior Member
Mar 12, 2008
622
60
Actually looking at the xml file mentioned in the first post, in the case of latest nightly of CM7 the value is 10000000. But, keep in mind that the post is from june, and in the meanwhile the real fix came with galnetMIUI chameleon (or something) which is later. So, they must have figured it out in the meanwhile...
 

brfsa

Senior Member
Dec 1, 2008
266
35
Bangkok
worked for me

Worked for me.
I decreased HD bitRate from 10000000 to 5000000 bps
also decreased HIGH bitRate from 3000000 to 2000000

my video is now playing quite smooth.

Thanks

SGS I9000, Cyanogen 7.1.0
 

rahatbek

Senior Member
Sep 13, 2008
157
16
on HD i' 10000000 too, but had ploblems on recording. record in format M4V, but look mediaprofiles it wrote as MP4. why it record different format?
 

Top Liked Posts

  • There are no posts matching your filters.
  • 5
    ALL THE CREDIT FOR THIS FIX GOES TO GALNET

    Galnet posted a fix for 720p choppy recording in the MIUI post.
    The problem I found was that it didn't work for everybody.
    So, after doing a tkdiff on the changed file for the fix: media_profiles.xml, I saw that the 720p fix is a change of the recording bitrate from 12,000,000 to 10,000,000.
    For my phone it wasn't enough and I was still getting choppy recordings, so lowered the bitrate even further to 5,000,000 and now I have flawless 720p recording!!!

    How to fix the issue:

    1) Make /etc/ R/W (use root explorer)
    2) Edit the file: media_profiles.xml and change the bitrate line:
    <CamcorderProfiles cameraId="0">
    <EncoderProfile quality="hd" fileFormat="mp4" duration="60">
    <Video codec="h264"
    bitRate="12000000"

    to:
    bitRate="5000000"

    3) save the file
    4) make /etc/ R/O again
    5) enjoy 720p recording

    NOTES
    1) HD playback is still choppy -- so you have to transfer the file to your computer to test!!!
    2) You can try and increase the bitrate from 5000000 to 10000000 (which was GALNET's original value) -- and if it is still good for you great.

    THANKS A LOT GALNET!!!
    1
    Thanks! :) I also found out about this workaround by looking at the patch to 7.7, which diff showed a change from 12,000,000 (in 7.5) to 8,000,000. I don't recommend lowering that value to 5,000,000 because more kb/s = smoother video. Though I noticed something strange:

    1. After upgrading to 7.7 (8,000,000 bitrate), I tried catching a HD video with MiuiCamera, that produced a very choppy video (still...) with unsynced audio.
    2. I catched another 720p video with Android Camera, and the result was better, though I don't like the m4v container for the output files.
    3. I used MiuiCamera to record another HD video, but this time it was perfect! :eek:
    4. The following videos shot by MiuiCamera were still as good, even after a reboot, for now.

    So, I don't think we require the Camera.apk to make MiuiCamera.apk work as it should. There is probably something about the governor or kernel ticks (HZ) which is clashing with the 720p recording. For the "record" (lol), I'm using the smartass governor on Zach's NEO 08, while scheduler and OC/UV don't seem to have a high relevance.

    Also, why does MiuiCamera produce a 3gp video for 720p recordings, while it's clairly specified to use the mp4 container? I also used Avidemux and ffmpeg to check the video, and it has a 1280x720 resolution with H.264 and AAC codecs. So, why the 3gp extension?

    EDIT: I forgot, have you understood why the m4v max bitrate was lowered to 2,000,000 while stock JVP has 12,000,000 ?