sabato 10 novembre 2007

HandBrake-0.9.1

Uscita una nuova versione di Handbrake un utilissimo programma che permette di convertire filmati dvd in MPEG-4, tra i vari formati di conversione abbiamo, MP4 con audio AAC o AVC con video H264 .

Il sito del progetto lo trovate qui: http://handbrake.m0k.org/

il software necessita per funzionare di installare diverse dipendenze eccovi le più importanti:


libavcodec (picture cropping, scaling and deinterlacing, MPEG-4 encoding)
libdvdcss (CSS decryption)
libdvdread (DVD navigation)
libfaac (AAC encoding)
lame-extras (MP3 encoding)
libmp4v2 (MP4 muxing)
libmpeg2 (MPEG-2 decoding)
libogg (OGM muxing)
libsamplerate (audio resampling)
libvorbis (Vorbis encoding)
libx264 (H264 encoding)
libxvidcore (MPEG-4 encoding)

installatele cercandole con synaptic ricordo che per ogni libreria dovete installare pure le librerie di sviluppo, quelle che finiscono con dev.
per scaricare il pacchetto aprite un terminale, digitate:

wget http://handbrake.m0k.org/rotation.php?file=HandBrake-0.9.1_i386.tar.gz

spostatelo dentro opt,scompattatelo.

sudo mv Handbrake* /opt
cd /opt
sudo tar zxvf HandBrake*

date i permessi al file
HandBrakeCLI

sudo chmod a+rwx
HandBrakeCLI
sudo chown $USER:$USER HandBrakeCLI

per lanciare il manuale del programma basta scrivere.

./
HandBrakeCLI -h



### General Handbrake Options------------------------------------------------

-h, --help Print help
-u, --update Check for updates and exit
-v, --verbose Be verbose
-C, --cpu Set CPU count (default: autodetected)

### Source Options-----------------------------------------------------------

-i, --input Set input device
-t, --title Select a title to encode (0 to scan only,
default: 1)
-L, --longest Select the longest title
-c, --chapters Select chapters (e.g. "1-3" for chapters
1 to 3, or "3" for chapter 3 only,
default: all chapters)

### Destination Options------------------------------------------------------

-o, --output Set output file name
-f, --format Set output format (avi/mp4/ogm/mkv, default:
autodetected from file name)
-4, --large-file Use 64-bit mp4 files that can hold more than
4 GB. Note: Breaks iPod, @TV, PS3 compatibility.

### Picture Settings---------------------------------------------------------

-w, --width Set picture width
-l, --height Set picture height
--crop Set cropping values (default: autocrop)
-Y, --maxHeight <#> Set maximum height
-X, --maxWidth <#> Set maximum width
-s, --subtitle Select subtitle (default: none)
-U, --subtitle-scan Scan for subtitles in an extra first pass, and choose
the one that's only used 10 percent of the time
or less. This should locate subtitles for short
foreign language segments. Best used in conjunction
with --subtitle-forced.
-F, --subtitle-forced Only display subtitles from the selected stream if
the subtitle has the forced flag set. May be used in
conjunction with --subtitle-scan to auto-select
a stream if it contains forced subtitles.
-N, --native-language Select subtitles with this language if it does not
match the Audio language. Provide the language's
iso639-2 code (fre, eng, spa, dut, et cetera)
-m, --markers Add chapter markers (mp4 output format only)

### Video Options------------------------------------------------------------

-e, --encoder Set video library encoder (ffmpeg,xvid,
x264,x264b13,x264b30 default: ffmpeg)
-q, --quality Set video quality (0.0..1.0)
-Q, --crf Use with -q for CRF instead of CQP
-S, --size Set target size
-b, --vb Set video bitrate (default: 1000)
-r, --rate Set video framerate (5/10/12/15/23.976/24/25/29.97)

-2, --two-pass Use two-pass mode
-d, --deinterlace Deinterlace video with yadif/mcdeint filter
(default 0:-1:-1:1)
-7, --deblock Deblock video with pp7 filter
(default 0:2)
-8, --denoise Denoise video with hqdn3d filter
(default 4:3:6:4.5)
-9, --detelecine Detelecine video with pullup filter
(default 1:1:4:4:0:0)
-g, --grayscale Grayscale encoding
-p, --pixelratio Store pixel aspect ratio in video stream

### Audio Options-----------------------------------------------------------

-E, --aencoder Set audio encoder (faac/lame/vorbis/ac3, ac3
meaning passthrough, default: guessed)
-B, --ab Set audio bitrate (default: 128)
-a, --audio Select audio channel(s) ("none" for no
audio, default: first one)
-6, --mixdown Format for surround sound downmixing
(mono/stereo/dpl1/dpl2/6ch, default: dpl2)
-R, --arate Set audio samplerate (22.05/24/32/44.1/48 kHz)

### Advanced H264 Options----------------------------------------------------

-x, --x264opts Specify advanced x264 options in the
same style as mencoder:
option1=value1:option2=value2
-T, --turbo When using 2-pass use the turbo options
on the first pass to improve speed
(only works with x264, affects PSNR by about 0.05dB,
and increases first pass speed two to four times)

per agevolare l'utilizzo del software possiamo crearci un link simbolico, scriviamo da terminale:

cd
sudo ln -fs /opt/HandBrakeCLI /usr/bin


per convertire la struttura di un dvd in un file mp4 scriviamo.


HandBrakeCLI -i VIDEO_TS -o movie.mp4
studiamoci tutte le varie opzioni del programma per ottenere dei risultati migliori.

Nessun commento: