« Backup del pc con disco di rete basato su linux | Main | Velocizare il netbook migliorando lo swap file »

Convertire un video rapidamente

Ultimamente mi sto dilettando a guardarmi vecchi film sul mio lettore dvd/divx,
pero' il mio lettore ha un limite sui formati e sulle dimensioni del formato.
Dopo svariati tentativi e test ho trovato il giusto e rapido modo per convertire
praticamente qualsiasi video in un formato accettato dal mio lettore e
qualitativamente perfetto per quello che voglio.

Con questo script si possono convertire praticamente quasi tutti i formati video
in formati accettati da qualsiasi buon lettore. Nel mio caso i video mi servono
in DivX con audio in MP3 e dalle dimensioni di 720x576.

Il comando magico e' ffmpeg, ma va verificato che abbia il supporto
per i formati video che volete convertire. Comunque lo script e' assai semplice, e
basta lanciarlo con il nome del file che si vuole convertire come argomento.

#!/bin/bash

SIZE="720x576"
VCODEC="libxvid"
ACODEC="libmp3lame"

ffmpeg -i $1 \
-sameq \
-s ${SIZE} \
-vcodec ${VCODEC} \
-acodec ${ACODEC} \
TV_$1

TrackBack

TrackBack URL for this entry:
http://service.ipv7.org/mt/mt-tb.cgi/28

Post a comment

(If you haven't left a comment here before, you may need to be approved by the site owner before your comment will appear. Until then, it won't appear on the entry. Thanks for waiting.)

About

This page contains a single entry from the blog posted on 21.08.09 05:09.

The previous post in this blog was Backup del pc con disco di rete basato su linux.

The next post in this blog is Velocizare il netbook migliorando lo swap file.

Many more can be found on the main index page or by looking through the archives.

Creative Commons License
This weblog is licensed under a Creative Commons License.
Powered by
Movable Type 3.33