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?
What program/script is the best option for converting my high profile mkv's to a usable format on my transformer. I'm not really interested in 1:1 quality as I think 720p is overkill for the 10" screen. I'm just interested in a quick and painless method that will also allow me do batches because I have quite a few films to do.
Thanks,
I tried Freemake Video Converter and it usually takes between 1.5-2 hours to convert (Core2 Quad CPU 2.33GHz). I think you'll be more then pleased with the results and file size. The other popular method takes way too long for my liking even though the results are better.
In Freemake drop movie into program > convert to apple tv > click gear icon to edit preset. Under frame rate select the rate you see in the previous screen when you dump the movie into the program. Should match. You can change bitrate also to change file size/quality (higher is larger and better quality) or leave auto.
http://www.freemake.com/free_video_converter/
Format Factory does a movie mkv -> avi in about 30-45 minutes. Depends a lot on the hardware though.
What's with all of these crappy suggestions?
The best, hands down, program for your needs will be Handbrake.
Does it do .mkv to .mp4 conversion at about 400 fps and retain full quality? YES! (assuming your .mkvs are encoded using h.264 codec you can do a video stream copy that takes about 3-5 minutes per 1 hour of material)
Does it convert to a native format that will allow you to use the stock player and not some dodgy third party player? YES!
Does it allow batch encoding? YES!
If you want to transcode to a lower quality, does it use the best encoder in the world in x264? YES!
Is it completely free and open source? YES! and YES!
Why even bother with anything else?
sassafras
sassafras_ said:
What's with all of these crappy suggestions?
The best, hands down, program for your needs will be Handbrake.
Does it do .mkv to .mp4 conversion at about 400 fps and retain full quality? YES! (assuming your .mkvs are encoded using h.264 codec you can do a video stream copy that takes about 3-5 minutes per 1 hour of material)
Does it convert to a native format that will allow you to use the stock player and not some dodgy third party player? YES!
Does it allow batch encoding? YES!
If you want to transcode to a lower quality, does it use the best encoder in the world in x264? YES!
Is it completely free and open source? YES! and YES!
Why even bother with anything else?
sassafras
Click to expand...
Click to collapse
Don't know about you but it takes hours to convert for me. 5+ hours.
XL2001 said:
Don't know about you but it takes hours to convert for me. 5+ hours.
Click to expand...
Click to collapse
takes me about 14 minutes to rip a blu-ray to h.264 with this CUDA encoder
XL2001 said:
Don't know about you but it takes hours to convert for me. 5+ hours.
Click to expand...
Click to collapse
Ah, yes. I misspoke somewhat. I don't use handbrake to stream copy but I assumed it could.
The fastest way to stream copy an .mkv into an .mp4 is with ffmpeg.
Code:
ffmpeg -i yourinputfile.mkv -f mp4 -vcodec copy -acodec libfaac -ac 2 -ab 160k youroutputfile.mp4
If you want a batch script to do it, I've written a quick one that should get the job done.
Code:
#!/bin/bash
# mp4maker.sh
# A batch mp4 making script that will convert and rename all in one step.
DIRECTORY=/shares/media/video/
FFMPEG='/usr/local/bin/ffmpeg'
find $DIRECTORY -type f -name '*.mkv' -exec $FFMPEG -i '{}' -f mp4 -vcodec copy -acodec libfaac -ac 2 -ab 160K -threads 0 '{}'.mp4 >>/dev/null 2>&1 \;
find $DIRECTORY -type f -name "*.mkv.mp4" | while read file; do
clean=`echo "$file" | sed 's/ /\\ /g'`
target=`echo "$clean" | sed 's/mkv.mp4/mp4/'`
removed=`echo "$target" | sed 's/mp4/mkv/'`
mv "$clean" "$target"
rm "$removed"
done
Probably not the most elegant, but it's simple and it gets the job done. Be sure to replace the DIRECTORY variable with the location of the files you want to convert and the FFMPEG variable with the location of your ffmpeg.
sassafras
chatch15117 said:
takes me about 14 minutes to rip a blu-ray to h.264 with this CUDA encoder
Click to expand...
Click to collapse
Too bad CUDA downright sucks quality wise.
For the best speed/quality compromise, Intel Quick Sync is the way to go.
sassafras
Get DICE Player. Easy Peazy.
No conversions needed.
Hardware Accelerated 720p mkv + AC3 sound
https://market.android.com/details?id=com.inisoft.mediaplayer.trial&feature=search_result to try
I use gotsent. Realy fast.
Sent from my Transformer TF101 using XDA Premium App
No clear answer.
I have tried many converters, free and payed for, and it all boils down to personal preferences. You will get just as many opinions as there are converters. What I understand is they basically use the same encoding process, just their own spin on a GUI. I know it will take time but just start downloading converters and start experimenting. And this forum is very good when it comes to settings if you are not using a preset. Personally, I use CloneDvd Mobile. Only beef I have with it is it optimized more for phones and not tablets. Hopefully that will change.
zephiK said:
Get DICE Player. Easy Peazy.
No conversions needed.
Hardware Accelerated 720p mkv + AC3 sound
https://market.android.com/details?id=com.inisoft.mediaplayer.trial&feature=search_result to try
Click to expand...
Click to collapse
Seemed good at first but fails on fast moving scenes. So close yet so far
mug2k said:
Seemed good at first but fails on fast moving scenes. So close yet so far
Click to expand...
Click to collapse
Mines is fine. Just doesn't play certain .avi's due to the limitations of the stock Honeycomb player. So it's only good for .mkvs. Avis I'd have to go with another player.
zephiK said:
Mines is fine. Just doesn't play certain .avi's due to the limitations of the stock Honeycomb player. So it's only good for .mkvs. Avis I'd have to go with another player.
Click to expand...
Click to collapse
What kind of mkv's are you using ?, mine are high profile 720p's.
sassafras_ said:
Ah, yes. I misspoke somewhat. I don't use handbrake to stream copy but I assumed it could.
The fastest way to stream copy an .mkv into an .mp4 is with ffmpeg.
Code:
ffmpeg -i yourinputfile.mkv -f mp4 -vcodec copy -acodec libfaac -ac 2 -ab 160k youroutputfile.mp4
If you want a batch script to do it, I've written a quick one that should get the job done.
Code:
#!/bin/bash
# mp4maker.sh
# A batch mp4 making script that will convert and rename all in one step.
DIRECTORY=/shares/media/video/
FFMPEG='/usr/local/bin/ffmpeg'
find $DIRECTORY -type f -name '*.mkv' -exec $FFMPEG -i '{}' -f mp4 -vcodec copy -acodec libfaac -ac 2 -ab 160K -threads 0 '{}'.mp4 >>/dev/null 2>&1 \;
find $DIRECTORY -type f -name "*.mkv.mp4" | while read file; do
clean=`echo "$file" | sed 's/ /\\ /g'`
target=`echo "$clean" | sed 's/mkv.mp4/mp4/'`
removed=`echo "$target" | sed 's/mp4/mkv/'`
mv "$clean" "$target"
rm "$removed"
done
Probably not the most elegant, but it's simple and it gets the job done. Be sure to replace the DIRECTORY variable with the location of the files you want to convert and the FFMPEG variable with the location of your ffmpeg.
sassafras
Click to expand...
Click to collapse
I tried this before. I believe you posted somewhere in the handbrake thread.
Question.
Why would i only get a partial converted mp4 as my result?
I find the source file, drag and drop it onto the batch file and choose my selectin. The result however has been a movie which HAS been converted but is "cut" shirt if the end. Its not the full lenght movie
By the way, thanks for the work
why not just use an app that can play a .mkv format?
turbulent28 said:
I tried this before. I believe you posted somewhere in the handbrake thread.
Question.
Why would i only get a partial converted mp4 as my result?
I find the source file, drag and drop it onto the batch file and choose my selectin. The result however has been a movie which HAS been converted but is "cut" shirt if the end. Its not the full lenght movie
By the way, thanks for the work
Click to expand...
Click to collapse
This script is specifically for the linux command line. It will not work in Windows, nor in any linux desktop environment. If you'd like a batch script for Windows, let me know and I can probably dust one up.
sassafras
I've just started transencoding from 1080p to 720p (bit rate around 1500-2000) for playback on my transformer (i'm using moboplayer and mxplayer). The playback is ok but not quite as smooth as I would like (and is being handled by software).
I found this thread:
http://forum.xda-developers.com/showthread.php?t=1060825
-
that suggest things are simply broken (no video palyer will use hardware decoding) and that I should reencode the streams without b-frames (which will make them significantly larger).
-
I'm currently using mencoder but the guide suggest handbreak. Before I go through the exercise
I have a couple of questions:
Woudl things work better if I use mpeg-2 instead of h.263 ?
-
Will ICS make things better (i.e, should I not go with the larger non-b frame encodings) and just wait till ICS release in a few weeks?
-
Have there been any updates ?
-
Sadly my phone (razr) seems to be faster than my tablet and has no issues playing these videos (though if it uses hardware decoding the sound is way out of sync - by minutes - but if i use software decoding they are in sync - not sure why).
-
I've tested both avi containers and kmv containers - I think I prefer avi as it is smaller (though again I have to double check if the encodings were done with the same set of options)
jake21 said:
I've just started transencoding from 1080p to 720p (bit rate around 1500-2000) for playback on my transformer (i'm using moboplayer and mxplayer). The playback is ok but not quite as smooth as I would like (and is being handled by software).
Click to expand...
Click to collapse
FYI you can tell it to handle with h/w.
The players I tried refused to play it with h/w. Is there another way to force hardware decoding ?
goodintentions said:
FYI you can tell it to handle with h/w.
Click to expand...
Click to collapse
Try BS player lite.
Sent from my PC36100 using Tapatalk
try using h.264 not 263,
try remuxing the stream rather than recoding http://forum.xda-developers.com/showthread.php?t=1102922
its far quicker
bs lite coudlnt' play it using hardware deocding either:
First test file:
mencoder -mc 0 in.mkv -vf crop=1920:800:0:140 -af volume=10:0 -nosub -oac mp3lame -lameopts abr:br=256 -ovc xvid -vf scale=1280:720 -xvidencopts bitrate=1200 -o test3.avi
file test3.avi
test3.avi: RIFF (little-endian) data, AVI, 1280 x 720, 23.98 fps, video: XviD, audio: MPEG-1 Layer 3 (stereo, 48000 Hz)
Second test file:
mencoder in.mkv -af volume=15:0 -of lavf -oac mp3lame -lameopts abr:br=256 -ovc x264 -x264encopts preset=veryslow:tune=film:crf=15:frameref=15:bitrate=1500:fast_pskip=0:threads=auto -vf scale=1280:-10 -o test.mkv
--
mkvinfo test.mkv
+ EBML head
|+ EBML version: 1
|+ EBML read version: 1
|+ EBML maximum ID length: 4
|+ EBML maximum size length: 8
|+ Doc type: matroska
|+ Doc type version: 2
|+ Doc type read version: 2
+ Segment, size 1484420071
|+ Seek head (subentries will be skipped)
|+ EbmlVoid (size: 147)
|+ Segment information
| + Timecode scale: 1000000
| + Muxing application: Lavf53.3.0
| + Writing application: Lavf53.3.0
| + Segment UID: 0x77 0x2f 0xa7 0xdf 0x88 0x3d 0xd1 0xfd 0x43 0x75 0x02 0x94 0xad 0x96 0x87 0x0a
| + Duration: 6792.096s (01:53:12.096)
|+ Segment tracks
| + A track
| + Track number: 1
| + Track UID: 1
| + Lacing flag: 0
| + Language: und
| + Codec ID: V_MPEG4/ISO/AVC
| + Track type: video
| + Default duration: 41.708ms (23.976 fps for a video track)
| + Video track
| + Pixel width: 1280
| + Pixel height: 720
| + A track
| + Track number: 2
| + Track UID: 2
| + Lacing flag: 0
| + Language: und
| + Codec ID: A_MPEG/L3
| + Track type: audio
| + Audio track
| + Channels: 2
| + Sampling frequency: 48000
| + CodecPrivate, length 12
|+ Tags
| + Tag
| + Targets
| + Simple
| + Name: ENCODER
| + String: Lavf53.3.0
|+ Cluster
jake21 said:
bs lite coudlnt' play it using hardware deocding either:
Here is the command line I used to generate the file:
mencoder in.mkv -af volume=15:0 -of lavf -oac mp3lame -lameopts abr:br=256 -ovc x264 -x264encopts preset=veryslow:tune=film:crf=15:frameref=15:bitrate=1500:fast_pskip=0:threads=auto -vf scale=1280:-10 -o test.mkv
--
mkvinfo test.mkv
Click to expand...
Click to collapse
There's your problem; the mkv container is not supported for hardware decoding. With the current firmwares, I seem to recall only .mp4 is supported.
Here's my re-encode script that I use (I use ffmpeg ; I used to use mencoder, but it's weakness with non-avi formats pushed me to ffmpeg)
Code:
#!/bin/bash
# first argument is input file,
# second argument is output file or directory
# optional third argument is crf, lower is better quality, but I've had issues with large motion screens and values lower than 22
# optional 4th arg is audio bitrate, include k.
threads=2
[email protected]
# debug
#ffmpeg="echo ffmpeg"
ffmpeg="ffmpeg"
if [[ $3 = "" ]] ; then
VRATE="22"
else
VRATE="$3"
fi
if [[ $4 = "" ]] ; then
ARATE="96k"
else
ARATE="$4"
fi
#if [ -d "$2" || -L "$2" ] ; then
if [ -d "$2" ] ; then
echo $1 | grep "\." > /dev/null ; TRET=$?
if (( $TRET == 0 )) ; then
# name as a dot
oname="$2/`echo $1 | rev | cut -f 2- -d. | rev`.mp4"
else
oname="$2/$1.mp4"
fi
else
echo $2 | grep "\." > /dev/null ; TRET=$?
if (( $TRET == 0 )) ; then
# name as a dot
oname="`echo $2 | rev | cut -f 2- -d. | rev`.mp4"
else
oname="$2.mp4"
fi
fi
# tune Values available: film, animation, grain, stillimage, psnr, ssim, fastdecode, zerolatency.
# new ffmpeg crashes with -profile baseline
$ffmpeg -i $1 -acodec libfaac -ac 2 -ab $ARATE -vprofile baseline -vcodec libx264 -x264opts threads=$threads:level=31:keyint=250:keyint_min=25:bframes=0:crf=$VRATE $oname
The script is fairly simple, but I still find it quite useful. Note, don't do "script infile.mp4 . " as that will over write your source file, and I note I don't check for that. Maybe ffmpeg might, but it's a silly enough issue that I'm not fixing that.
I've never had an issue with mx player nor mobo player not doing hardware decoding (even via smb streaming with es file manager) , however since 3.11.1 on revolver, mobo player force closes when I quit, but I think that's a mobo player issue, as it often locks up my Galaxy-S with hardware, or software encoding in the latest version.
[update; ble the provided script did not work with ubuntu 11.10; I think they changed the switches for ffmpeg as it could not parse the switches after x264 nor baseline switch].
Ok thanks. Surprise the first example I have above, which is an avi file, did not work either
--
I'll look at what you have - i have to figure out how to scale down the image to 720p (from the man page it looks like ffmpeg does not support -vf scale=1280:-1)
-
Before I go to the effort of learning how to use ffmpeg; do you know if ICS will resolve this issue ?
[btw I have the same force-close issue with mobo on razr and transformer]
nobeagle said:
There's your problem; the mkv container is not supported for hardware decoding. With the current firmwares, I seem to recall only .mp4 is supported.
Here's my re-encode script that I use (I use ffmpeg ; I used to use mencoder, but it's weakness with non-avi formats pushed me to ffmpeg)
Code:
#!/bin/bash
# first argument is input file,
# second argument is output file or directory
# optional third argument is crf, lower is better quality, but I've had issues with large motion screens and values lower than 22
# optional 4th arg is audio bitrate, include k.
threads=2
[email protected]
# debug
#ffmpeg="echo ffmpeg"
ffmpeg="ffmpeg"
if [[ $3 = "" ]] ; then
VRATE="22"
else
VRATE="$3"
fi
if [[ $4 = "" ]] ; then
ARATE="96k"
else
ARATE="$4"
fi
#if [ -d "$2" || -L "$2" ] ; then
if [ -d "$2" ] ; then
echo $1 | grep "\." > /dev/null ; TRET=$?
if (( $TRET == 0 )) ; then
# name as a dot
oname="$2/`echo $1 | rev | cut -f 2- -d. | rev`.mp4"
else
oname="$2/$1.mp4"
fi
else
echo $2 | grep "\." > /dev/null ; TRET=$?
if (( $TRET == 0 )) ; then
# name as a dot
oname="`echo $2 | rev | cut -f 2- -d. | rev`.mp4"
else
oname="$2.mp4"
fi
fi
# tune Values available: film, animation, grain, stillimage, psnr, ssim, fastdecode, zerolatency.
# new ffmpeg crashes with -profile baseline
$ffmpeg -i $1 -acodec libfaac -ac 2 -ab $ARATE -vprofile baseline -vcodec libx264 -x264opts threads=$threads:level=31:keyint=250:keyint_min=25:bframes=0:crf=$VRATE $oname
The script is fairly simple, but I still find it quite useful. Note, don't do "script infile.mp4 . " as that will over write your source file, and I note I don't check for that. Maybe ffmpeg might, but it's a silly enough issue that I'm not fixing that.
I've never had an issue with mx player nor mobo player not doing hardware decoding (even via smb streaming with es file manager) , however since 3.11.1 on revolver, mobo player force closes when I quit, but I think that's a mobo player issue, as it often locks up my Galaxy-S with hardware, or software encoding in the latest version.
Click to expand...
Click to collapse
I could not get the provided script to work (ffmpeg would not accept the args). I did a little searching and saw one suggestion to install everythign from source and build - BUT the test encodings I made last night worked on both the phone and tablet using hardware encoding. On the phone mx player was fine; on the tablet mx player would only use software encoding but bs lite (which seemed pretty nice) worked fine and indicated it was using hardware decoding.
So I think I'm mostly set. the only issue I have is that sometimes mencoder dies on some streams with floating error when it reads the initial header - so I guess I should track that one down - when I get home tonight I'll post the args I used that worked and then ones that result in floating point error (on some streams).
Thanks for the help !