G1 Video Encoding: How To - G1 General

Credit goes to "dLirious" at TMoNews.com
Step-by-step for Windows: updated settings by teckel
This is not a duplicate video conversion post. This doesn't just give instructions on how to make a video, but how to do it with high quality, so the movie is the correct aspect ratio, and movies filmed in Panavision and other higher aspect ratios are always shown in normal 16x9 widescreen. Also, this is for DVD rips from widescreen sources (everything I have is widescreen). If you're doing TV shows or something else at 4:3 this won't work (I can give those instructions as well if there's demand for it).
SUPER supports a wide variety of input/source file format to play or encode (to & from) without any additional third party software:
Video format: 3gp/3g2(Nokia,Siemens,Sony,Ericsson) asf, avi (DivX,H263,H263+,H264,Xvid,MPEG4,MSmpeg4 etc..), fli, flc, flv (used in Flash), mpg (Mpeg I,Mpeg II), mov(H263,H263+,H264,MPEG4 etc..), mp4(H263,H263+,H264,MPEG4), ogg, qt, rm, str (Play Station), swf (Flash), viv, vob, wmv
Audio format: ac3, amr, mp2, mp3, mp4, ogg, ra, wma
AviSynth Script Files: avs. ALL Input/source files that fail to encode, will be encoded without error when using AviSynth scripts.
Click to expand...
Click to collapse
Download Super here
SUPER © Setup:
Codecs: MP4 H.264 AAC LC
Video: 480:270 3:2 23.976 480kbps (yes, you set the video to 480x270)
Audio: 44100 2 96kbps Default
Options: Hi Quality:OFF Top Quality:OFF
Pad: Top:24 Bottom:26 Left:0 Right:0
Crop: Top:0 Bottom:0 Left:Calc Right:Calc
While everything else stays the same from movie to movie, the Calc options above need to be calculated depending on the resolution of the video source. I'll quickly give the calculation and then give an example. The calculation is ( Width - ( Height * 16 / 9 ) ) / 2. Width and Height are of the source video and the result would be what you would select for the left and right crop.
Here's a couple examples from my DVD rips:
* 886x480 source video: ( 886 - ( 480 * 16 / 9 ) ) / 2 = 16 (set the left and right crop to 16)
* 1128x480 source video: ( 1128 - ( 480 * 16 / 9 ) ) / 2 = 137 (set the left crop to 136 and the right crop to 138)
* 852x480 source video: ( 852 - ( 480 * 16 / 9 ) ) / 2 = -0.7 (this movie is already 16x9 so you can turn Crop OFF)
That's it! Perfect aspect ratio, no stretching, and very high quality. Oh, and I would suggest that when you playback a movie TURN ON AIRPLANE MODE! (Home, Menu, Settings, Wireless controls, Airplane mode). The phone searching for GSM, Edge, 3G, Bluetooth, Wi-Fi, GPS, and apps trying to use connections will cause your video to slow down, pause, or even fail. As a bonus, it will also greatly extend video viewing time.
Other information:
For high quality, I went with 480kbps video and 96kbps audio. When doing samples, I tested many bit rates and found 480/96kbps to be the perfect balance between quality and file size. A 90 minute movie will be about 380MB using these settings, this allows me to have about 8-9 movies on a 4GB card, plenty for me. You can sacrifice quality for a smaller file size by using 336kbps video and 64kbps audio which will result in the same 90 minute movie being about 265MB.
23.976 frames per second is what all DVD's of movies are filmed at as movies are all shot at 24 frames per second. Using 25 frames per second or 29.97 or 30 will just LOWER the quality because the converter will have to create averaged frames or duplicate previous frames to generate more frames than the source video has. If the source movies you're converting from are not 23.976 already, whoever ripped it did so incorrectly. In the future, make sure you always rip movies from DVD at 23.976.
You should always use the 3:2 aspect ratio in SUPER © as that's what the G1 format is. If you don't select 3:2, if you preview the movie on your computer it will look different than on your G1 because it will stretch it on your computer. Basically, keeping it always at 3:2 no matter what the source will allow you to preview videos on your computer and they will look the same on your G1 as well.
Saving File:
Right click in the box directly under the purple OUTPUT section to reveal the menu for Super ©. Here you will select the default area to save your file by selecting “Output File Saving Management. And you will also find the function to add your media files here as well Add Multimedia Files or Ctrl+A.
Once you have added the file just click on the Encode (Active Files) button and voila!!! You will have your newly converted video files for your G1. Hope this was useful and if you have any questions please feel free to PM me or post your questions. I do have the direct link for the Super © program so if you are having trouble finding it just PM me and Ill gladly send it to you. ENJOY!!!!
EDIT: Once you have loaded the video you intend to encode you can double click on the file to find out its' original settings such as frame rate and such so you can choose it from the list. This might help with the quality of the video.
NOTE: You can download the Video Player 1.0 in the android market to play these files.
Here's a screen shot:
Thanks to rushmore and everyone who tested to find additional options to optimize the encoding video quality.
ALTERNATE WINDOWS OPTION: by rushmore
Quote from: rushmore on October 25, 2008, 12:49:48 PM
SOG Video Converter options that give proper aspect ratio using 1.0 Video Player on G1 (SOG the only converter that I have tried that works for this)
Choose profile setting "to iPhone"
480X320, H.264: Excellent Quality : (I adjust the parameters as listed below)
Audio = 64
Video Quality = 312 (you can make it higher, this value gives more space for video files with good quality).
Frame rate = 23.97
Output Image = Keep Aspect Ratio (this is important)
Video resolution = 480:320
Click to expand...
Click to collapse
MAC USERS: By mapin0518
Nobody here seems to be a mac user, but in case another one besides myself wanders in here... I found THE app to use for video encoding on the mac...
ffmpegX
http://ffmpegx.com/index.html
It seems to be extremely flexible and lets you specify all the specs you want for encoding.
Good day !
Click to expand...
Click to collapse
LINUX USERS: How to by BearTard
Quote from: BearTard on October 11, 2008, 01:17:22 PM
For those using Linux, be sure and check out Avidemux. It's available in the repositories of most Linux distributions and has automatic tools for converting to various formats (like PSP, for example--which should be great on the G1).
It's as simple as loading a video, selecting PSP from the tools menu, and starting it up.
Or if you're a Linux masochist, the following is a basic converter to Xvid that might be of some use.
Code:
mencoder <inputfilename> -ovc xvid -xvidencopts bitrate=-<targetvideosize>ass=1:turbo:threads=2 -ofps 25 -oac copy -o /dev/null
mencoder <inputfilename> -ovc xvid -xvidencopts bitrate=-<targetvideosize>ass=2:threads=2 -ofps 25 -oac mp3lame -lameopts br=$abitrate:vol=2:aq=2:mode=0:vbr=0 -o output.avi
Click to expand...
Click to collapse
STRAIGHT DVD RIP: By umop.apisdn
Quote from: umop.apisdn on October 23, 2008, 12:50:25 PM
DVD ripping for COMPLETE NEWBIES.
If you are completely clueless about how to rip a DVD to your G1 (like I was a week ago) this post is for you.
This method will rip a movie straight from your DVD to an MP4 file that the G1 Video Player 1.0 knows how to play.
You will need to download and run HandBrake (an open source ripper) http://handbrake.fr/ HandBrake has the simplest, most intuitive UI of any ripper I have found so far.
Here are some settings that work for the G1. Some experimentation may find a better set of parameters, but these work and yield good results. A two hour movie ends up about 375 MB.
Source: Browse to the VIDEO_TS folder on your DVD
Title: Select the longest one.
Destination: Wherever you want to keep the file. You can actually rip directly to the mounted SD card of the G1, if you want.
Preset: Classic works. Others may also, I haven't tested them yet.
OutPut Settings: Set Encoder to Mpeg4, Audio to AAC, uncheck the two other checkboxes.
On the Picture Settings tab, turn off Crop, check "Loose Anamorphic", and set width to 480. (NOTE: sometimes you have to check Anamorphic PAR before Loose Anamorphic becomes usable. Maybe this is a GUI bug?)
On the Video tab, set the Quality Avg Bitrate to 384.
Click Start in the upper left corner. A 2 hour movie takes about 45 min to encode.
Hopefully people will find this helpful.
Noel.
EDIT: If the DVD you want to rip is copy protected, you will need to also install DVD43 ( http://www.dvd43.com ), a system tray application that de-copy-protects DVDs on the fly. There aren't any configuration parameters, you just install it and forget it. It silently removes copy protection as you read data from the DVD.
Click to expand...
Click to collapse

TMPGEnc. 4 Xpress Template: Android Video Encoding
I have created a template for TMPGEnc Express 4.0 and above that will make encoding videos to the Android Video Player much easier. It will work with unencryped DVD files, WMV, MPEG, AVI, MOV, and just about any video you throw at it. (if you have the codec)
You must have TMPGEnc 4.0 Xpress or later installed before placing the template file. Just download the template, extract the file and put it in the "Export" folder found under /Documents/TMPGEnc/Template. Now follow the directions below.
Step 1: Open Application and click "Start a new project"
Step 2: Drag and drop a file or a variety of files in any format, aspect or demension
Step 3: Click the "Format" tab at the top and at the bottom of the list there is a "Custom Output Templates" folder, choose the "Android Formated MP4" and hit select. On the next screen make sure "Output each clip in a seperate file" is selected
Step 4: Select "Encode" tab at the top of the screen, choose the output location and then click on the "Start Encode" button in the bottom left that looks like a movie clip with an arrow.
This program is expensive ($99) but I have been using it for years for all the different devices I have. There is a trial and the software can be found here: http://tmpgenc.pegasys-inc.com/en/product/te4xp.html. It is the only software that I know that can take multiple video formats and sizes and batch process them too to one format.
I have converted a number of DVD's in different Aspect ratios and alot of recorded TV from my Vista Media Center, the quality is amazing and has not failed me yet. Please try my template and let me know if you have any problems. I am going to work on a couple more templates in the future to be able to choose Quality Encodeing or Lower Quality with Smaller Size.
Let me know your thoughts and experiences, or any changes I should make to the steps above.
Jcostanza4

he mikey, love your tut on encoding with super, one question i have all your videos are ***x480 in size. i want to convert a hd rip i have its 1280x544 what settings would i use for this?

I have tried using handbrake and Super. I have grabbed the VOB files using DVDShrink, but am unable to use Super to create a MP4 file. The file that gets created from handbrake causes the video player to inform me that the video is not able to be played. I used the options that were listed by the OP for handbrake, but still get the message. Is Super able to handle the multiple VOB's and create a single MP4?
TIA,
rrstx

Sorry for asking im kinda of a newbie when it come's to stuff like this, But im at the http://www.erightsoft.com/S6Kg1.html website and i dont quite know what to download to download the software. can someone help me out?

in my first post look for where i typed
Download Super here
Click to expand...
Click to collapse

Mikey1022 said:
in my first post look for where i typed
Click to expand...
Click to collapse
Dude, Your the best! Thanks.

* 886x480 source video: ( 886 - ( 480 * 16 / 9 ) ) / 2 = 16 (set the left and right crop to 16)
* 1128x480 source video: ( 1128 - ( 480 * 16 / 9 ) ) / 2 = 137 (set the left crop to 136 and the right crop to 138)
* 852x480 source video: ( 852 - ( 480 * 16 / 9 ) ) / 2 = -0.7 (this movie is already 16x9 so you can turn Crop OFF)
Click to expand...
Click to collapse
Im sorry im just not understanding what any of this mean's. As much as i would like to but i just can't find any of this in the program. Im like glimpsing between the post and the program and trying to locate where this information is on the program. LOL! Help?!!?! Im like having a major brain fart.

Mikey1022 said:
SUPER © Setup:
Video: 480:270 3:2 23.976 480kbps (yes, you set the video to 480x270)
Audio: 44100 2 96kbps Default
Options: Hi Quality:OFF Top Quality:OFF
Pad: Top:24 Bottom:26 Left:0 Right:0
Crop: Top:0 Bottom:0 Left:Calc Right:Calc
Click to expand...
Click to collapse
Why 3:2? it looks squeezed and terrible.
Why 480x270? The G1 is 480x320 now I have two blue (not even black) bars across the top and bottom of the movie.
Is this supposed to take 2 hours per movie? or is my computer just too slow?
The frame rate is perfect, no jitters in playback.
The file is not 250MB is over 500MB actually.

brooklynite said:
Why 3:2? it looks squeezed and terrible.
Why 480x270? The G1 is 480x320 now I have two blue (not even black) bars across the top and bottom of the movie.
Is this supposed to take 2 hours per movie? or is my computer just too slow?
The frame rate is perfect, no jitters in playback.
The file is not 250MB is over 500MB actually.
Click to expand...
Click to collapse
1) If using Super C, you need to change the color option for the pads.
2) Good sticky over at Tmonews about this.
3) I find that 336K video bitrate using H264 looks fine on the G1's 3" screen.
4) Also find that 64K audio at 22.5 sample rate is fine ( I upped Pick of Destiny to 96K at 32K sample rate, though).
These settings save space and battery lasts longer too.
If you do not want to constantly mess with aspect ratio settings, SOG is the best endcoder, but is $30. I use it and use auto aspect ratio option.
SOG also seems to look better at the same bit rates as Super C.

Thank you very much for this mikey, i used the straight dvd rip method and it works like a charm!!! Thanks for putting this together I had a question for you, have you successfully made dvd's that play on your dash with the same quality?

I got a question. At the moment I'm using in Handbrake:
Mpeg4 (H264)
AAC
But the VideoPlayer doesnt recognize the video files I have on my SD card. I also tried Mpeg-4 (FFMPEG) as a codec but it doesn't work either. Could someone help me please?
Update:
After reinstalling the videos application I am finding now the videos. But they don't get played properly. I'm always getting the sound but the video is just one green block. (using H264/iPhone settings) Using other h264 settings also lead me to this green video block. Is there anything I can do about?

start_developing said:
I got a question. At the moment I'm using in Handbrake:
Mpeg4 (H264)
AAC
But the VideoPlayer doesnt recognize the video files I have on my SD card. I also tried Mpeg-4 (FFMPEG) as a codec but it doesn't work either. Could someone help me please?
Update:
After reinstalling the videos application I am finding now the videos. But they don't get played properly. I'm always getting the sound but the video is just one green block. (using H264/iPhone settings) Using other h264 settings also lead me to this green video block. Is there anything I can do about?
Click to expand...
Click to collapse
I should have waited a few days to say it works like a charm, the last few movies i've encoded don't play, either i get sound and no video or sound with green blocks too. my first 3 play perfectly and im doing it the same way. No clue why

It really differs from the input file. Some work and some dont work in the resulting output file. The settings for iPhone and iPod are ok.

Ok, I've been doing this for a while w/ no negative feedback from the device. I too had the issues w/ either video show as blank/green blocks with no audio or vice versa no audio w/ video just fine. After some research here's what I found. Hope it helps.
Video:
AVC .264 codec for the video (this is harware accelerated and thus can get a better respons from the device)
Basline Profile (this is needed due to our devices not having all the bells and whistles h.264 is capable of)
You want the Profile no higher then level 3.1
CABAC (specific to h.264) is a NO
Reference Frames: 1 (only 1)
Bitrate (Variable): 1000 Kbps
Framerate: Constant @ 23.97 (for most videos this is how they were originally recorded, If you increase this there is more that has to be don during encoding and may slow it down)
For those of you that know how to setup your encoder programs using a manual script for the h.264 settings, you can use the following for your script (it's what works for me)
Code:
cabac=0 / ref=1 / deblock=1:0:0 / analyse=0x1:0x111 / me=hex / subme=6 / psy_rd=1.0:0.0 / mixed_ref=0 / me_range=16 / chroma_me=1 / trellis=0 / 8x8dct=0 / cqm=0 / deadzone=21,11 / chroma_qp_offset=-2 / threads=3 / nr=0 / decimate=1 / mbaff=0 / bframes=0 / keyint=250 / keyint_min=25 / scenecut=40(pre) / rc=2pass / bitrate=1000 / ratetol=1.0 / qcomp=0.60 / qpmin=10 / qpmax=51 / qpstep=4 / cplxblur=20.0 / qblur=0.5 / vbv_maxrate=10000 / vbv_bufsize=10000 / ip_ratio=1.40 / aq=1:1.00 / cabac=0 / ref=1 / deblock=1:0:0 / analyse=0x1:0x111 / me=hex / subme=6 / psy_rd=1.0:0.0 / mixed_ref=0 / me_range=16 / chroma_me=1 / trellis=0 / 8x8dct=0 / cqm=0 / deadzone=21,11 / chroma_qp_offset=-2 / threads=3 / nr=0 / decimate=1 / mbaff=0 / bframes=0 / keyint=250 / keyint_min=25 / scenecut=40(pre) / rc=2pass / bitrate=1000 / ratetol=1.0 / qcomp=0.60 / qpmin=10 / qpmax=51 / qpstep=4 / cplxblur=20.0 / qblur=0.5 / vbv_maxrate=10000 / vbv_bufsize=10000 / ip_ratio=1.40 / aq=1:1.00
As for Audio:
Nero AAC works the best
Profile: AAC-LC
CBR: 160kbps
Sample Rate: 48khz works fine (Personally, I don't change the audio rate at all)
Granted my average files are around 190MB per 30 minutes, but it looks and sounds amazing. Better then I was ever able to accomplish with my Dash.

I ripped The Boondock Saints and Fight Club with no issues though when I tried to rip Benders Big Score and The Beast with a Billion Backs they came out blocky, the audio was off and playing slow.
I'm using the HandbrakeCLI for linux due to the fact that the GUI version won't let you crop or adjust the aspect ratio
here is what I tried and worked for Boondock Saints and Fight Club:
HandBrakeCLI -i "/home/josh/.wine/drive_c/FIGHTCLB" -t 1 -c 1-25 -o "/home/josh/.wine/drive_c/FIGHTCLB/fight_club.mp4" -f mp4 -w 480 --deinterlace="slow" -e ffmpeg -b 512 -a 1 -E faac -B 160 -R 44.1 -6 stereo -D 1 -v

Good settings for handbrake
I have integrated MMTest97's x264 encoder options into the HandbrakeCLI command. It works like a charm and the videos look Great! here is the full command with scaling to the G1's exact screen res:
HandBrakeCLI -i "Path/To/Source/Video" -t 1 -c 1-25 -o "Path/To/Destination/Video" -f mp4 -w 480 -l 320 --deinterlace="slow" -e x264 -x cabac=0:deblock=1,0:analyse=0x1,0x111:bitrate=416sy_rd=1.0,0.0:chroma_me=1:chroma_qp_offset=-2:threads=3:nr=0:keyint=250:keyint_min=25:scenecut=40:bitrate=416:ratetol=1.0:qcomp=0.60:qpmin=10:qpmax=51:qpstep=4:cplxblur=20.0:qblur=0.5 -a 1 -E faac -B 96 -R 44.1 -6 stereo -D 1 -v
Also here is the command for an aspect retained video:
HandBrakeCLI -i "Path/To/Source/Video" -t 1 -c 1-25 -o "Path/To/Destination/Video" -f mp4 -w 480 --deinterlace="slow" -e x264 -x cabac=0:deblock=1,0:analyse=0x1,0x111:bitrate=416sy_rd=1.0,0.0:chroma_me=1:chroma_qp_offset=-2:threads=3:nr=0:keyint=250:keyint_min=25:scenecut=40:bitrate=416:ratetol=1.0:qcomp=0.60:qpmin=10:qpmax=51:qpstep=4:cplxblur=20.0:qblur=0.5 -a 1 -E faac -B 96 -R 44.1 -6 stereo -D 1 -v
Alternatively if you are lazy like me you can set up a profile in HandBrakeGUI that uses these x264 options for batch encoding!
Don't know if this helps anyone, but it is working great for me! Thanks for the help in getting this figured out, I've been at it for over a week now!
Cheers,
Xipher

use the ipod/iphone setting on SUPER.. it works fine.

stats555: Selecting Deinterlace: Slower, (i supose slower is best quality) did the trick for me, now i see the videos.
i also set resolution to h264 480 x 272.

File Size
So far i have ripped 3 movies usually about an hour and a half to hours in length. I have only seen an out put size in the 500meg range. Is there anyway to get these smaller?

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.

DVDEnc v0.25 - DVD-to-MP4 Autoconverter

DVDEnc_0.25.rar (5.3MB) http://mediafire.com/?4xkmv4ydso2a5g2
DVDEnc is a Windows script to convert DVD to MP4. Defaults are already set to optimal. It uses HandbrakeCLI (included) to encode.
. Drag & drop operation.
. Batch conversion.
. Changeable speed setting (default = medium).
. Changeable quality setting (default = CRF 21).
. Auto-deinterlace, auto-IVTC, auto-crop, auto-subtitle, auto-chapter.
Install: Unpack. Create shortcut to DVDENC.CMD on desktop.
DVD Ripping: Install and use DVDFab HD Decrypter (http://www.dvdfab.com/free.htm) to rip DVDs to HDD.
Use: Drag-drop ripped DVD folder onto shortcut. To batch encode multiple DVDs, batch select desired folders and drag-drop. Unless otherwise specified, converted output is placed into source DVD folder(s).
Notes:
. Change output folder: Edit DVDENC.CMD; change set "vOut=" to desired folder. Example: set "vOut=C:\Videos"
. Change video quality: Edit DVDENC.CMD; change "vQual=21" to a value between 19 to 24. The higher the value, the lower the quality and file size.
. Change video resolution: Edit DVDENC.CMD; change "vRes=better" to desired resolution.
. Change encoding speed: Edit DVDENC.CMD; change "vSpeed=medium" to desired speed setting. The faster the conversion, the larger the resultant file size. Video quality will be constant.
. Change language: Edit DVDENC.CMD, change "vLang=eng" to your country's ISO639-2 code. (English=eng, French=fra, Spanish=spa, German=ger, Dutch=nld; for others, go to http://www.loc.gov/standards/iso639-2/php/code_list.php). This affects selected audio and subtitles. If no audio is available in specified lang, 1st track is selected.
. Change audio: Default is stereo AAC. To change to AAC/AC3/DTS, edit DVDENC.CMD, change "vAud=AAC" to desired setting. For Tegra 2, use AAC stereo only.
. If DVD has multiple titles, every title longer than 15mins will be converted.
. HandBrake.txt has full details of all HandBrake CLI settings.
HandBrake version: svn3993
download: http://build.handbrake.fr/view/Nightlies/job/Windows
documentation: http://trac.handbrake.fr/wiki/CLIGuide
x264 settings: http://mewiki.project357.com/wiki/X264_Settings
Known Issue: Not intended for and won't work on BluRays.
History:
0.25
. Fix: Check for title with longest time in same VTS chain.
0.24
. Add: Force CFR as default; user-changeable.
0.23
. Fix: failed duration check crashing script.
0.22
. Fix: prevent dupe encodes of multi angles.
. Fix: only include subs of specified language.
0.21
. Include all subtitles as default.
. Fix errorhandling.
0.2
. Add resolution/profile/level/tuning/audio change.
. Add output destination.
. Fix TimeStamp internationalization.
0.12
. Add support for multi-title DVDs.
0.11
. Add timestamping to show encoding time.
0.1
. Initial release.
I am going to test this soon, I have been using AnyDVD HD to rip the DVD to hard drive first is that just as acceptable as the product you suggested?
Do you find any audio sync issues with this procedure?
I used this to encode Avarar and Startrek, both turned out GREAT!
I changed the quality level to max "19" and they play and look awesome.
Avatar was a little over 2gb and Startrek was a little over 1gb.
Oh yeah and I set decode speed to slow to make them compress a little smaller because I upped the quality.
Sent from my Xoom using Tapatalk
does this convert ISO or visits folder? Any other formats?
Can I make a copy of this script and modify it to do an alternate language track and subtitles? I ask because I want to rip AKIRA but I want it to be in Japanese with english subtitles (currently its main audio track is english)
@myv6mustang
The script can only do what HandBrakeCLI can recognize. Last I tried, ISOs weren't recognized. It shouldn't be a big deal. Just mount ISOs using a virtual-CD app, like DVDFab Virtual Drive (see link in OP).
HB's Bluray support is a bit iffy. As of the last official version (0.9.5), PGS subtitles weren't supported. Other than that, the script info-scanning routines will need to be updated for M2TS scans. To be honest, I don't bother to do many BD rips, since the ripped BD stuff come out so much earlier than retail BDs hitting the stores.
@cwizardtx
To use the default audio track (track 1) instead of one dubbed to your language, search for --native-dub and change it to --audio 1 --subtitle-default . Yeah, you can make separate copies of the script with different settings.
So, I take it that for SD (480p) DVDs, high profile work on the Xoom? Or are you guys using baseline? Anyone trying main profile?
e.mote said:
@myv6mustang
The script can only do what HandBrakeCLI can recognize. Last I tried, ISOs weren't recognized. It shouldn't be a big deal. Just mount ISOs using a virtual-CD app, like DVDFab Virtual Drive (see link in OP).
HB's Bluray support is a bit iffy. As of the last official version (0.9.5), PGS subtitles weren't supported. Other than that, the script info-scanning routines will need to be updated for M2TS scans. To be honest, I don't bother to do many BD rips, since the ripped BD stuff come out so much earlier than retail BDs hitting the stores.
@cwizardtx
To use the default audio track (track 1) instead of one dubbed to your language, search for --native-dub and change it to --audio 1 --subtitle-default . Yeah, you can make separate copies of the script with different settings.
So, I take it that for SD (480p) DVDs, high profile work on the Xoom? Or are you guys using baseline? Anyone trying main profile?
Click to expand...
Click to collapse
Is this correct?
--native-language %vLang% --audio 1 --subtitle-default %vAud% %vSub% 2>nul
this is from your script, the line right after --decomb --detelecine etc etc... I took out --native-dub and replaced it but you have some variables being passed after that and I dont want to break the script.
Yep, you got it.
Speed vs size
For those who wonder how the various speed presets fare in terms of encoding time vs size efficiency, this was a test I did a while ago. The last two columns are what you want to know. Comparisons are relative to the default medium preset.
Code:
Avatar - ultrafast 00h55m42s 4581.221914 MB size: 212.0% time: 31.1%
Avatar - superfast 01h09m45s 2930.445943 MB size: 135.6% time: 39.0%
Avatar - veryfast 01h26m23s 2330.504009 MB size: 107.8% time: 48.3%
Avatar - faster 01h54m38s 2226.213107 MB size: 103.0% time: 64.0%
Avatar - fast 02h37m10s 2172.828731 MB size: 100.5% time: 87.8%
Avatar - medium 02h58m59s 2161.404744 MB size: 100.0% time: 100.0%
Avatar - slow 05h06m51s 2087.993149 MB size: 96.6% time: 171.4%
Avatar - slower 09h51m26s 1997.699705 MB size: 92.4% time: 330.4%
Avatar - veryslow 16h20m25s 1889.813900 MB size: 87.4% time: 547.8%
To sum, the best speed setting per size-time trade-off is "veryfast", where there is only a 8% size increase, but at half the encoding time. The "faster" and "fast" settings are also good choices.
The best setting for getting smallest size, but without excessive encoding time, is "medium".
ive given this setup a try on 4 DVDs so far and the quality that i have seen has been great. i have only seen one of the 4 movies so will update as ive seen the others but thus far great work. i was ready to purchase a product that does this but im pretty pleased with the results in default values.
i first thought i would not understand this style of encoding but e.motes package is easy to handle.
this is definitely a great alternative to xoom users vs. paid products. and there are many out there...
kaylawang said:
To rip and convert DVD to mp4, I prefer Aunsoft DVD ripepr, it has a simple surface and can rip and convert DVD files/DVD discs to many HD formats including H.264 HD MP4.
Click to expand...
Click to collapse
I've used Xmedia Recode for quite sometime. There are templates for a lot of devices including the Xoom. I haven't personally used the Xoom template, but I've used a few others and had good results from all.

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

Video Format

What exactly does the video format support by the 10.1? I tried installing .avi, .mpeg and I wasn't able to play the videos. Most of the .avi are Blueray copies. Or anyone know a good video converter for Mac?
use handbreak to convert your .avi files , i do know that the galaxy tab 10.1 plays nice with .mp4 files
good luck
ZOEpilot16 said:
use handbreak to convert your .avi files , i do know that the galaxy tab 10.1 plays nice with .mp4 files
good luck
Click to expand...
Click to collapse
I second this. You can stream .avi from your computer if you prefer.
moboplayer provides a bunch of soft-decoding codec ,which will take care of most video if hardware-decoding won't work. just try this app first and see if that helps .
Sent from my SHW-M110S using XDA App
You can also use rock player to play AVI files and such.
Sent from my GT-P7510 using Tapatalk
I've used both the stock & mobo (haven't tried rock yet, I'll have to give it a shot), & the stock player plays just fine with h.264 & mp4. In fact, I played the exact same video on both, & I thought the picture looked the best on the stock player. Of course, that requires you to re-encode most likely, which kinda defeats the purpose of having the avi encapsulation in the first place... up to you in the end--let us know how it works out.
Can somebody please test this clip?
I can play it perfectly on my 7" Galaxy TAB GT-P1000 but all the Tegra2 Honeycomb tablets I've tried it on will either stutter badly of not play at all!
I just can't imagine why a previous generation Single-Core CPU can play it without any problems using hardware acceleration and the Tegra2 Can't !?!
This is the codec info:
General
Complete name : D:\Downloads\Avatar_clip_1920_high.mp4
Format : MPEG-4
Format profile : Base Media
Codec ID : isom
File size : 125 MiB
Duration : 1mn 23s
Overall bit rate : 12.6 Mbps
Encoded date : UTC 2011-05-22 19:19:17
Tagged date : UTC 2011-05-22 19:19:17
Video
ID : 1
Format : AVC
Format/Info : Advanced Video Codec
Format profile : High@L4.0
Format settings, CABAC : Yes
Format settings, ReFrames : 4 frames
Codec ID : avc1
Codec ID/Info : Advanced Video Coding
Duration : 1mn 23s
Bit rate mode : Variable
Bit rate : 12.4 Mbps
Maximum bit rate : 22.5 Mbps
Width : 1 920 pixels
Height : 1 078 pixels
Display aspect ratio : 16:9
Frame rate mode : Constant
Frame rate : 23.976 fps
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Bits/(Pixel*Frame) : 0.251
Stream size : 123 MiB (99%)
Title : x
Writing library : x264 core 114 r1913 5fd3dce
Encoding settings : cabac=1 / ref=1 / deblock=1:-1:-1 / analyse=0x3:0x113 / me=hex / subme=2 / psy=1 / psy_rd=0.00:0.00 / mixed_ref=0 / me_range=16 / chroma_me=1 / trellis=0 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=0 / threads=3 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / constrained_intra=0 / bframes=3 / b_pyramid=2 / b_adapt=1 / b_bias=0 / direct=1 / weightb=1 / open_gop=0 / weightp=1 / keyint=250 / keyint_min=23 / scenecut=40 / intra_refresh=0 / rc_lookahead=10 / rc=crf / mbtree=1 / crf=23.0 / qcomp=0.60 / qpmin=0 / qpmax=69 / qpstep=4 / ip_ratio=1.40 / aq=1:1.00
Encoded date : UTC 2011-05-22 19:19:17
Tagged date : UTC 2011-05-22 19:19:22
Audio
ID : 2
Format : AAC
Format/Info : Advanced Audio Codec
Format profile : LC
Codec ID : 40
Duration : 1mn 23s
Bit rate mode : Variable
Bit rate : 132.3 Kbps
Maximum bit rate : 152 Kbps
Channel(s) : 2 channels
Channel positions : Front: L R
Sampling rate : 48.0 KHz
Compression mode : Lossy
Stream size : 1.34 MiB (1%)
Title : x
Encoded date : UTC 2011-05-22 19:19:22
Tagged date : UTC 2011-05-22 19:19:22
Download Handbrake then go to this thread: http://forum.xda-developers.com/showthread.php?t=1060825
You can follow the directions or simply download and import the 720p high profile preset.
If you want to stream video, a combination of uPnPlay (free in market), moboplayer and ps3 media server has worked fairly well for me.
hoodoomagic said:
Download Handbrake then go to this thread: http://forum.xda-developers.com/showthread.php?t=1060825
You can follow the directions or simply download and import the 720p high profile preset.
If you want to stream video, a combination of uPnPlay (free in market), moboplayer and ps3 media server has worked fairly well for me.
Click to expand...
Click to collapse
We don't want to re-encode! We want to play! Other less powerful devices can play almost everything without re-encoding! Why can't the Tegra2 do it?
To reencode is missing the point. It's a clip I encoded for a video survey in the Xoom forum. No Tegra 2 tablet can play it smoothly. You can blame poor NVidia driver, HC's beta-ness, or the crummy Tegra 2. That's just the way it is.
BTW, 1080p high profile is simply not in the Tegra 2 specs, drivers notwithstanding. If you want 1080p HP, buy another tab.
BTW, the entire suite of clips used for the survey is here. Tegra 2 (on 3.1) can play 720p HP and 1080p BP. On the Xoom, the stock player is hard-capped to 1080p BP. If you play MP or HP, the stock player will error out or crash.
http://www.mediafire.com/?depxt4zyvpwel
OrionBG said:
We don't want to re-encode! We want to play! Other less powerful devices can play almost everything without re-encoding! Why can't the Tegra2 do it?
Click to expand...
Click to collapse
That is something you'll have to ask Nvidia and Google, I don't know the answer to that.
However, transcoding will guarantee the video to work. And you can queue up files in Handbrake and walk away.
So, you can either complain on forums, or use the solution presented and watch 720p high profile video on the tab.
Denil Wong said:
What exactly does the video format support by the 10.1? I tried installing .avi, .mpeg and I wasn't able to play the videos. Most of the .avi are Blueray copies. Or anyone know a good video converter for Mac?
Click to expand...
Click to collapse
You don't need or have to convert anything really (maybe except mkv's) if you just use MoboPlayer to watch them.
If you prefer to use the Gallery to watch videos, then it's best you convert to mp4 files.
On my Mac i have a myriad of converters, from VisualHub (no longer in development), Handbrake (free), WinX HD Video Converter, my three regulars.
There are tons out there.
i've been having trouble with a 720p x264 file about 1.2GBs.
the video plays but it is very laggy/choppy and the audio isnt in sync with the video playback.
i've checked that the files played fine on my computer.
should i convert these files too?
Thank you all for your great tips. Will definitely try it out when I get the chance to this evening. Highly appreciate it guys! CHEERS!!!
Regardless of whats being said over at the Xoom fourm, the GST as of now can only play back 720p/1080p H.264 Base Profile, smoothly. So far from my tests the GST doesn't support AC3 Audio, so the stock player will not play it.
http://forum.xda-developers.com/showthread.php?t=1134811&highlight=Poot+Video
I started this thread and there is useful information in it in relation to H.264 playback on the GST.
Metzenw said:
Regardless of whats being said over at the Xoom fourm, the GST as of now can only play back 720p/1080p H.264 Base Profile, smoothly. So far from my tests the GST doesn't support AC3 Audio, so the stock player will not play it.
http://forum.xda-developers.com/showthread.php?t=1134811&highlight=Poot+Video
I started this thread and there is useful information in it in relation to H.264 playback on the GST.
Click to expand...
Click to collapse
HC 3.1 supports 720p high profile and I haven't had any problems using the Handbrake settings posted over at the TF forum.
In that thread I've seen people trying to solve some judder problems with certain clips, but tbh I'm not a video guru and the conversation is over my head. But as I've said, I have yet to experience that for myself even with movies with lots of action and fast camera pans.
e.mote said:
BTW, the entire suite of clips used for the survey is here. Tegra 2 (on 3.1) can play 720p HP and 1080p BP. On the Xoom, the stock player is hard-capped to 1080p BP. If you play MP or HP, the stock player will error out or crash.
http://www.mediafire.com/?depxt4zyvpwel
Click to expand...
Click to collapse
I had just about given up hope trying to find the right combination of settings via Handbrake to encode my DVDs so they would play smooth on my GTab. I have come close but just hadn't hit it. I then downloaded your clip from your link - 1280 baseline - and was pleasantly surprised by not only the absolute smooth playback but by the picture quality.
I have since tried your VDisc_023 but the playback isn't absolutely smooth. It is close but not quite there.
So here's my question, can you supply either the change I need to make in VDisck_023 (I noticed it is set to High, perhaps just changing it to Base?) to equal your 1280_Baseline Avatar clip I mentioned above or the complete settings I can use in the GUI Handbrake interface? If I had my choice, I would prefer using the GUI but at this point, I will take what I can get!
Thanks so much for showing me I can get smooth playback with a terrific picture!
i use freemaker. much better easier and faster than handbreak give it a try
seansk said:
i use freemaker. much better easier and faster than handbreak give it a try
Click to expand...
Click to collapse
Tried it and was not happy with the quality of the output. I was seeing too much... don't know the technical term is but I call it blocking. I really liked the easy interface and how you can easily cut scenes to convert but...

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

Categories

Resources