1) To convert mp4 video to avi:
mencoder video.mp4 -ovc lavc -vf scale=352:288 -oac lavc -o video.avi
2) To convert avi to mpeg video:
ffmpeg -i video.avi -target pal-vcd video.mpg
or
ffmpeg -i video.avi -target pal-vcd -s 352x192 -padtop 32 -padbottom 32 video.mpg
Note: -target pal-vcd is for PAL. For NTSC, use -target ntsc-vcd. -padtop 32 and -padbottom 32 will add black padding at the top and bottom.
In certain cases, if you have problem with de-sync audio for the resulted mpeg, try using mencoder like this for PAL format VCD:
mencoder -oac lavc -ovc lavc -of mpeg -mpegopts format=xvcd -vf \
scale=352:288,harddup -srate 44100 -af lavcresample=44100 -lavcopts \
vcodec=mpeg1video:keyint=15:vrc_buf_size=327:vrc_minrate=1152:\
vbitrate=1152:vrc_maxrate=1152:acodec=mp2:abitrate=224 -ofps 25 \
-o movie.mpg movie.avi
3) To convert avi to SVCD format:
ffmpeg -i video.avi -target pal-svcd video.mpg
Note: -target pal-svcd is for PAL. For NTSC, use -target ntsc-svcd.
see details in http://muhdzamri.blogspot.com/search/label/ffmpeg
4) To convert wmv to avi format
mencoder infile.wmv -ofps 23.976 -ovc lavc -oac copy -o outfile.avi
5) To convert mov to avi format
mencoder -ovc copy -oac pcm -o output.avi
2. Split Video file
1) To split avi
avisplit -s 700 -i my_file.avi
will split the file my_file.avi into chunks which's maximum size will not exceed 700 MB, i.e. they will fit onto a CD, each. The created chunks will be named my_file.avi-0000, my_file.avi-0001, etc.
see details in http://www.transcoding.org/cgi-bin/transcode?Avisplit
2. To split mpeg
mpgtx -166 matrix-trailer.mpg -b mychunk
will split matrix-trailer.mpg into 166 playable chunks with the basename mychunk
see details in http://mpgtx.sourceforge.net/#Examples
0 comments:
Post a Comment