dedeibel
Active Member
Hi,
I created a bash script for encoding Videos with mencoder (mplayer) for the gp2x and thought maybe someone finds it usefull. It is meant for ppl who don't like to remember their default settings and have the gp2x-ready movies in one directory.
You can set a default directory (outputDir) and most of the time it is enough to type "reencode in <file ...>". I tried a lot of encoding settings and set the best as default.
Examples:
I hope you like it.
reencode
regards
dedeibel
I created a bash script for encoding Videos with mencoder (mplayer) for the gp2x and thought maybe someone finds it usefull. It is meant for ppl who don't like to remember their default settings and have the gp2x-ready movies in one directory.
You can set a default directory (outputDir) and most of the time it is enough to type "reencode in <file ...>". I tried a lot of encoding settings and set the best as default.
Examples:
Code:
reencode in justdoit.avi
reencode dvd 2 sample 45m
reencode -d 1-2 out /tmp/mymovie.avi extra -chapter 4-8 -alang jp
reencode -i ~/greatmovie.mpg -sub ~/sub.srt codec xvid rate 300 cartoon
reencode in oneFile.avi anotherFile.mpg
reencode in *.mpg -o /tmp
reencode in *.mpg - out /tmp
Code:
reencode OPTION VALUE ... [-e|extra VALUES ...]
OPTIONS [default]:
-i | in Infiles (Has to be at the end or followed by a '-')
-d | dvd Encode from a DVD (specify titles)
-o | out Outfile or directory [<infile>-small.avi]
-c | codec Codec lavc,xvid [lavc]
-r | rate Bitrate [250]
-s | scale Scale [320:-3]
-p | pass Passes [1]
-t | cartoon Use cartoon mode (xvid only)
-a | audio Audio bitrate [64]
-m | arate Audio samplerate [22050]
-l | sample Get a sample, specify starttime (Nh or Nm or hh:mm:ss)
-u | sub Subtitle file [none]
-e | extra Extra options for mencoder (Has to be the last option)
I hope you like it.
reencode
regards
dedeibel