Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Panasonicin kuvat xvideiksi
- #!/bin/bash
- for myfile in *.mov
- do
- if [ -f "$myfile" ]
- then
- #TMP1=`mktemp -t panasonic_audio.XXXXXXXXXX`
- #TMP2=`mktemp -t panasonic_audio2.XXXXXXXXXX`
- #TMP3=`mktemp -t panasonic_pass1.XXXXXXXXXX`
- TMP1=tmp1.dat
- TMP2=tmp2.dat
- TMP3=tmp3.dat
- echo "$myfile"
- ALKUOSA=`echo $myfile |cut -b 1-8`
- mplayer -novideo -ao pcm:file=$TMP1 "$myfile"
- resample -to 44100 $TMP1 $TMP2
- mencoder -vf-add harddup -audiofile $TMP2 -o $TMP3 -oac lavc -lavcopts acodec=libmp3lame:abitrate=64 \
- -ovc xvid -xvidencopts pass=1:bitrate=100:vhq=4 -of lavf "$myfile"
- mencoder -vf-add harddup -audiofile $TMP2 -o $ALKUOSA.avi -oac lavc -lavcopts acodec=libmp3lame:abitrate=64 \
- -ovc xvid -xvidencopts pass=2:bitrate=100:vhq=4 -of lavf "$myfile"
- rm $TMP1 $TMP2 $TMP3
- else
- echo "$myfile"
- fi
- echo "$myfile"
- done
- exit
Add Comment
Please, Sign In to add comment