![]() |
Re: Tablet-encode & mencoder
Quote:
http://www.maemopeople.org/index.php...uch_improved_d To set the default preset and to always enable 770-compatibility mode, create ~/.tablet-encode.conf and put in it: Code:
$options{770} = 1; Let me know if you have any problems. |
Re: Tablet-encode & mencoder
Is it possible to add few more parameters for the tablet-encode? I tried to use "--mencoder=ARGn" but couldn't get it working.
I have some kung-fu DVDs which have English audio set as a default and when I make conversion, tablet-encode selects it. However I would like to have original Chinese audio with English subtitles. I have also used few other parameters with my own script (based to ones found on maemo.org wiki) which I would like to see also in tablet-encode. One of those is possibility to keep original aspect ratio and still crop black borders away. Videos will be 400 pixels (or whatever is set as resolution) wide and height will be automatically calculated based on aspect ratio. At least mplayer plays these videos correctly and black borders aren't encoded at all. These are the mencoder parameters I would like to see in tablet-encode: #Audio language e.g "zh" -alang <lang code> #Subtitle language e.g "en" -slang <lang code> #Subtitle font and its size -subfont-text-scale 7 -spuaa 3 -subcp latin1 #Crop value and scaling to correct aspect ratio. -vf crop <x:x:x:x>,scale=400:-10 I have used "mplayer dvd://$TITLE -vf cropdetect" to get correct crop value. Crop value can be different in the start of the movie so I have selected manually a position which I would like to use as a crop value and then I have then put it as a parameter for "-vf crop". Here is the script I have used to convert my DVDs. It's bit rough edged but it has been working just fine for me :) Code:
#!/bin/bash |
Re: Tablet-encode & mencoder
mve, thanks for the feedback.
* Auto-cropping using cropdetect is possible, but why've you got videos with encoded black bars in them anyway? ;-) I'll look into it for the next version. * Original aspect ratio can be maintained with --original-aspect (-o). * -alang is passed through for auto-detected DVDs, based on $LANG. I'll look at doing it more often. * --mencoder=ARGn should work, e.g.: Code:
tablet-encode -o -m-alang -mzh -m-slang -men in.avi out.avi Hope that helps, Andrew |
Re: Tablet-encode & mencoder
Quote:
Quote:
|
Re: Tablet-encode & mencoder
Quote:
|
Re: Tablet-encode & mencoder
Tablet-encode is awesome!
I wanted to set it up to automatically encode all the files I download with azureus... not there yet, but I ran into a bug with mencoder and mkvs that I've run into before, where it cuts short mkv files while encoding randomly. My point is, I found where someone wrote up a workaround for it, and the way you can pass any mencoder option to tablet encode via -m let me use it really easily. Thanks a ton for this great program! :) (The other awesome part about tablet encode to me? I can launch a progress bar for my conversion from the command line, meaning I can automate things with visual feedback. And if I put it inside screen first, I can get remote console feedback on the progress of files, too! :)) |
Re: Tablet-encode & mencoder
If the option is something which could always be passed for *.mkv files without any problems, let me know and I'll stick it in by default.
|
Re: Tablet-encode & mencoder
That'd be great! It could be passed without issue; the way I do it does add a bit of extra time (about 10 seconds on my machine) to the process up front, though. I know there are better ways to do it -- you can extract the audio first -- I just haven't bothered.
The bug can be summed up as: mencoder has trouble with mkvs when it has to also decode the audio for some reason; I know nothing of the technical details. The workaround I use is a bash script; I thought about modifying tablet-encode, but I know almsot no perl. Problem with how I do it is, what if you are not on a Linux system? I don't know if other systems work the same way or how to adapt it. Here's what I do, without the stuff specific to me: Code:
#!/bin/bash |
Re: Tablet-encode & mencoder
Quote:
-nyu2 |
Re: Tablet-encode & mencoder
Quote:
For the above command line options, put this in ~/.tablet-encode.conf: Code:
$options{'original-aspect'} = 1; Hope that helps, Andrew |
All times are GMT. The time now is 23:09. |
vBulletin® Version 3.8.8