Difference between revisions of "Avi"
Jump to navigation
Jump to search
Line 5: | Line 5: | ||
-endpos End Position | -endpos End Position | ||
− | ==Combining AVI's | + | ==Combining AVI's with mencoder== |
First, combine the two AVI's via shell redirection: | First, combine the two AVI's via shell redirection: | ||
cat file1.avi file2.avi >> output.avi | cat file1.avi file2.avi >> output.avi | ||
Line 11: | Line 11: | ||
Next, re-encode the file so that things are synced properly: | Next, re-encode the file so that things are synced properly: | ||
mencoder -forceidx -oac copy -ovc copy infile.avi -o outfile.avi | mencoder -forceidx -oac copy -ovc copy infile.avi -o outfile.avi | ||
+ | |||
+ | ==Re-encoding MPG to AVI format== | ||
+ | ===mencoder=== | ||
+ | This is an untested solution: | ||
+ | |||
+ | input_filename.mpg | ||
+ | -ovc codec for video output | ||
+ | -oac codec for audio output | ||
+ | -o output_filename.avi | ||
+ | |||
+ | mencoder <filename.avi> -ovc lavc -oac lavc -o <output.avi> | ||
+ | ===Transcode=== | ||
+ | -i input_filename.mpg | ||
+ | |||
+ | -y codec for audio/video output | ||
+ | -o output_filename.avi | ||
+ | |||
+ | transcode -i movie.mpg -o movie.avi -y xvid |
Revision as of 09:18, 28 October 2007
Contents
Splitting AVI's with mencoder
mencoder -ovc copy -oac copy -ss 56:54 -endpos 11:07 -o output.avi input.avi
-ss Start Position -endpos End Position
Combining AVI's with mencoder
First, combine the two AVI's via shell redirection:
cat file1.avi file2.avi >> output.avi
Next, re-encode the file so that things are synced properly:
mencoder -forceidx -oac copy -ovc copy infile.avi -o outfile.avi
Re-encoding MPG to AVI format
mencoder
This is an untested solution:
input_filename.mpg -ovc codec for video output -oac codec for audio output -o output_filename.avi
mencoder <filename.avi> -ovc lavc -oac lavc -o <output.avi>
Transcode
-i input_filename.mpg
-y codec for audio/video output -o output_filename.avi
transcode -i movie.mpg -o movie.avi -y xvid