Videokonvertering

Author:

At lave media-formater om på Ubuntu er nemt – brug fx. mencoder til…

At lave VOB (fra KISS VR-558) om til Xvid:

mencoder INPUTFIL.vob -o OUTPUTFIL.avi -oac mp3lame-lameopts vbr=3:br=128:fast -ovc lavc -lavcopts threads=8:abitrate=96:vcodec=mpeg4:vbitrate=500:mbd=2:trell:v4mv:turbo -vf scale=400:320

At lave VOB (fra KISS VR-558) om til MKV (MPEG4, x264):

#!/bin/bash
# Will convert VOB-files from the KISS
# Pay attention to the crop-directive - here is used crop=710:564:5:6
# derived from the original broadcast-standard 720x576
#
# 710 is horizontal resolution
# 564 is vertical
# 5 is horiz cropping counted from left (subsequently 5 from right)
# 6 is vertical cropping counted from top (subsequently 6 from bottom)
#
# Translated into human: it will take 6 lines of the top and bottom + 5 of left and right
#
INNAME=Inputfile.vob
OUTNAME=Outputfile.mkv
#
# first pass
#
mencoder $INNAME \
-o $OUTNAME \
-oac mp3lame \
-lameopts vbr=3:br=128:fast \
-ovc x264 \
-x264encopts subq=4:bframes=3:b_pyramid:weight_b:turbo=1:pass=1:psnr:bitrate=1000 \
-vf pullup,softskip,crop=710:564:5:6,scale=400:320
#
# Second pass
#
mencoder $INNAME \
-o $OUTNAME \
-oac mp3lame \
-lameopts vbr=3:br=128:fast \
-ovc x264 \
-x264encopts subq=6:4×4mv:8×8dct:me=3:frameref=5:bframes=3:b_pyramid:weight_b:pass=2:psnr:bitrate=1000 \
-vf pullup,softskip,crop=710:564:5:6,scale=400:320

Det tager væsentligt længere, men er pænere.

Leave a ReplyCancel reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.