Buenas, tengo un DVD que me acepta el formato VCD y me gustaria saber y si algun programa para pasar los .avi a .mpg y que sea algo mas rapido que la mayoria ..
Me vale con aquellos que utiliceis ustedes y los considereis mejores.
Gracias
Buenas, tengo un DVD que me acepta el formato VCD y me gustaria saber y si algun programa para pasar los .avi a .mpg y que sea algo mas rapido que la mayoria ..
Me vale con aquellos que utiliceis ustedes y los considereis mejores.
Gracias
Existe un script de bash basado en mplayer chulísimo, pero antes de nada... ¿estás hablando de software libre? :/
divX to VCD
-- Inicio divx2vcd --
#!/bin/bash
DIR=pwd
TEMPFOLDER=/tmp/divx2vcd-$RANDOM
TEMP_TEMPLATE=/tmp/tcmplex-template-$RANDOM
CDSIZE=795
#VIDEORATE=1150
AUDIORATE=224
if [ $# -eq 0 ]; then
echo "Usage:"
echo " divx2vcd <divxfile>"
exit 1
fi
FILE=$1
if [ "$1" == "basename \"$1\"
" ]; then
FILE="$DIR/$1"
fi
mkdir $TEMPFOLDER
cd $TEMPFOLDER
tcprobe -i "$FILE" > $TEMPFOLDER/info
WIDTH=grep '\[avilib\] V:' $TEMPFOLDER/info | \
perl -e ' $line=<STDIN> ; $line =~ /width=(\d+)/ ; print $1'
HEIGHT=grep '\[avilib\] V:' $TEMPFOLDER/info | \
perl -e ' $line=<STDIN> ; $line =~ /height=(\d+)/ ; print $1'
FPS=grep '\[avilib\] V:' $TEMPFOLDER/info | \
perl -e ' $line=<STDIN> ; $line =~ /V: (.+?) fps/ ; print $1'
FPS_1=echo "scale=1 ; $FPS/1"| bc -l
FRAMES=grep '\[avilib\] V:' $TEMPFOLDER/info | \
perl -e ' $line=<STDIN> ; $line =~ /frames=(\d+)/ ; print $1'
SEGUNDOS_TOTAL=echo "scale=0 ; ($FRAMES / $FPS)"| bc -l
HORAS=echo "scale=0 ; ($SEGUNDOS_TOTAL / 3600)"| bc -l
MINUTOS=echo "scale=0 ; (($SEGUNDOS_TOTAL - 3600 * $HORAS)/60)"| \
bc -l
SEGUNDOS=echo "scale=0 ; ($SEGUNDOS_TOTAL % 60)"| bc -l
echo "*************** FILE INFO ***************"
echo "Frame Size: ${WIDTH}x${HEIGHT} - FPS: $FPS"
echo "Length: $FRAMES - Seconds: $SEGUNDOS_TOTAL"
echo "$HORAS hours, $MINUTOS minutes, $SEGUNDOS seconds"
if [ $FPS_1 == "29.9" -o $FPS_1 == "30" -o $FPS_1 == "23.9" ]; then
WIDTH_OUT=352
HEIGHT_OUT=240
else
WIDTH_OUT=352
HEIGHT_OUT=288
fi
echo "Video Output: ${WIDTH_OUT}x${HEIGHT_OUT}"
ANCHO_1_1_OUT=echo "($HEIGHT_OUT * 4/3)"| bc -l
ALTO_OUT=echo "$HEIGHT / ($WIDTH / $ANCHO_1_1_OUT)" | bc -l
ALTO_OUT=echo "scale=0 ; $ALTO_OUT/1"| bc -l
ALTO_OUT=echo "scale=0 ; $ALTO_OUT+$ALTO_OUT%2" | bc -l
BORDE=echo "scale=0 ; ($HEIGHT_OUT-$ALTO_OUT)/2"| bc -l
echo "alto sin bordes: $ALTO_OUT, con borde: $BORDE"
rm -f Pelicula.m1v Pelicula.mpa
cd $TEMPFOLDER
echo "transcode -i \"$FILE\" -V -x mplayer -y mpeg2enc,mp2enc \
-F 1 -Z ${WIDTH_OUT}x$ALTO_OUT -Y -$BORDE,0,-$BORDE,0 \
--export_asr 2 -E 44100 -b $AUDIORATE -o $DIR/Pelicula"
transcode -i "$FILE" -V -x mplayer -y mpeg2enc,mp2enc \
-F 1 -Z ${WIDTH_OUT}x$ALTO_OUT -Y -$BORDE,0,-$BORDE,0 \
--export_asr 2 -E 44100 -b $AUDIORATE -o $DIR/Pelicula
rm $TEMPFOLDER/*
rmdir $TEMPFOLDER
cd $DIR
[ -f Pelicula.m1v -a -f Pelicula.mpa ] || exit 1
rm -f Pelicula*.mpg
#Ahora multiplexamos el .mpg
echo "maxFileSize = $CDSIZE" > $TEMP_TEMPLATE
tcmplex -i Pelicula.m1v -p Pelicula.mpa -o Pelicula.mpg \
-m 1 -F $TEMP_TEMPLATE
rm $TEMP_TEMPLATE
for i in ls Pelicula*mpg
; do
vcdimager -t vcd2 -c $i.cue -b $i.bin $i
done
-- Final divx2vcd --
divX to CVCD
-- Inicio divx2cvcd --
#!/bin/bash
DIR=pwd
TEMPFOLDER=/tmp/divx2vcd-$RANDOM
TEMP_TEMPLATE=/tmp/tcmplex-template-$RANDOM
CDSIZE=795
QUANTUM=5
#MAXRATE=900
AUDIORATE=128
if [ $# -eq 0 ]; then
echo "Usage:"
echo " divx2cvcd <divxfile>"
exit 1
fi
FILE=$1
if [ "$1" == "basename \"$1\"
" ]; then
FILE="$DIR/$1"
fi
mkdir $TEMPFOLDER
cd $TEMPFOLDER
tcprobe -i "$FILE" > $TEMPFOLDER/info
WIDTH=grep '\[avilib\] V:' $TEMPFOLDER/info | \
perl -e ' $line=<STDIN> ; $line =~ /width=(\d+)/ ; print $1'
HEIGHT=grep '\[avilib\] V:' $TEMPFOLDER/info | \
perl -e ' $line=<STDIN> ; $line =~ /height=(\d+)/ ; print $1'
FPS=grep '\[avilib\] V:' $TEMPFOLDER/info | \
perl -e ' $line=<STDIN> ; $line =~ /V: (.+?) fps/ ; print $1'
FPS_1=echo "scale=1 ; $FPS/1"| bc -l
FRAMES=grep '\[avilib\] V:' $TEMPFOLDER/info | \
perl -e ' $line=<STDIN> ; $line =~ /frames=(\d+)/ ; print $1'
SEGUNDOS_TOTAL=echo "scale=0 ; ($FRAMES / $FPS)"| bc -l
HORAS=echo "scale=0 ; ($SEGUNDOS_TOTAL / 3600)"| bc -l
MINUTOS=echo "scale=0 ; (($SEGUNDOS_TOTAL - \
3600 * $HORAS)/60)"| bc -l
SEGUNDOS=echo "scale=0 ; ($SEGUNDOS_TOTAL % 60)"| bc -l
VIDEO_RATE=echo "scale=0 ;(($CDSIZE * 1024 - \
($AUDIORATE/8*$SEGUNDOS_TOTAL))*8 / $SEGUNDOS_TOTAL)"| bc -l
MAXRATE=echo "scale=0 ; ($VIDEO_RATE * 105 / 100)" | bc -l
echo "*************** FILE INFO ***************"
echo "Frame Size: ${WIDTH}x${HEIGHT} - FPS: $FPS"
echo "Length: $FRAMES - Seconds: $SEGUNDOS_TOTAL"
echo "$HORAS hours, $MINUTOS minutes, $SEGUNDOS seconds"
echo "Recommended averagge video bitrate: $VIDEO_RATE"
echo "Using max video bitrate: $MAXRATE"
if [ $FPS_1 == "29.9" -o $FPS_1 == "30" -o $FPS_1 == "23.9" ]; then
WIDTH_OUT=352
HEIGHT_OUT=240
else
WIDTH_OUT=352
HEIGHT_OUT=288
fi
echo "Video Output: ${WIDTH_OUT}x${HEIGHT_OUT}"
ANCHO_1_1_OUT=echo "($HEIGHT_OUT * 4/3)"| bc -l
ALTO_OUT=echo "$HEIGHT / ($WIDTH / $ANCHO_1_1_OUT)" | bc -l
ALTO_OUT=echo "scale=0 ; $ALTO_OUT/1"| bc -l
ALTO_OUT=echo "scale=0 ; $ALTO_OUT+$ALTO_OUT%2" | bc -l
BORDE=echo "scale=0 ; ($HEIGHT_OUT-$ALTO_OUT)/2"| bc -l
echo "alto sin bordes: $ALTO_OUT, con borde: $BORDE"
rm -f Pelicula.m1v Pelicula.mpa
cd $TEMPFOLDER
echo "transcode -i \"$FILE\" -V -x mplayer -y mpeg2enc,mp2enc \
-F 2,\"-q $QUANTUM\" -Z ${WIDTH_OUT}x$ALTO_OUT -Y -$BORDE,0,-$BORDE,0 \
--export_asr 2 -E 44100 -b $AUDIORATE -o $DIR/Pelicula -w $MAXRATE"
transcode -i "$FILE" -V -x mplayer -y mpeg2enc,mp2enc \
-F 2,"-q $QUANTUM" -Z ${WIDTH_OUT}x$ALTO_OUT -Y -$BORDE,0,-$BORDE,0 \
--export_asr 2 -E 44100 -b $AUDIORATE -o $DIR/Pelicula -w $MAXRATE
rm $TEMPFOLDER/*
rmdir $TEMPFOLDER
cd $DIR
[ -f Pelicula.m1v -a -f Pelicula.mpa ] || exit 1
rm -f Pelicula*.mpg
#Ahora multiplexamos el mpg
echo "maxFileSize = $CDSIZE" > $TEMP_TEMPLATE
tcmplex -i Pelicula.m1v -p Pelicula.mpa -o Pelicula.mpg \
-m 1 -F $TEMP_TEMPLATE
rm $TEMP_TEMPLATE
for i in ls Pelicula*.mpg
; do
vcdimager -t vcd2 -c $i.cue -b $i.bin $i
done
-- Final divx2cvcd --
divX to SVCD
-- Inicio divx2svcd --
#!/bin/bash
DIR=pwd
TEMPFOLDER=/tmp/divx2svcd-$RANDOM
TEMPLATE=$TEMPFOLDER/template
CDSIZE=795
QUANTUM=7
MAXVIDEORATE=4000000
AUDIORATE=160
if [ $# -eq 0 ]; then
echo "Usage:"
echo " divx2svcd <divxfile>"
exit 1
fi
FILE=$1
if [ "$1" == "basename \"$1\"
" ]; then
FILE="$DIR/$1"
fi
mkdir $TEMPFOLDER
cd $TEMPFOLDER
echo "quant_value = $QUANTUM" > $TEMPLATE
echo "max_bitrate = $MAXVIDEORATE" >> $TEMPLATE
echo "Dir: $DIR"
echo "Temp: $TEMPFOLDER"
tcprobe -i "$FILE" > $TEMPFOLDER/info
WIDTH=grep '\[avilib\] V:' $TEMPFOLDER/info | \
perl -e ' $line=<STDIN> ; $line =~ /width=(\d+)/ ; print $1'
HEIGHT=grep '\[avilib\] V:' $TEMPFOLDER/info | \
perl -e ' $line=<STDIN> ; $line =~ /height=(\d+)/ ; print $1'
FPS=grep '\[avilib\] V:' $TEMPFOLDER/info | \
perl -e ' $line=<STDIN> ; $line =~ /V: (.+?) fps/ ; print $1'
FPS=echo "scale=1 ; $FPS/1"| bc -l
FRAMES=grep '\[avilib\] V:' $TEMPFOLDER/info | \
perl -e ' $line=<STDIN> ; $line =~ /frames=(\d+)/ ; print $1'
SEGUNDOS_TOTAL=echo "scale=0 ; ($FRAMES / $FPS)"| bc -l
HORAS=echo "scale=0 ; ($SEGUNDOS_TOTAL / 3600)"| bc -l
MINUTOS=echo "scale=0 ; (($SEGUNDOS_TOTAL - 3600 * $HORAS)/60)"| \
bc -l
SEGUNDOS=echo "scale=0 ; ($SEGUNDOS_TOTAL % 60)"| bc -l
echo "*************** FILE INFO ***************"
echo "Frame Size: ${WIDTH}x${HEIGHT} - FPS: $FPS"
echo "Length: $FRAMES - Seconds: $SEGUNDOS_TOTAL"
echo "$HORAS hours, $MINUTOS minutes, $SEGUNDOS seconds"
if [ $FPS == "29.9" -o $FPS == "30" -o $FPS == "23.9" ]; then
WIDTH_OUT=480
HEIGHT_OUT=480
MPEG_OPTIONS=s,2,$TEMPLATE
else
WIDTH_OUT=480
HEIGHT_OUT=576
MPEG_OPTIONS=s,3,$TEMPLATE
fi
echo "Salida: $WIDTH_OUT x $HEIGHT_OUT"
ANCHO_1_1_OUT=echo "($HEIGHT_OUT * 4/3)"| bc -l
ALTO_OUT=echo "$HEIGHT / ($WIDTH / $ANCHO_1_1_OUT)" | bc -l
ALTO_OUT=echo "scale=0 ; $ALTO_OUT/1"| bc -l
ALTO_OUT=echo "scale=0 ; $ALTO_OUT+$ALTO_OUT%2" | bc -l
BORDE=echo "scale=0 ; ($HEIGHT_OUT-$ALTO_OUT)/2"| bc -l
echo "alto sin bordes: $ALTO_OUT, con borde: $BORDE"
rm -f Pelicula.m2v Pelicula.mpa
cd $TEMPFOLDER
echo "transcode -i \"$FILE\" -V -x mplayer -y mpeg \
-F $MPEG_OPTIONS -Z ${WIDTH_OUT}x$ALTO_OUT -Y -$BORDE,0,-$BORDE,0 \
--export_asr 2 -E 44100 -b $AUDIORATE -o $DIR/Pelicula"
transcode -i "$FILE" -V -x mplayer -y mpeg \
-F $MPEG_OPTIONS -Z ${WIDTH_OUT}x$ALTO_OUT -Y -$BORDE,0,-$BORDE,0 \
--export_asr 2 -E 44100 -b $AUDIORATE -o $DIR/Pelicula
cd $DIR
[ -f Pelicula.m2v -a -f Pelicula.mpa ] || exit 1
rm -f Pelicula*.mpg
echo "maxFileSize = $CDSIZE" >> $TEMPLATE
#Ahora multiplexamos el .mpg
tcmplex -i Pelicula.m2v -p Pelicula.mpa -o Pelicula.mpg \
-m s -F $TEMPLATE
rm $TEMPFOLDER/*
rmdir $TEMPFOLDER
for i in ls Pelicula*mpg
; do
vcdimager -t svcd -c $i.cue -b $i.bin $i
done
-- Final divx2svcd --