[Guide] Optimal Blu-Ray Setting Using Handbrake - Vibrant General

My original post:
http://forum.xda-developers.com/showthread.php?t=1474765
Sources:
TGA_Gunnman
http://forum.xda-developers.com/showthread.php?t=729094
acmilancrazy (not a XDA member)
http://www.youtube.com/watch?v=z1l1P7ALnwY
Please read and watch the above links to have an understanding of what your actually going to do.
This little guide will basically rip your BD to HD mp4 using h.264 and aac as codecs playable on our vibrants, and future mobile devices using 1280x720 resolution.
Step I:
1. Launch Handbrake
2. In the menu on the right-hand side, select the iPod Legacy preset
3. Select your video source by clicking on the Source dropdown menu
4. Select the destination and name for the file once it has been converted (both the .mp4 and .m4v extension work for Android)
5. Confirm that the container is set to MP4 File and that Large file size, Web optimized, and iPod 5G support are unchecked
Step II:
Picture Tab:
1. Keep Aspect Ratio Checked
2. Depending on the source BD or DVD keep the width and height compatible with the resolution of device.
3. Anamorphic “none”
4. Modulus “16”
5. For BD cropping the letterbox keep automatic checked "I really dont mind the letter box".
6. To Actually get the 1280x720 in the height and width go to cropping. Change the top, bottom, left and right to 0. Then go to size and adjust accordingly. You will have letterbox though.
Step III:
Video Tab:
1. Set Handbrake's encoding settings by clicking on the Video tab
2. Confirm the Video Codec is set as H.264 (x264)
3. Framerate (FPS) should be set to Same as source
4. For BD check Target Size and change it to 2999 (MB).
Step IV:
Video Filter Tab:
1. Don't do anything here.
Step IV: Adjust audio settings
1. Set Handbrake's audio settings by clicking on the Audio tab
2. Confirm the Audio Codec is AAC (faac)
3. Mixdown should be set to Stereo.
4. Change the Samplerate to 48
5. Change the Bitrate to 160
Advanced Tab:
This will Be the biggest difference from TGA_Gunnmans' post
Encoding:
1. Reference Frames “3”
2. Maximum B-Frames “3”
3. CABAC Entropy Coding “Checked”
4. 8x8 Transform “Checked”
5. Weighted P-Frames “Checked”
6. Pyramidal B-Frames “Default (normal)”
Psychovisual:
1. No DCT-Decimate “Un-Checked”
Analysis:
1. Adaptive B-Frames “Optimal”
2. Adaptive Direct Mode “Automatic”
3. Motion Estimation Method “Uneven Multi-Hexagon”
4. Subpixel ME & Mode Decision “Default (7)”
5. Motion Estimation Range “24”
6. Adaptive Quantization Strength “Slider in Middle”
7. Psychovisual Rate Distortion “Slider in Middle”
8. Psychovisual Rate Distortion “Slider all the way to the Left”
9. Partition Type “All”
10. Trellis “Encoded Only”
11. Deblocking “Both boxes Default (0)”
Step IV: Save as a preset for future use
1. Click on the Presets menu and select New Preset
2. Enter Mobile DVD or Mobile BD in the dialog box and click Add
3. "Mobile DVD or BD" will now be saved as a preset and listed on the right hand side in Handbrake to be used in the future
Step V: Convert the video and copy to your Mobile Device
Some people may be using different settings and thats fine. But these settings for me produce a smooth, stutter free experience even underclocked at 800MHz.
I Have also no problems with the file size playing under 3GB.
WARNING!!!
Depending on your own computer this conversion can take a VERY LONG TIME. I have an intel i7 920 with 12gb ram and a 2 hr. movie took 2 hrs. to convert.

Related

Encoding MKV Files for the Droid X

Hello everyone,
I have seen a number of different posts about the best settings to encode videos for the Droid X, and I have found a method that I am extremely happy with. I use these settings to encode HD MKV files for playback on the Droid X. These encodings play without a hitch, and only suffer slight sync issues that occur when changing volume, and skipping forwards/backwards into the video. This is not a huge problem, as the sync issues only last for 1-2 seconds maximum. I have tested a large variety of Video players, and I have found that RockPlayer offers the smoothest playback available (in my experience). These settings will also work for many other file types, just make sure your Source resolution is higher than that of your output and you will be pleased!
Software Required: MediaCoder (Free, can be downloaded HERE)
Settings
Video Tab:
Format: H.264
Mode: Constant Bitrate (1400)
Source: Auto Select
Encoder: Auto Select (If your video card supports CUDA, select CUDA Encoder for faster encoding).
x264 Tab (On the right when selecting the Video Tab):
Profile: Baseline (This is extremely important!)
Sound Tab:
Encoder: FAAC
Format: LC-AAC
Average Bitrate: 160
MPEG Version: MPEG4
Container: AAC
Container Tab:
Container: MP4
Picture Tab:
Resize: 848x480
Aspect Ratio: Keep Display AR
Crop: Disabled
Frame Rate: 25
Effects: Filter by Encoder
I hope these settings will come in handy for others. I have spent a lot of time testing different settings and Encoders, but I can honestly say I have gotten the best results using these!
Let me know how these settings work for you, I hope some of you can help me find a video player that will not show any issues when changing volume and skipping forward/backwards through videos.

VidsOpt v0.2.4 - Fast MP4 Muxer/Converter

{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
VidsOpt_0.2.4.rar (16.3MB) http://mediafire.com/?depxt4zyvpwel
2MP4 - Windows script to convert/remux videos to MP4. Subtitles are supported in both hard and soft formats.
Goals
. Fast - Re-encode only when needed. Selectable encoding speed.
. Flexible - Process multiple folders as well as single videos.
. Set-n-forget - Batch and nested folder processing.
. Simple - Drag-drop operation. One plain-English menu.
Supported video formats: MKV MP4 M4V MOV WMV AVI MPEG1 MPEG2 FLV RM RMVB OGM
Install
. AVISynth (http://sourceforge.net/projects/avisynth2)
. FFDShow (http://videohelp.com/tools/ffdshow), enable AC3/DTS/AAC support in Audio Decoder Config
. Haali Splitter (http://haali.su/mkv)
Use
1. Unpack. Create shortcut to 2MP4.CMD on desktop (don't drag it to the desktop).
2. Drag-drop one or more video files and/or folders onto shortcut.
3. Change settings from pop-up menu as needed. Enter 'S' to start.
Script Options
. Recode H.264 video
AUTO: H.264 video up to 720p high profile and 1080p baseline profile are not recoded. YES: Always recode H.264. NO: Never recode H.264. Note: Non-H.264 videos are always recoded.
. Video quality (19-25, lower number=higher quality/bitrate, default=21)
The default 21 should be the considered as max for Tegra 2 tablets at 720p. There may be stutter in some 720p high action scenes. Suggested setting for Tegra 2 is 22 for 720p high-action movies. SD-sized movies have more leeway and can use 21 or better.
. Video type (LIVE/cartoon/mixed)
The encoder has different tunings for live-action videos and cel-shaded animations (animes). For cel-shaded content, use the Cartoon setting. For any other content, including 3D animations (which most current animated movies are), use Live. If you are converting a batch of live-action & cartoons, use Mixed.
. H.264 profile (HIGH/main/baseline)
High has best compression efficiency but higher playback requirement. Baseline has low playback requirement, but size will be 10-20% larger than High. Use Baseline as last resort for smooth playback. Main is between High and Baseline with respect to size and playback smoothness.
. Encode speed (VERYFAST..veryslow)
Suggested use is MEDIUM for best compromise between speed and quality, VERYFAST for mobile viewing, and VERYSLOW if you have lots of time. There are also intervening settings to taste. Details: VeryFast is twice as fast as Medium, but quality can be slightly worse depending on content. VerySlow has the same quality as Medium at about 10-20% smaller size, but takes 5 times longer. Do not use VerySlow for mobile devices, as higher compression settings may affect playback smoothness.
. Maximize audio volume
Maximizes audio volume without clipping. Enable this if audio is too quiet.
. Burn-in subtitle (Advanced Option)
By default, script extracts any embedded subtitles to external standalone files. If this option is enabled, the script will take the first eligible subtitle and burn it into the video. Subs can be of SRT, ASS, SSA, or VobSub (bitmap) format. Video recoding is mandatory. Subtitle is selected in this order: external, PrefLang embed, AltLang embed, or no-tag embed. If there are multiple eligible subtitles and you want one different from that selected, remux using MKVToolnix (see Notes below) and remove all except the desired subtitle.
. Autocropping (Advanced Option)
Crop black bars if exist. This uses a less efficient method, so enable only when needed.
. Variable framerate encoding (Advanced Option)
The script encodes in constant framerate (CFR) by default. Some videos (animes/hybrid/rmvb) use variable framerate (VFR). If a VFR video is recoded, enable this option, else audio will be out-of-sync (OOS). There's no foolproof way to determine if a video is VFR in advance, so if video is recoded and sound is OOS, enable this setting and try again. Note: This setting only matters when video is recoded. If video is only remuxed, correct framerate is always retained.
Notes
. Audio and subtitle tracks are selected by their language ID. Default is English for both preferred and alternate language. To change, edit 'PrefLang=eng' & 'AltLang=eng' settings in script. Find your language country code here (http://loc.gov/standards/iso639-2/php/code_list.php). ISO 639-2 3-letter code is used. Where there are 2 codes available, use the "B" (bibliographic) code.
. Text (SRT/ASS/SSA) subtitles are selected in this priority: external sub file, embedded sub in preferred language, embedded sub in alt language, embedded sub w/o language tag. Once a sub is found, then lower priority subs are ignored. Note: Any attachment in a MKV (font embeds, cover art, chapters) are also extracted for future use.
. Audio track selection: If a subtitle is available, the first audio track is selected. If no subtitle, then a PrefLang audio track is selected if available, else an AltLang audio is selected. If no Pref/AltLang audio and no sub are available, the first audio track is simply selected. [Note: If audio track has no language tag, the 1st track is selected.] The intent here is that subs are preferable to dubs.
. To manually select a different audio track: Remux to MKV (see below); uncheck undesired audio tracks to make new copy with only the desired audio track. Drop the newly-muxed copy onto the script.
. The number of items that can be batch selected at one time is limited. If processing 20+ files, put them into a folder and drop the folder. Multiple folders can be dropped.
. Video encoder used is 32-bit x264cli, which runs on both 32- and 64-bit systems. To get 10-15% more encoding speed on 64-bit systems, get the 64-bit x264.exe from http://x264.nl and copy over the existing executable.
. The script relies on the host system to provide format splitter and audio codec support.
- [XP and Vista only] To convert MOV/M4V, install QT Lite (http://free-codecs.com/download/QT_Lite.htm).
- To convert FLV, install FLV splitter (http://videohelp.com/tools/FLV_Splitter), and enable FLV decode in FFDShow video decoding options.
- To convert RM/RMVB, install Real Alternative (http://afterdawn.com/software/audio_video/media_players/real_alternative.cfm).
. Remuxing to MKV: Many file formats can be quickly converted to MKV container before being fed to the script, which can solve many problems. To remux to MKV: Run MMG.EXE in \MKVTOOLNIX folder, drag-drop video onto app, click 'Start Muxing'.
Changelog
0.2.4
. Add autocropping
. Bug fixes & refinements
FAQ
Q #1: How long does it take to convert to MP4?
For a simple remux, seconds. For audio-only recoding, about 15X (1min processing per 15min run-time). For both audio & video recoding, between 1-5X, depending on host PC and input/output resolutions.
Q #2: The script ran for a bit and disappeared.
It crashed. A common reason is that the filename has special characters: exclamation point (!), ampersand (&), or carot (^), among others. Temporarily rename using simple alphanumeric characters. Note: Script is designed to handle Unicode (UTF-8) characters.
Q #3: It still doesn't work!
The majority of problem videos stem from the weird muxers used to create them. A possible solution is to remux the video to MKV (even if they're already in MKV) if possible. Run MMG.EXE in \MKVTOOLNIX folder, drag-drop video onto app, click 'Start Muxing'. The MKVToolnix app can remux many common formats to MKV.
Q #4: Still no joy!
Drop the video on the script and select the 'View Specs' option, then Start. This will dump the video specs into a text file. Post the specs dump, along with whatever error msgs you encountered (or if the console crashes and simply disappears). As a last resort, post a sample clip of the video.
Q #5: What are the best settings for the [insert device name]? My converted videos don't play smoothly!
The on-demand CPU governor for Android may not be optimal for playback. You can manually set CPU speed for movie playback per this discussion thread, http://forum.xda-developers.com/showthread.php?t=1111156
By default, the script does not recode H.264 720p high profile or 1080p baseline profile. If your device can't play a video smoothly after trying the above, then you need to recode it (see TIPS section below).
Q #6: My videos convert, but the sound is out-of-sync (OOS), or playback is too fast/slow.
Some animes, digicams, and hybrid contents use variable framerate (VFR). The script encodes in constant framerate (CFR) by default. If audio is OOS, enable VFR encoding in Advanced Options. VFR encoding is automatically enabled for RM/RMVB videos.
There may be other OOS instances. VFR aside, many videos are simply badly created, and require specific workarounds that lie outside the scope of the script.
Q #7: My video has 10 subtitle tracks. Why doesn't the script extract them all?
Only subtitles in the designated preferred or alternate language are extracted. Only text subtitles (SRT/ASS/SSA) are extracted.
The script can process up to 8 sub tracks. If the desired sub tracks lie outside of this range, remux to MKV (cf. Q #3), and remove extraneous tracks beforehand.
Q #8: The sub doesn't show up in playback!
Check your media player to see if it can make use of external subs; some do. Don't forget to rename the sub track to be the same as the video.
Q #9: The ASS/SSA sub doesn't display properly (or not at all).
Some Android players support external ASS/SSA subs. But if the sub requires an embedded font and there isn't a system font substitute, characters will display as blocks. The script extracts embedded fonts, but current players cannot make use of them. A workaround is to enable subtitle burn-in from Advanced Options.
Q #10: I'm confused with how the audio and subtitle tracks are chosen.
If a subtitle in the designated preferred/alternate language is available, the first audio track is selected, as it's preferable for foreign-language videos to be subbed than dubbed. If the first audio track is in a different language than the pref/alt settings, and no subs are available, then a dubbed track is selected if available. The script can process up to three audio tracks.
Q #11: I changed the default output path, but the output never shows up there!
Do not put quotes around the path. Also, if the path has special characters like exclamation point (!), ampersand (&), or carot (^), among others, the script will get confused. Stick to basic alphanumeric characters. This applies to filenames as well.
Q #12: Can I use this script to convert my DVD/Blu-ray?
The script does not process DVD (IFO/VOB) or Blu-ray (M2TS) files. You can try my DVD script here, http://forum.xda-developers.com/showthread.php?t=978529
Q #13: I'm running Win XP/Vista, how do I get WMP 11 to recognize my MP4 so I can stream to my device?
Win XP & Vista require a registry patch for WMP 11 to recognize MP4. Win7 supports MP4 format natively.
32-bit: http://hardcoreware.net/files/v8-WMP11-MP4-M4V-M4A.reg
64-bit: http://hardcoreware.net/files/v8-WMP11-MP4-M4V-M4A-x64.reg
TIPS:
. Tegra 2 on Android 3.1: If playback isn't smooth, set Recode=YES. Suggested settings are Quality 22, High profile, and VeryFast or Medium speed. To ensure smooth playback, you can try Quality 23, or Baseline profile, or a smaller resolution, or a combination thereof.
. If running 64-bit Windows, grab the 64-bit x264.exe executable at (http://x264.nl) and copy over the existing file (get the 8bit-depth exe, not the 10bit one). This'll net 10-15% faster speed.
. Don't use a video quality number lower than the default (lower number means higher bitrate), unless you are sure you can see the difference. Higher bitrate means higher playback requirement, which can result in playback stutter. 21 is a good default; you can also try 22 or 23.
. If there are many videos to convert, especially if video recoding is involved, put them all in a folder and drop the folder onto the script. Let the script run overnight.
TECH NOTES:
. For most operations, the script is self-contained, ie it uses ffmpeg and doesn't require the installed software packages. Two exceptions: a) RM/RMVB isn't supported by ffmpeg and uses DirectShow; b) audio tracks w/ 7+ channels can't be downmixed by ffmpeg, and also uses DirectShow.
Uploaded...
How to make it start?
i have already installed AVISynth and FFDShow .
But when i click on XYZ2MP4.CMD shortcut created on Desktop it shows black screen with written-" cannot locate AVISynth.If not already installed get at ******.
Else reinstall to default location"
What it means? What m i doing wrong?
The script checks for the location of the AVISynth uninstall.exe in C:\Program Files\AVISynth\ for 32-bit systems, or C:\Program Files (x86)\AVISynth\ for 64-bit systems. It reads the env variable to determine the location of the Program Files folder.
Navigate to this location and see if the Uninstall.exe file exists. If you run a non-English version of Windows, the pathnames may be different (although it should've been accounted for).
I had the same issue as techpal above.
I think there is a problem in where it searches for AVIsynth. The default installation folder is "AviSynth 2.5" in the program files folder. The XYZ2MP4.cmd file seems to search for "AVISynth" in the program files folder. I edited the cmd to look for "AVISynth 2.5" and it worked after that.
Here's the new line (line 102 in the original):
if defined ProgramFiles(x86) (set "AVSDir=%ProgramFiles(x86)%\AVISynth 2.5") else set "AVSDir=%ProgramFiles%\AVISynth 2.5"
Click to expand...
Click to collapse
Thanks for the correction. Script is updated.
Ya ewcrider is right.
Yea, I just changed the folder name to just "AviSynth".
I prefer GUI because I sure as hell dont have a deep knowledge of audio/video codecs/filters.
uh I have a problem after I made my video into a .mkv. The script gives me a error about the audio stream. I would upload a sample but I can't right now because of my extremely slow upload speed.
General
Unique ID : 227734697504464257626122901304819126136 (0xAB541B79FA49352584C7944A89550F78)
Complete name : C:\Users\Kippui\DOWNLO~1\Lie.To.Me.E03.110516.HDTV.X264.720p-HANrel.mkv
Format : Matroska
File size : 1.53 GiB
Duration : 1h 4mn
Overall bit rate : 3 411 Kbps
Encoded date : UTC 2011-05-30 19:33:18
Writing application : mkvmerge v4.8.0 ('I Got The...') built on May 24 2011 03:12:58
Writing library : libebml v1.2.0 + libmatroska v1.1.0
Video
ID : 1
Format : AVC
Format/Info : Advanced Video Codec
Format profile : [email protected]
Format settings, CABAC : Yes
Format settings, ReFrames : 2 frames
Muxing mode : Header stripping
Codec ID : V_MPEG4/ISO/AVC
Duration : 1h 4mn
Bit rate : 3 000 Kbps
Width : 1 280 pixels
Height : 720 pixels
Display aspect ratio : 16:9
Frame rate : 29.970 fps
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Bits/(Pixel*Frame) : 0.109
Stream size : 1.32 GiB (87%)
Writing library : x264 core 50 svn-569
Encoding settings : cabac=1 / ref=1 / deblock=1:0:0 / analyse=0x3:0x113 / me=hex / subme=5 / brdo=0 / mixed_ref=0 / me_range=16 / chroma_me=1 / trellis=1 / 8x8dct=1 / cqm=0 / chroma_qp_offset=0 / slices=1 / nr=0 / decimate=1 / bframes=2 / b_pyramid=0 / b_adapt=1 / b_bias=0 / direct=2 / wpredb=1 / bime=0 / keyint=250 / keyint_min=25 / scenecut=40 / rc=abr / bitrate=3000 / ratetol=1.0 / rceq='blurCplx^(1-qComp)' / qcomp=0.60 / qpmin=10 / qpmax=51 / qpstep=4 / ip_ratio=1.40 / pb_ratio=1.30
Audio
ID : 2
Format : AC-3
Format/Info : Audio Coding 3
Mode extension : CM (complete main)
Muxing mode : Header stripping
Codec ID : A_AC3
Duration : 1h 4mn
Bit rate mode : Constant
Bit rate : 384 Kbps
Channel(s) : 2 channels
Channel positions : Front: L R
Sampling rate : 48.0 KHz
Bit depth : 16 bits
Compression mode : Lossy
Delay relative to video : 24ms
Stream size : 176 MiB (11%)
Make sure AC3/DTS/ACC support is enabled in the FFDShow Audio Decoder Option. By default they may be turned off. The script relies on DirectShow filter support to convert any audio. Restart your system to make sure.
To find out if your system supports AC3/DTS, try the sample here on the Windows Media Player (not VLC or a player with built-in codecs).
http://www.kellyindustries.com/sounds.html
Try renaming your filename to Test.mkv, and see if the filename is a problem.
I replicated your problem. You can't just rename "AVISynth 2.5" to "AVISynth", because the program was installed to the first path, not the second. Change it back to "AVISynth 2.5", and grab the 0.1.1 updated script.
Still i cant start. When i click on .CMD file on desktop black screen comes for a fraction of second and then goes awayand then nothing happens.
You don't click on the CMD script. You need to drag-drop a movie file or folder onto it. Without input (or a valid input), the script simply closes.
Ok now i made it to start by dragging files. But it gives error about cant find Audio Stream.
e.mote said:
I replicated your problem. You can't just rename "AVISynth 2.5" to "AVISynth", because the program was installed to the first path, not the second. Change it back to "AVISynth 2.5", and grab the 0.1.1 updated script.
Click to expand...
Click to collapse
YES thank you! I love you for this because I can't get handbrake to work for some reason. Finally I have a way to quickly get my 720p files working on my xoom
I had to actually reinstall it to get the script to work because renaming it back didn't work for me.
Edit: Techpal reinstall AvySynth if you renamed it because that did it for me
Thanks for the positive report. What type/size of videos are you converting, and how long do they take to convert on your system? The script should report the time lapsed per file processed. I like to get feedback on the execution speed for various operations.
e.mote said:
Thanks for the positive report. What type/size of videos are you converting, and how long do they take to convert on your system? The script should report the time lapsed per file processed. I like to get feedback on the execution speed for various operations.
Click to expand...
Click to collapse
I X'd out of the window but my orginal file is the same one that is posted above
it took 5-6 minutes(guesstimate?), i converted the same file I posted earlier above using default settings. I'm converting the same file again trying to get slightly better video quality(19 instead of 21)
what settings do I need for the BEST quality for xoom 3.1? Should I keep it high and not main/baseline?
Test 1: 4:19 with everything default except for 19 instead of 21
Test 2: 6:11 ^^ just the next episode from the first file
Installed again but stlll shows error that cant find audio stream, could not parse WAV file.
The high/main/baseline is only if the video is recoded, which yours wasn't. On Recode=AUTO, it doesn't recode the video for 720p H.264, or 1080p baseline profile. Only the audio is recoded to stereo AAC (from your video's stereo AC3).
The best quality is when you don't have to recode the video. Only recode the video (Recode=YES) if it can't be played smoothly on the Xoom. Video recoding takes substantially longer.
Read the FAQ for further tips on recoding. Stick with High or Main. Use Baseline as a last resort. These don't affect quality. Baseline is more playable, but has larger file size.
e.mote said:
The high/main/baseline is only if the video is recoded, which yours wasn't. On Recode=AUTO, it doesn't recode the video for 720p H.264, or 1080p baseline profile. Only the audio is recoded to stereo AAC (from your video's stereo AC3).
The best quality is when you don't have to recode the video. Only recode the video (Recode=YES) if it can't be played smoothly on the Xoom. Video recoding takes substantially longer.
Read the FAQ for further tips on recoding. Stick with High or Main. Use Baseline as a last resort. These don't affect quality. Baseline is more playable, but has larger file size.
Click to expand...
Click to collapse
oh ok thanks
going to do more videos

[Q] Handbrake settings for video encoding

Hi All,
I started using Handbrake to encode movies lately. Using the default settings, playback is Ok on the Nexus S albeit I think the default bit-rate is a tad too high as playback is slightly choppy.
If you use Handbrake [1], what settings did you tweak to adjust the frame rate for DVD encoding?
[1] http://handbrake.fr/
WWW.mirovideoconverter.com does a good job but can only do one at a time. You would want the nexus one preset.
As for handbrake, video bitrate should be 1500-2000, framerate same as source, two pass encoding not Turbo first pass. In audio, downmix to stereo, 48k sample rate (if master is DVD or blueray), 160+ bitrate. Advanced, uncheck cabac. Settings on top (I forgot the name), no resizing in anamorphic, auto crop, and deinterlacing slow. As for preset, I didn't use one I think. Cabac must be off or it requires more CPU to decode and causes studdering on smaller CPU devices. 48khz sampling rate for audio is important for DVD or blue ray masters or you'll lose audio/video sync the longer the video is. After encoding, rename the file extension to mp4.
This is from memory so the words might not be exact.

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

[GUIDE] U8800(all versions) Best Encoding Settings For Video Playback

Hello there guys!
Today I'm gonna share my encoding settings that I think are the best for movie/tv-show/anime watching on ideos x5(pro/non-pro) screen.
Note: Encoding is a very heavy task for a computer. Make sure that you computer has at least 2 CPU cores and 2 gb of RAM before proceeding.
For example I have an Intel Core 2 Quad Q9300 (4 cores at 2,5 GHz),4gb RAM and Win7 x64. Re-enconding 20 minutes of anime/movie takes about 5 to 7 minutes. Output file size is about 160-180 MB.
Anyway.Let's get started!
-----------------------------
1) Download a program called HandBrake. You can get it here:http://handbrake.fr/downloads.php
Note: If you have 64bit OS get the 64bit version of the program,as this will greatly speed up the encoding progress.
2) Install HandBrake(hope you know how to do it ).
3) Run HandBrake
Note: In Windows in case it shows up an error when trying to run it, try running it as admin.
4) Find a movie/tv-show/anime file to re-encode + proper sub suitable for your needs
5) Take a break here and get ready for the hard part
----------------------------------------------------------------------------
1) Click the Source icon located in top left corner in HandBrake interface. Press select video file (I won't do a source->folder example since it's pretty much the same.)
Select your video file. Usually the extension of your video file will be something like .avi .mp4 .m4v .mkv etc.
2) Now in Output Settings (Preset: Normal) make sure that Container: is set to MP4 File
Now click the browse button located a little bit above and right and give a name and location to your output file
The hard part really starts here...
3) In Picture Tab set Anamorphic: to None
See how Width and Height changed and you can now edit their values?
Now change Width: to 800 and Height: to 480 (that's x5(all versions) screen resolution)
Make sure Keep Aspect Ratio is UN-CHECKED
4) Switch to Video tab (leave Video Filters Tab as is)
Set Video Codec: to MPEG-4 (FFmpeg)
Framerate (FPS): Same as source (leave as is)
Constant/Variable Framerate don't make a difference to me but feel free messing around with these options if you want to.I just leave the default one(variable) selected
Now in Quality select Avg Bitrate (kbps):
Enter a value here from 850 to 950. The higher the value the better. I use 920 which I find very good. The only difference here is that in dark scenes higer values will give a better image,where lower values (i.e. 850) will make the image look a little "pixelated-like". Increase it even further (i.e. 1000-1150) if you are not satisfied with the result in your phone's screen.
5) Switch to Audio Tab
Remove any audio tracks you don't want by selecting them from the drop down menu and pressing remove in order to save up space
Now select the audio track you want to keep.
Change Audio Codec to AAC (ffmpeg) (2nd dropdown menu)
Change Mixdown to Stereo (3rd dropdown menu)
Leave the rest as is
6) Switch to Subtitles Tab
If you don't want any sub simply remove any sub track like you removed the audio track previously.
If your video file includes a sub stream(usually .mkv files have one) that you want to use for sure,select it from the track list and check forced only, burned in(This will hardcode the sub into the image.You won't be able to remove the sub after that.If you don't want that,then just remove the check from this checkbox) and finally check default.
If your video file has no sub track/stream but you have a working .srt or .sub file then continue reading.
7) Chapters Tab is useful for some people. I just just un-tick create chapter markers.
In advanced I dont' enter anything
8) Switch back to picture tab and revise your settings (also do this in video,audio and subtitles tab).
Correct any mistakes.
When you are ready press the Start Button located next to the Source Button you used to load your movie.
Encoding should start. Your pc may stop responding fast during re-encoding of your video file.That's normal. Just wait for it to finish.
After encoding finished test your re-encoded video in your computer to test if it is as you want it (in terms of video/audio quality and subs). Well you can't tell much about the video quality by viewing the video in your computer because image will be stretched to fit computer's screen resolution.
9) Now copy your re-encoded video file to your phone's sd card.Better make a folder called movie or something. Paste the movie there. Place any additional .srt subs you may have here.
Download MX Player from PlayStore. Install it.
Open MX Player and load your video. Make sure HW Decoder is in use. Load any sub stream you may have.
10) Turn your phone into landscape view and Enjoy!
-----------------------------------------------------------
Well,that's it!
I hope my settings will proove useful for some users who want to use their phone more like a media center device.
Don't forget to click thanks if this helped you and also comment That means a lot to me!
If you disagree with some part of the guide,have another opinion/solution then feel free to comment and make this guide even better.
Cheers!
Guide is well written but why re-encode?
The only reason in my opinion is the free space, since our phone can play standard definition (didn't try HD) videos with srt subtitles (software decoded). If it is a space problem go with a bigger SD card re-encoding will cost in time...
Also keep in mind that any re-encode from a lossy codec to a lossy codec will cause loss of quality (even when re-encoding at the same bitrate/specs)
priestx said:
Guide is well written but why re-encode?
The only reason in my opinion is the free space, since our phone can play standard definition (didn't try HD) videos with srt subtitles (software decoded). If it is a space problem go with a bigger SD card re-encoding will cost in time...
Also keep in mind that any re-encode from a lossy codec to a lossy codec will cause loss of quality (even when re-encoding at the same bitrate/specs)
Click to expand...
Click to collapse
By re-encoding to a lower resolution it may use less cpu power to decode it, and therefore less battery (could be wrong though, this may not be that noticeable).
But yes, our phone can even play HD videos (they seem to have a low framerate on my phone, but I think it is related to a slow sd card).
@priestx
Well to tell the truth I don't do it for the free space.
I watch a lot of anime but there all in .mkv format with softcoded subs at 720p resolution and a high bitrate (1200kbps avg).
Trust me you can't watch this even with hardware decoder.It's laggy. Of course software decoder served me quite well some times but that was for easier to handle videos(like standard avi files).
You are absolutely right saying that re-encoding costs in video quality and time,but I think it worths re-encoding in some special occasions you want to watch something somewhere else apart from your computer and u8800 specs fail to playback the video correctly. Also due to screen's size it's not very easy to spot quality drop ,but only in special scenes. The advantage of re-encoding to me is that I can use hw decoder no matter if I am in 2.3 or aurora and get proper video playback.If I don't re-encode usually I won't have a hw decoder option in 2.3 and in aurora playback will be laggy sometimes even with hw decoder.
@FlashTH
I also think it uses less power but I didn't do any tests to proove it.
I don't think that slow hd playback is due to your sd card(I have a class 8 and still a lot of 720p videos shutter/lag a little).
Anyway,thanks for your comments and opinions

Categories

Resources