What settings is everyone using for their video encodes?
I'm not asking how to get it to work, but wondering whats the optimum settings people have found to balance quality and size.
I used to just hit iphone4 preset in handbrake or encodeHD @ 1500 bitrate, as my old phone had same res and couldn't handle hi profile. But our shiny new OneXs can handle hi profile and 720p.
i always use the highest quailty setting regardless of output file size
This page has some recommendation that sounds reasonable. (balance between quality and file size)
http://www.playbluraysoftware.com/?p=462
Format: .mp4
Video Settings
Codec: h264
Size: 1280*720
Bit Rate: 1,200 kbps
Frame Rate: 24fps
Audio Settings
Codec: aac
Sample Rate: 44,100 hz
Bit Rate: 128,000 bps
Channels: Stereo
Related
So I'm going on a trim over the weekend and I'm just wondering what to set everything for Converting a video.
.WMV is a no brainer for containers but what about the Audio & Video What should the BitRate and Sample rate be set as?
I left the Defaults and its sorta big...and needs to buffer ever 30-60 seconds
Current sets are:
Video:
.WMV
320x240 - 29.979FPS - Bitrate 4000Kbps
Audio:
Bit rate 198Kbps - Sample rate 48000Hz
Stereo
With that The video is great quality, and GREAT audio but kinda skippy
Also The phone:
3VO 3.00 - 6.5
Omap clock is 240Mhz
30.60MB left on Flash and Videos are stored on 2Gb Kodak SD with 19.75MB free.
Thanks guys.
There is quite a bit of data on this topic if you searched "bitrate" on the forum.
From [ http://forum.xda-developers.com/showthread.php?t=518749&highlight=bitrate ], I gather that the best way is :
timepassman said:
i encode them in avi using virtualdub or tmpgenc
bitrate 288, 2 pass encoding,
320x 240
for proper aspect ratio use this
http://andrew.hedges.name/experiments/aspect_ratio/
put source ratio, then put 320, get the 4th parameter !
Click to expand...
Click to collapse
From [ http://forum.xda-developers.com/showthread.php?t=419603&highlight=bitrate ], I gather that a good recommendation is :
Stylez said:
.mp4 is the best to use to recode good quality films for dash @ 320 x 240, just keep the bitrate low, mono sound about 92kbps will keep the size down.
You can use SUPER © http://www.erightsoft.com/SUPER.html it's free.
I use A-One FLV to AVI as i use it for YouTube but will encode any file to .mp4.
Click to expand...
Click to collapse
You could probably find more by searching (as I only skimmed the results). But these should help some.
Good Luck
Hi all,
There is a little bit in these forums about video players for the desire, all of which are a bit clunky (imho). I'd like to attack the problem from the other direction, and find the format and parameters for videos to play on the Desire using it's native app...
I have learnt that it can handle 3gp (mpeg-4).
There are two lines to follow here;
a) what are the best parameters (resolution, fps) for playback, and
b) what are the best recoders to get obtain these files.
thanks!
richard.
Handbrake settings that I use (and am pretty happy with):
Video:
* Video Codec: MPEG-4 (FFmpeg)
* Framerate (FPS): 23.976, 2 pass-encoding
* Quality -> Avg bitrate: 312
Audio:
* Mixdown: Stereo
* Bitrate: 48
I use xvid4psp for my encodes.
-mp4 h.264 base profile @L3.1
-resolution 800x480 max
-30 fps max, leave at original
-Constant rate factor 24.00
-max reference frames 3
-no cabac
-no b-frames
-audio 128kb aac-lc stereo
-Loudness filter Scan 10min volume 200%
Setting also work on other encoders exept for loudness filter
android doesn't support cabac,b-frames and 8x8 dct transform stuff, only baseline profile and some main profile features.
These setting give me a file size of about 220-250mb on a 350mb,42 min tv episode.
Hi all,
Is there any way to get AAC encoding working in Froyo? So it can be used for video recording?
Gary.
whatsisnametake2 said:
Hi all,
Is there any way to get AAC encoding working in Froyo? So it can be used for video recording?
Gary.
Click to expand...
Click to collapse
AAC stands for 'Advanced Audio Codec' and it is used to encode the audio stream in Froyo too. The bad news is that the codec settings in 2.2 where pushed too low and that's the reason the sound in video clips to be such low quality. I don't think that there is a way of changing the settings.
According to the media_profiles.xml file in system/bin, video recording actually uses amrnb codec for audio, which is a terribly low quality sound. From what I have been able to find out so far, AAC isn't actually enabled in Froyo at all. I tried editing the media_profiles file to enable AAC for video but it doesn't seem to make any difference...
This is what MediaInfo says about a video I shot while Gingerbread wasn't released yet.
Audio
ID : 2
Format : AAC
Format/Info : Advanced Audio Codec
Format version : Version 4
Format profile : LC
Codec ID : 40
Duration : 1mn 5s
Bit rate mode : Constant
Bit rate : 32.0 Kbps
Channel(s) : 1 channel
Channel positions : Front: C
Sampling rate : 8 000 Hz
Stream size : 253 KiB (0%)
Language : English
Encoded date : UTC 2011-02-07 11:14:03
Tagged date : UTC 2011-02-07 11:14:03
Click to expand...
Click to collapse
I don't know what it says in the xml files - the fact is that the files are encoded with aac but the settings are so low that the result is just terrible.
EDIT:
These are the settings from a video shot with Gingerbread:
Audio
ID : 1
Format : AAC
Format/Info : Advanced Audio Codec
Format version : Version 4
Format profile : LC
Codec ID : 40
Duration : 30s 441ms
Bit rate mode : Constant
Bit rate : 63.8 Kbps
Nominal bit rate : 96.0 Kbps
Channel(s) : 1 channel
Channel positions : Front: C
Sampling rate : 44.1 KHz
Stream size : 237 KiB (2%)
Title : SoundHandle
Language : English
Click to expand...
Click to collapse
As you can see both the bitrate and the sample rate are higher which results in better quality, but the codec is virtaly the same.
You're right
Thanks for that tkolev - very interesting. I guess I should have checked that myself first. You're quite right, it is indeed very low quality AAC.
So question is, how to change the AAC encoding settings in Froyo. Doesn't seem to be in that media profiles file, because AAC encoding isn't even mentioned in there...
whatsisnametake2 said:
Thanks for that tkolev - very interesting. I guess I should have checked that myself first. You're quite right, it is indeed very low quality AAC.
So question is, how to change the AAC encoding settings in Froyo. Doesn't seem to be in that media profiles file, because AAC encoding isn't even mentioned in there...
Click to expand...
Click to collapse
I don't think you can do that. Upgrade to GB is the only way I know of to get better sound in videos.
EDIT: Actually the stupidity of limiting the sample rate to 8 khz led me to believe that HTC used a microphone with a very low frequency response because that's the only logical reason they might have in using such low settings. Fortunately this is not the case.
Sent from my Desire HD using XDA App
LGCamera
Just as an update to this. I found the solution to the sound quality problem in video in froyo roms. A camera app called LGCamera. You can set everything the way you want it, including bitrate for the video, and file format (eg MP4 rather than 3gp), and also crucially AAC sample rate and bitrate for audio. Very nice. Video quality seems to be at least as good as stock app, possibly slightly better. This is at 8mb bitrate, haven't tried the higher bitrates yet....
does aac work on lgcamera on froyo?
I have a issue with the video recorder in CM7. I had this in RC1v2 and also in latest nightly, don't know in versions before that.
I can't use the high and youtube resolution setting. I can select them, but when I press the record button nothing happens. The other settings, for example wide, do work.
Is this normal? If not is there a sollution to solve this?
I installed Nordic rom and reinstalled CM7 latest nightly, that didn't solve my issues.
However changing the frame rate for the encoder profiles (in media_profiles.xml) to 24 did. (this was a suggestion in the developers forum). Now I can use all resolution settings.
My defy has red lens.
During testing I also noticed that the standard bitrate for the high and wide recording setting are really high.
For a 640x480 (high) mp4 video it is 10000 kb/s
For a 848x480 (wide) mp4 video it is 8000kb/s
This a lot higher then most good looking xvid 720p movies I have , which are around 2000 kb/s.
I now use 1300 kb/s (high) and 1500 kb/s (wide) which seems to give usable results but with a lot smaller videos.
Which settings do other people use/suggest?
Try the newest LG Cam (free) from market an set it to these parameters:
video resolution: 848x480
video encoder: mpeg4
video file format: mpeg4
video bitrate: 8
video framrate:24
audio encoder: ACC
audio samplerate: 44100
audio bitrate: 62900
and check force autofocus before capture
This works great on mey Defy (red lense)!
After much experimentation, I have found that the epic prefers 5:3 aspect ratio. If you want the maximum in clarity and optimized file size for your videos, here are the settings I came up with. Adding more to either bitrate wont help the quality.
Customized MP4 Movie (*.mp4) template in Freemake
Video Code: MPEG4 (NOT h.264 or x264)
Frame Size: 1000x600 (5:3 ratio)
Video Bitrate: 1280
Video framerate: 24
Encode Passes: 2
Audio Codec: AAC
Audio Bitrate: 160
Sample rate: 44100
Audio Channels: 2
Disable Audio: No
A/V Sync: Default
These settings work great on my Arnova 10b (Capacitive) and my Touchpad. They would also work great in an iPad or XBOX. I used the high resolution to fill the screen of my Arnova without stretching. It works fine on my Epic.
Here the question: Why 5:3? Any other aspect ratio does not actually fill the screen. If you make a 800x600 (4:3) video, you will find that the player does not actually fill the screen. Thoughts?
The screen resolution is 800x480, which is 5:3...
Just make the video 800x480, and it won't have to do any scaling.
Interesting. Gonna check my videos and see what res I have them in, because they look awesome as it is.
LunaticWolf said:
The screen resolution is 800x480, which is 5:3...
Just make the video 800x480, and it won't have to do any scaling.
Click to expand...
Click to collapse
I did that resolution... It worked great for my epic.. I settled on the resolution I used because it worked awesome on all my devices.. even my touchpad. The cost in file size is almost nothing between the two resolutions.
Ok, I have a 720p video.. it looks amazing at its normal resolution of 1280x720.. no cropping that I can notice..
I'm an editor by trade.
What you're looking for is H.264 in .mp4. I tend to go for a video bitrate that hangs out around 1.5mbps and AAC stereo audio at 160kbps, 44.1kHz. There are quite a few artifacts in the shadows, but for watching a movie on an airplane it'll suffice.
The key to both a sharp picture and long battery life is to properly prepare the video. When your video is under or over 800px wide the Epic has to perform scaling to make it fill the screen (or sacrifice filling the screen if it is under). This scaling is an additional calculation it must perform, which hits the battery, and is a transformation on a lossy codec - a quality killer. If you have the render power (48 i7 cores and segmented processing makes for fast work) you can always hit it with mild sharpening for that extra pop.
Export your video at 800 pixels wide by whatever makes the correct aspect ratio. It's a bit of simple algebra, set up a proportion, cross-multiply, divide, and bang.
ex:
(1280/720)=(800/x)
1280x=720*800
1280x=576,000
x=450
800x450 <-- use this for any 16x9 broadcasts
(1.85/1)=(800/x)
1.85x=800
x=432
800x432 <-- use this for movies presented in 1.85:1, 2.35:1, and 2.40:1.
If it's 4x3 export at 640x480.
I just scale up to 4k. Looks pretty good =D