changing bitrate for video stabilization? - Android Q&A, Help & Troubleshooting

I've read in the custom rom thread which i have on my phone that people changed their bitrate to get video stabilization to work. Nobody seems to know anything over there and neither does google. So i was wondering if somebody knows here, how i can change the bit rate of my phone. I don't even really understand what it means. I only know of audio to have a bitrate but i would not know how to change it. How would i do that?

rehfore said:
I've read in the custom rom thread which i have on my phone that people changed their bitrate to get video stabilization to work. Nobody seems to know anything over there and neither does google. So i was wondering if somebody knows here, how i can change the bit rate of my phone. I don't even really understand what it means. I only know of audio to have a bitrate but i would not know how to change it. How would i do that?
Click to expand...
Click to collapse
You're absolutely right: with regards to video it's the refresh-rate, abbreviated as FPS ( read: Frames Per Second ), the amount of frames what are drawn on screen per second. FPS isn't a static value.
EDIT:
FPS is capped on Android devices. Its maximum depends on Android version and device's hardware.

jwoegerbauer said:
You're absolutely right: with regards to video it's the refresh-rate, abbreviated as FPS ( read: Frames Per Second ), the amount of frames what are drawn on screen per second. FPS isn't a static value.
EDIT:
FPS is capped on Android devices. Its maximum depends on Android version and device's hardware.
Click to expand...
Click to collapse
Hmm, i know about FPS and how it works for slowmo videos on my phone but people were specifically mentioning the bitrate.

rehfore said:
Hmm, i know about FPS and how it works for slowmo videos on my phone but people were specifically mentioning the bitrate.
Click to expand...
Click to collapse
May be I misunderstood you. AFAIK bitrate indicates the speed at which the data is transferred from one place to another in a given time. Many factors such as streaming platform, the speed of your internet connection, the resolution of the video & codecs used should be taken into consideration when adjusting a video bitrate. Users usually choose freeware such as HandBrake to adjust a video's bitrate.

jwoegerbauer said:
May be I misunderstood you. AFAIK bitrate indicates the speed at which the data is transferred from one place to another in a given time. Many factors such as streaming platform, the speed of your internet connection, the resolution of the video & codecs used should be taken into consideration when adjusting a video bitrate. Users usually choose freeware such as HandBrake to adjust a video's bitrate.
Click to expand...
Click to collapse
Yes the bitrate part makes sense and maybe i didn't explain it well enough but: My phone, on the stock rom, has video stabilization. With my current PE custom rom it does not anymore but people in the custom rom thread pointed out, that they changed the bitrate (they didn't mention anything else) and now video stabilization is working for them. I didn't understood how they did that and how they were able to change the bitrate on their phone (i suppose?!) and was seeking for an answer in regards of that.

Related

Encoding MKV Files for Playback

Hello Everyone,
After much testing/researching, I have finally found the best solution to encode .MKV files to .MP4 for flawless playback on the HD2 using MediaCoder. I have tried many of the other methods and settings provided by others on this forum and many of them were good, but simply took too long or sometimes caused choppy playback on the HD2.
UPDATE 9/6/10
Thanks to everyone who has helped out with new settings and testing out encoding methods in this thread and the entire forum. I have recently had major issues with encoding certain videos in H.264 resulting in audio sync issues, frames, and artifacts. Doing some more testing and help from forum members, I will be updating the settings to what I have been using recently and having absolutely no issues with even on 1080P files. Just remember to use Windows Media Player, it provides the best playback for these encodes!
MediaCoder Settings:
Format: H.264 ( If Possible use CUDA Encoder, much faster!)
Mode: Average bitrate @ 1500Kbps
Audio encoder: FAAC
Audio Format: LC-AAC
Audio container: AAC
Audio mode: Average bitrate @128Kbps
Container: MP4
Resize: 800x480
Effects: Filter by Encoder
Aspect ratio: Keep Display AR
With these settings I have tested 12 different files ranging from 500MB-1.8GB in size(720p quality) and the largest took 34 minutes on my dual core CPU (intel i5). First tried playing the files with HTC Album player and CorePlayer and the results weren't very good and they included a lot of choppiness. After reading some others success with WMP, I decided to give it a shot and I was pleasantly surprised to find that it played the .MP4 files beautifully and without a single hiccup.
Some of you may already have solutions for encoding videos for playback on the HD2, but I have found these settings to be perfect for anyone who wants to encode HD .MKV files.
I want to thank everyone who has contributed to finding the best method of converting/encoding files for playback, but I can honestly say these settings will give you amazing quality and smooth playback, even in the most intense action scenes. Give it a try!
Smack it up, flip it, rub it down,
Sticky this to be seen all around
Very nice find!
Wow, tried many of different settings and this one has worked the best for me so far! Sticky this!
Great find. This is now stuck
Great find. One question though, I have been using XenonMKV to package my MKV files to MP4 and it never takes longer than 10 minutes to do and the videos work flawlessly on my XBOX 360. Haven't tried it on an HD2 since I haven't got one yet. Do the MKV files have to be re-encoded to work on the HD2 or can they simply be repackaged into an MP4 as XenonMKV does?
htpw16 said:
Great find. One question though, I have been using XenonMKV to package my MKV files to MP4 and it never takes longer than 10 minutes to do and the videos work flawlessly on my XBOX 360. Haven't tried it on an HD2 since I haven't got one yet. Do the MKV files have to be re-encoded to work on the HD2 or can they simply be repackaged into an MP4 as XenonMKV does?
Click to expand...
Click to collapse
one reason ud wana change them up is to lower the resolution and bitrate since you dont need it so high on the smaller screen and it uses less battery
I will try it but I don't even convert mkv I just hit up coreplayer but I will keep this in mind
i dont have the option for 800x450 does that just depend on the original aspect of the video? its lost so should be 16x9
domineus said:
I will try it but I don't even convert mkv I just hit up coreplayer but I will keep this in mind
Click to expand...
Click to collapse
same here I dont see the use of it (at least for me)
lbhocky19 said:
i dont have the option for 800x450 does that just depend on the original aspect of the video? its lost so should be 16x9
Click to expand...
Click to collapse
You probably meant to say "16:9" which is the aspect ratio. Also, check for 800x400, it should be there.
Depending on your encoder, you might want to see about removing the black bars that are so prevalent on TV shows crammed onto DVDs. The black bars not only take up precious screen space, but they cause the decoder to render them, which is CPU-intensive. Also they cost you in battery life since black is the most expensive color rendering for our screens.
I've tried these settings 3 times on .avi and .mkv amd I either get an unreadable file or sound but no video. the HD2 WILL NOT play ANy of my .avi files and it lso doesn't play some .mp4.
I have tried .mkv files and yes, some of them fail when I try to play them. I kept the same settings from the first post and only changed: Aspect Ratio = Keep Pixel AR.
Which MediaCoder version do you use?
Thank you,
Mike
medrison said:
Which MediaCoder version do you use?
Thank you,
Mike
Click to expand...
Click to collapse
I use MediaCoder 0.7.3.4625 x64. For some of you having trouble playing .MP4 files, what player are you using to open them with? I have found WMP to give me no trouble playing any .MP4 file I threw at it.
htpw16 said:
Great find. One question though, I have been using XenonMKV to package my MKV files to MP4 and it never takes longer than 10 minutes to do and the videos work flawlessly on my XBOX 360. Haven't tried it on an HD2 since I haven't got one yet. Do the MKV files have to be re-encoded to work on the HD2 or can they simply be repackaged into an MP4 as XenonMKV does?
Click to expand...
Click to collapse
Re-encoding the MKV files seems to be the better choice for size and smoothness of playback. At the native bitrate of 3000+Kbps playback is choppy for me even when using WMP. Not only will lowering the bitrate provide smoother playback, but it will lower the file size. The videos I encode are around 500MB average, and when encoding is finished they are no larger than 250MB, which helps a lot since I only have a 16GB memory card.
Using MediaCoder 0.7.3.4625 x64. On my PC I have no problems playing the .MP4. The only issue I get is when I transfer the file to the phone, and try playing it on the phone. I hear audio but no video, but after changing the Aspect Ratio that seem to have fixed my issue.
N1M1TZ said:
Using MediaCoder 0.7.3.4625 x64. On my PC I have no problems playing the .MP4. The only issue I get is when I transfer the file to the phone, and try playing it on the phone. I hear audio but no video, but after changing the Aspect Ratio that seem to have fixed my issue.
Click to expand...
Click to collapse
Glad to hear things are working fine for you. If you don't mind me asking, how's the playback, and what player are you using?
Gentlemen, let me introduce to you AnyVideoConverter - this little baby is free and does the job just fine!
Tried it out w/ some anime. Select file, and hit convert to mp4 - perfect sync!
http://www.any-video-converter.com/products/for_video_free/
godsafk said:
Re-encoding the MKV files seems to be the better choice for size and smoothness of playback. At the native bitrate of 3000+Kbps playback is choppy for me even when using WMP. Not only will lowering the bitrate provide smoother playback, but it will lower the file size. The videos I encode are around 500MB average, and when encoding is finished they are no larger than 250MB, which helps a lot since I only have a 16GB memory card.
Click to expand...
Click to collapse
Wait....250MB...I end up with 1Gb/movie with your settings.
May I ask if you are sure you wanted 800/450 px and not 800/480?
Thank you,
Mike

720p video consumes too much

Recording in 720p eats up way too much memory. I believe it has to do with its codec (3gp). My sony camcorder can record in 1080p and eat up way less memory than my vibrant. Is there any app that will give more video codec features we can choose from?
Not sure what you mean. I recorded in 1080p at the Falcon's game last Sunday and had well over an hour worth of time to record. Not bad for a phone IMHO.
I meant that the vibrant phone camcorder records in 720p and eats up too much memory than a regular hd home camcorder would. A 10 minute video recorded from the vibrant takes up more than 700mb while a 1080p video recorded from my sony home camcorder takes up less than half of that. I think it has to do with the video format of the vibrant. I wonder if there is an app that can allow us to choose another video format other than 3gp to record with.
you cannot change the codec, and just so you know that 3gpp is just the container that holds the video but the video can be MGEP-4(XVID/DVIX) or H264 or many others. But our phones only record in H264 video and AAC audio and contain it in the 3GPP file. What I do is send my videos to youtube immediately so that they are cleared off my phone and youtube will convert them to a better H264 format and the MP4 container. So as of now you cannot change the quality of the camcorder and make it record a lesser video file.
Guess you just have to keep in mind that its a phone first, camcorder second. That's why you own a camcorder in the first place. You wouldn't expect your camcorder to get better calls than your phone would you?
aloneinshadow said:
Guess you just have to keep in mind that its a phone first, camcorder second. That's why you own a camcorder in the first place. You wouldn't expect your camcorder to get better calls than your phone would you?
Click to expand...
Click to collapse
I do agree that it is a phone first, but in todays world of digital everything it is nice to shed as much as you can and have an all in one device. I for one don't want to carry around a digital camera, camcorder and phone, so I picked the one that did the best of all three.
As for running out of memory there is a 32gig SD card option until someone can hack the codec to allow tweaking of the compression ratio, then again the CPU in the phone might not be able to keep up with the video being taken if it has to work to hard to compress the video more.
Not to hard to copy the files off the phone to your PC and covert away.
I believe I read that froyo firmwares record more efficiently in the MP4 container
oswade said:
I believe I read that froyo firmwares record more efficiently in the MP4 container
Click to expand...
Click to collapse
that doesn't really make any sense. the video doesn't get put into a final true container until its done recording, its just a temp file while its doing it, and video containers dont affect quality, just playback
I know what you mean, but I believe they improved the quality as well as changing the container.

[Q] Best video settings (balance of quality and size)

I've been trying to find information about this but I have been unable to yet (likely due to how new it is). I'm trying to find the best settings to re-encode my videos for a balance of quality and size.
Test the NT's video capability here:
http://forum.xda-developers.com/showthread.php?t=1348488
As for encoding specs, it's simple: conform to MP4 specs (H.264, AAC stereo) if you want to use built-in player and hardware accel.
Newbies tend to obsess with encoding parameters, and there've been reams of how-to's for Handbrake encoding. You don't have to bother with any of that. The 4430 should handle anything in 720p, and the majority of 1080p. I would use the default settings of whatever encoder you prefer.
For quickie conversion to MP4 (from common formats), see my VidsOpt script conversion in the above link.
Thank you for the information. And it's not so much worrying about all the settings but trying to maximize how many shows/movies I can hold on the NT at once. I travel a lot for work and some of the flights are LONG so having as many options as possible is what I'm really looking for since it wouldn't be as simple as just loading other videos onto the NT at the time.
Cozila said:
Thank you for the information. And it's not so much worrying about all the settings but trying to maximize how many shows/movies I can hold on the NT at once. I travel a lot for work and some of the flights are LONG so having as many options as possible is what I'm really looking for since it wouldn't be as simple as just loading other videos onto the NT at the time.
Click to expand...
Click to collapse
Get a 32 GB uSD card. I can hold 20+ hours of video on mine.
>to maximize how many shows/movies I can hold on the NT
There are two ways to lower a movie's size, reduce the resolution, or reduce the quality. Both are a personal preference.
A 90min movie averages 800MB-1GB, encoded at 480p and standard quality. Then, you can fit 32 such movies onto a 32GB uSD. With a larger res, you can fit fewer. You can also of course have more than one uSD card.
Getting ready for the Thanksgiving drive and saw this question, so did a test re-encode of Green Lantern. Original file is a 720p mkv
Video Bitrate: 720p (1280x536 @ 4811kbps)
Audio Bitrate: DTS @ 1509 kbps
Using Handbrake Normal as the baseline.
1) Container MP4, left extension as .m4v
2) Picture: changed Anamorphic to Loose, Width to 1024 (assumed native width was a good idea to reduce size)
3) Video: Video Codec x264 which means encode took about 50 minutes. Constant Quality 22
4) Audio: AAC Mixdown to Stereo, Samplerate Auto, Bitrate 160
5) Subtitles: need to play around with this later
Original mkv filesize was 5.7GB
.m4v file was 913MB
To me, it looked absolutely great. Could not complain and actions scenes didn't show any sign of stutter. Didn't watch the whole thing through, but didn't seem to come across any problems either.
I'm sticking with these settings and will see if there are any changes required.
I'm not a video encoding expert or a Handbrake expert - but I think I know enough and need at least 3-4 movies for the drive.
Hope that helps.
Thank you very much, I'm going to give those settings a try when I get home.
The settings are working great. So much that I actually put the setting into a preset file for anyone else that wants it in http://forum.xda-developers.com/showthread.php?t=1361819. Thank you very much for your help iron_c

any way to improve audio bitrate/Quality in videos recorded by mobile?

Hi I wanted to know if it is possible to improve to improve audio recorded during a video??
I mean I can record video at 720p 25 fps, but the DAMN audio gets recorded at 12 kbps!!
It's just tinny and annoying sound cuts up all the time.
So it is it possible to increase the bitrate of audio via modifying some system file or changing some parameters in phones hidden settings or something like that?? my phone is a Chinese Zopo PILOT ZP100. Thank you.
btw, When I use Sound / voice recorder, it records in 3gppp at high setting with 127 kbps AAC audio.
https://play.google.com/store/apps/details?id=rubberbigpepper.lgCamera&hl=el
some users with the same problem on other phones use this app with AMR_WB encoder selected and they reported a significant audio quality improved during video
Try it, it might work
Thanks mate. this actually CAN record high quality audio but the video even when selected to record at 30 fps , reciords at 10-11 fps, I guess its my Class-4 card...
Perhaps compare the data rate required to store video+audio data compared to audio data only, and also account for the lower transfer speed of a class 4 SD card compared to class 10. There might be other limitations as well - if a product is sold as a mid-range phone the picture quality may be deliberately downgraded compared to what the hardware is capable of. Samsung galaxy ace 832MHz arm CPU with class 10 SD card = 320 x 240 video recording
adrian816 said:
Perhaps compare the data rate required to store video+audio data compared to audio data only, and also account for the lower transfer speed of a class 4 SD card compared to class 10. There might be other limitations as well - if a product is sold as a mid-range phone the picture quality may be deliberately downgraded compared to what the hardware is capable of. Samsung galaxy ace 832MHz arm CPU with class 10 SD card = 320 x 240 video recording
Click to expand...
Click to collapse
when I use native app to record video, it records with bitrates of 11,000+ and 25 Fps! Just that audio is ****ty 12 kpbs!
With the lgcamera app as I reduce the video bitrate the fps goes up so I think it is a bandwidth issue only but then the native camera app can handle such high bitrates....!
Sent from my ZP100 using Tapatalk 2
try to find out what encoding is used for 720p in the stock camera app, and make sure it's the same in lgCamera.
with the wrong encoding settings your phone may fall back to software encoding, which is much less efficient.
my phone for example is capable of 30fps 1088p video recording, but using software encoding(hw en/decoding is broken in the rom i use) it can only reach 30fps on 480p, or 720p if i overclock.
thedicemaster said:
try to find out what encoding is used for 720p in the stock camera app, and make sure it's the same in lgCamera.
with the wrong encoding settings your phone may fall back to software encoding, which is much less efficient.
my phone for example is capable of 30fps 1088p video recording, but using software encoding(hw en/decoding is broken in the rom i use) it can only reach 30fps on 480p, or 720p if i overclock.
Click to expand...
Click to collapse
Don't know, I guess the free version is capped at 20 FPS cause no matter what parameters I set frame rate doesn't go past 20 FPS...
The default encoder for phone was H.263 in 3GP container. still it doesn't make any difference. I was thinking about editing the Media_profiles.xml in ETC folder but it's not even there!!
NHS2008 said:
Don't know, I guess the free version is capped at 20 FPS cause no matter what parameters I set frame rate doesn't go past 20 FPS...
The default encoder for phone was H.263 in 3GP container. still it doesn't make any difference. I was thinking about editing the Media_profiles.xml in ETC folder but it's not even there!!
Click to expand...
Click to collapse
Hello,
I have Zp200 and I have the same issue about audio quality... and Lg cam software does not work properly (sometimes close and lock the phone during record).
Do you have any new about how to change this bitrate?
Thanks, Caio.

[Q] Does your Xperia tablet Z play HFR (high frame rate) clips properly?

Hi
I have a Xperia tablet z with android 4.2.2 , with the latest mxplayer and armv7 neon codec pack installed. All default settings.
I have downloaded some HFR video files (60 fps, 48 fps etc) locally but I cannot play these hfr video clips. Example: The Hobbit trailer at 48fps.
Content from here: http://www.hfrmovies.com in the download examples section.
Anyone else have issues? The playback was choppy and many sections were cutoff.
Thanks for any help and advice...
Bumping...
me4tux said:
Hi
I have a Xperia tablet z with android 4.2.2 , with the latest mxplayer and armv7 neon codec pack installed. All default settings.
I have downloaded some HFR video files (60 fps, 48 fps etc) locally but I cannot play these hfr video clips. Example: The Hobbit trailer at 48fps.
Content from here: http://www.hfrmovies.com in the download examples section.
Anyone else have issues? The playback was choppy and many sections were cutoff.
Thanks for any help and advice...
Click to expand...
Click to collapse
Hello,
I was hoping somebody has to know something about this particular topic....
Can somebody help me?
Thanks.
me4tux said:
Hello,
I was hoping somebody has to know something about this particular topic....
Can somebody help me?
Thanks.
Click to expand...
Click to collapse
I have downloaded the video (An Unnexpected Journey, High Quality) and I will transfer them to my XTZ soon (internet speed isn't helping to stream) and give an feedback
The samples showing the 24 fps vs 60 fps runs smooth after the devices kinda buildthe cache for them. The video I mentioned earlier, skips quite a lot, the audio sometimes stops and comes back again later, and the video when isn't skipping, runs a bit in slow mo.
Felimenta97 said:
The samples showing the 24 fps vs 60 fps runs smooth after the devices kinda buildthe cache for them. The video I mentioned earlier, skips quite a lot, the audio sometimes stops and comes back again later, and the video when isn't skipping, runs a bit in slow mo.
Click to expand...
Click to collapse
That's the same kind of issues I am seeing.
I cannot tell if it was caused by hw limitations or the mxplayer. I did try to muck around with settings and found that sw decoding gave slightly better results.... not a whole lot better tho...
Which player are you using?
me4tux said:
That the same kind of issues I am seeing.
I cannot tell if it was caused by hw limitations or the mxplayer. I did try to muck around with settings and found that sw decoding gave slightly better results.... not a whole lot better tho...
Which player are you using?
Click to expand...
Click to collapse
MXPlayer also. Even the Sony movie app was able to reproduce well the short 60fps bike video I told you, but no luck with the movie trailer...
The best would be to ask someone with a S600 and S800 powered device to run those videos.
Sent from my SGP311 using Tapatalk

Categories

Resources