Pues hoy me levante con ganas de hacer algo que sea util para mi, y para los demas, por eso hice este pequeño bash script para transformar cualquier formato (flv, mpeg, avi, wmv, etc; siempre y cuando tengas las librerias para leerlos con mplayer) a mp4 por medio de la libreria ffmpeg, y despues para subirlos a tu iPod con una aplicacion como gtkpod o similar; pues… aqui se los dejo, a mi me a sido muy util para hacer mis videos pequeños y para verlos en mi iPod Video 5.5G. Click en read more… para verlo

#!/bin/bash
################
#Script name: ituxvid
#Author: arkoldthos
#Date: Wed Jun 6 15:59:42 CDT 2007
#Made with: vcrear 0.1 by David Barreda
################
# Description
#
# This script was made for learning purpose
# I am not responsible of what content do you
# do with this script, and this one is under GPL
# This script was supposed to make videos of any
# kind of redeable videos by mplayer to be resided
# and converted to a mp4, and then upload to your
# iPod with gtkpod or a similar application.
# The size is 320x180 but can be changed to other
# purposes.
################
# Sintax
#
# ./ituxvid
#
# Please note that you need to write the extension
# of the input file, the .mp4 of the output will
# be autommatly added.
#
# http://ark.pekay.co.uk/
################
# By David Barreda.
################

# Check for the input
if [ -z $1 ]; then
read -e -p “Give the name of the input file: ” INPUT
if [ -z $INPUT ]; then
echo “You need to specify one.”
exit 1
fi

else
INPUT=$1
fi

# Check for the output
if [ -z $2 ]; then
read -e -p “You need to specify a name for the output: ” OUTPUT
if [ -z $OUTPUT ]; then
echo “You need to specify one.”
exit 1
fi
else
OUTPUT=$2
fi

ffmpeg -i $1 -f mp4 -vcodec mpeg4 -maxrate 1000 -b 700 -qmin 3 -qmax 5 -bufsize 4096 -g 300 -acodec aac -ab 192 -s 320×180 -aspect 16:9 $2.mp4

One Response to “ituxvid”
  1. aaaa says:

    FLV converterprovide you with all popular FLV converter, encoder,decoder and other powerful tools that you can easily deal with youtube (.flv file)
    http://www.macdvdripper.com

Leave a Reply

You must be logged in to post a comment. Login »