Convertire un video flv in avi da linux: Difference between revisions
Jump to navigation
Jump to search
m New page: {{Stub}} Installare mencoder: sudo apt-get install mencoder Creare lo script: <pre> #!/bin/sh if [ -z "$1" ]; then echo "Usage: $0 {-divx|-xvid} list_of_flv_files" exit 1 fi # v... |
(No difference)
|
Latest revision as of 13:56, 30 July 2007
| Attenzione questo articolo è ancora incompleto. Sentiti libero di contribuire cliccando sul tasto edit. |
Installare mencoder:
sudo apt-get install mencoder
Creare lo script:
#!/bin/sh
if [ -z "$1" ]; then
echo "Usage: $0 {-divx|-xvid} list_of_flv_files"
exit 1
fi
# video encoding bit rate
V_BITRATE=1000
while [ "$1" ]; do
case "$1" in
-divx)
MENC_OPTS="-ovc lavc -lavcopts \
vcodec=mpeg4:vbitrate=$V_BITRATE:mbd=2:v4mv:autoaspect"
;;
-xvid)
MENC_OPTS="-ovc xvid -xvidencopts bitrate=$V_BITRATE:autoaspect"
;;
*)
if file "$1" | grep -q "Macromedia Flash Video"; then
mencoder "$1" $MENC_OPTS -vf pp=lb -oac mp3lame \
-lameopts fast:preset=standard -o \
"`basename $1 .flv`.avi"
else
echo "$1 is not Flash Video. Skipping"
fi
;;
esac
shift
done
convertire il file con:
flv2avi.sh -divx first_vid.flv second_vid.flv etc.flv.