From c5ab28319de7bc86640ff73a7cdb722151be22a6 Mon Sep 17 00:00:00 2001 From: ptt Date: Thu, 20 Dec 2007 18:20:09 +0000 Subject: 30% synced with r22753 git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25477 b3059339-0415-0410-9bf9-f77b7e298cf2 --- DOCS/xml/it/encoding-guide.xml | 424 +++++++++++++++++++++-------------------- 1 file changed, 215 insertions(+), 209 deletions(-) (limited to 'DOCS') diff --git a/DOCS/xml/it/encoding-guide.xml b/DOCS/xml/it/encoding-guide.xml index 136ee17da4..5739b8944b 100644 --- a/DOCS/xml/it/encoding-guide.xml +++ b/DOCS/xml/it/encoding-guide.xml @@ -1,5 +1,5 @@ - + La codifica con <application>MEncoder</application> @@ -8,7 +8,7 @@ MPEG-4 ("DivX") di alta qualità -Una domanda frequente è "Come posso generare il rip con la migliore quallità +Una domanda frequente è "Come posso generare il rip con la migliore qualità per una dimensione data?". Un'altra domanda è "Come posso fare il rip da DVD migliore in assoluto? Non mi interessa la dimensione del file, voglio solo la più alta qualità." @@ -72,7 +72,7 @@ Per generare una codifica adeguata, devi sapere il formato originario. Il non tenerne conto porterà a molti __flaws__ nella tua codifica, inclusi artefatti orrendi __combing__ (interlacing) e fotogrammi duplicati o addirittura perduti. -Oltre ad essere brutti, gli artefatti influenzano negativamente l'efficenza +Oltre ad essere brutti, gli artefatti influenzano negativamente l'efficienza della codifica: otterrai una peggior qualità a parità di bitrate. @@ -1075,12 +1075,12 @@ and Okay, ma cos'è la CQ? -However, if you have a target size for your movie (1 or 2 CDs for instance), -there is a limited total number of bits that you can spend; therefore it is -necessary to find a good tradeoff between compressibility and quality. Il CQ rappresenta il numero di bit per pixel e per fotogramma in codifica. Parlando più semplicemente, più alto è la CQ, più difficilmente si vedranno codificati degli artefatti. +Tuttavia, se desideri una particolare dimensione per il tuo film (per esempio +1 o 2 CD), hai un numero limitato di bit da utilizzare; devi quindi trovare un +buon compromesso tra compressione e qualità. @@ -1313,178 +1313,182 @@ Nota le opzioni e . -Notes on Audio/Video synchronization +Note sulla sincronizzazione Audio/Video -MEncoder's audio/video synchronization -algorithms were designed with the intention of recovering files with -broken sync. -However, in some cases they can cause unnecessary skipping and duplication of -frames, and possibly slight A/V desync, when used with proper input -(of course, A/V sync issues apply only if you process or copy the -audio track while transcoding the video, which is strongly encouraged). -Therefore, you may have to switch to basic A/V sync with -the option, or put this in your -~/.mplayer/mencoder config file, as long as -you are only working with good sources (DVD, TV capture, high quality -MPEG-4 rips, etc) and not broken ASF/RM/MOV files. +Gli algoritmi di sincronizzazione audio/video di +MEncoder sono stati progettati con l'intento di +recuperare file con sincronia danneggiata. +In alcuni casi tuttavia, possono generare inutili duplicazioni o scarti di +fotogrammi, e possibilmente leggera desincronia A/V quando vengono usati con +sorgenti buone (i problemi di sincronizzazione A/V accadono solo se elabori o +copi la traccia audio mentre transcodifichi il video, il che è decisamente +consigliato). +Perciò potresti dover passare ad una sincronizzazione di base con l'opzione +, o metterla nel tuo file di configurazione +~/.mplayer/mencoder, sempre che tu stia lavorando con +buone sorgenti (DVD, acquisizione TV, rip MPEG-4 ad alta qualità, etc) e non +con file ASF/RM/MOV rovinati. -If you want to further guard against strange frame skips and -duplication, you can use both and -. -This will prevent all A/V sync, and copy frames -one-to-one, so you cannot use it if you will be using any filters that -unpredictably add or drop frames, or if your input file has variable -framerate! -Therefore, using is not in general recommended. +Se vuoi proteggerti ulteriormente da strani salti e duplicazioni di fotogrammi, +puoi usare sia che . +Questo disabiliterà tutte le sincronizzazioni A/V, e +copierà i fotogrammi uno ad uno, perciò è inutilizzabile se stai usando dei +filtri che aggiungono o rimuovono arbitrariamente fotogrammi, ovvero se il +tuo file sorgente ha una frequenza fotogrammi non costante! +Quindi l'utilizzo di in linea di massima si sconsiglia. -The so-called "three-pass" audio encoding which -MEncoder supports has been reported to cause A/V -desync. -This will definitely happen if it is used in conjunction with certain -filters, therefore, it is now recommended not to -use three-pass audio mode. -This feature is only left for compatibility purposes and for expert -users who understand when it is safe to use and when it is not. -If you have never heard of three-pass mode before, forget that we -even mentioned it! +Si sa che la cosiddetta codifica audio in "tre passi", che +MEncoder gestisce, può causare desincronizzazione +A/V. +Il che capiterà prontamente se viene usata insieme con alcuni filtri, per cui +si consiglia di non usare la modalità audio a tre passi. +Questa caratteristica viene lasciata solo per finalità di compatibilità e +per utenti esperti che sanno quando sia adeguato usarla e quando no. +Se non hai mai sentito parlar prima della modalità a tre passi, dimenticati +di averla anche solo sentita nominare! -There have also been reports of A/V desync when encoding from stdin -with MEncoder. -Do not do this! Always use a file or CD/DVD/etc device as input. +Ci sono anche stati rapporti di desincronia A/V codificando con +MEncoder da stdin. +Non farlo! Usa sempre come ingresso un file o un dispositivo CD/DVD/etc. -Choosing the video codec +Scegliere il codec video -Which video codec is best to choose depends on several factors, -like size, quality, streamability, usability and popularity, some of -which widely depend on personal taste and technical constraints. +Quale possa esere il miglior codec video dipende da molti fattori, come +dimensione, qualità, possibilita di farne lo streaming, usabilit, diffusione, +alcuni dei quali dipendono fortemente dai gusti personali e dalle variabili +tecniche in gioco. - Compression efficiency: - It is quite easy to understand that most newer-generation codecs are - made to increase quality and compression. - Therefore, the authors of this guide and many other people suggest that - you cannot go wrong + E' abbastanza facile da capire che i codec più recenti sono fatti per + aumentare qualità e compressione. + Quindi gli autori di questa guida e moltra altra gente suggeriscono che non + potete sbagliare - Be careful, however: Decoding DVD-resolution MPEG-4 AVC videos - requires a fast machine (i.e. a Pentium 4 over 1.5GHz or a Pentium M - over 1GHz). + Fai comunque attenzione: la decodifica di video MPEG-4 AVC a risoluzione DVD + richiede una macchina veloce (per es. un Pentium 4 oltre 1.5GHz o un Pentium + M superiore a 1GHz). - when choosing MPEG-4 AVC codecs like - x264 instead of MPEG-4 ASP codecs - such as libavcodec MPEG-4 or + quando scegliete un qualche codec MPEG-4 AVC come + x264 piuttosto che un codec MPEG-4 + ASP come l'MPEG-4 di libavcodec o Xvid. - (Advanced codec developers may be interested in reading Michael - Niedermayer's opinion on - "why MPEG4-ASP sucks".) - Likewise, you should get better quality using MPEG-4 ASP than you - would with MPEG-2 codecs. + (Per sviluppatori avenzati di codec potrebbe essere interessante leggere + l'opinione di Michael Niedermayer sul + "perché MPEG-4 ASP faccia schifo" + (in inglese).) + Analogamente dovresti ottenere una miglior qualità usando MPEG-4 ASP rispetto + a quella ottenuta con codec MPEG-2. - However, newer codecs which are in heavy development can suffer from - bugs which have not yet been noticed and which can ruin an encode. - This is simply the tradeoff for using bleeding-edge technology. + Tuttavia, i codec più recenti che sono sotto pesante sviluppo possono avere + problemi che non sono ancora stati scoperti, e che possono rovinare una + codifica. + Questo è semplicemente il contrappasso per usare la tecnologia di punta. - What is more, beginning to use a new codec requires that you spend some - time becoming familiar with its options, so that you know what - to adjust to achieve a desired picture quality. + Inoltre iniziare ad utilizzare un codec nuovo richiede l'utilizzo di un po' + di tempo per familiarizzare con le sue opzioni, affinché tu sappia cosa + impostare per ottenere la qualità dell'immagine voluta. - Hardware compatibility: - It usually takes a long time for standalone video players to begin to - include support for the latest video codecs. - As a result, most only support MPEG-1 (like VCD, XVCD and KVCD), MPEG-2 - (like DVD, SVCD and KVCD) and MPEG-4 ASP (like DivX, - libavcodec's LMP4 and + Compatibilità Hardware: + Solitamente ci va un po' di tempo prima che i lettori da tavolo incomincino ad + includere il supporto per il video codec più recente. + Il risultato è che la maggior parte legge MPEG-1 (come i VCD, XVCD e KVCD), + MPEG-2 (come DVD, SVCD e KVCD) e MPEG-4 ASP (come DivX, + LMP4 di libavcodec e Xvid) - (Beware: Usually, not all MPEG-4 ASP features are supported). - Please refer to the technical specs of your player (if they are available), - or google around for more information. + (attenzione: solitamente non sono gestite tutte le caratteristiche + MPEG-4 ASP). + Fai per favore riferimento alle specifiche tecniche del tuo lettore (ove + disponibili) o cerca su internet per ulteriori informazioni. - Best quality per encoding time: - Codecs that have been around for some time (such as - libavcodec MPEG-4 and - Xvid) are usually heavily - optimized with all kinds of smart algorithms and SIMD assembly code. - That is why they tend to yield the best quality per encoding time ratio. - However, they may have some very advanced options that, if enabled, - will make the encode really slow for marginal gains. + Miglior qualità per tempo di codifica: + Codec che sono in giro da parecchio tempo (come MPEG-4 di + libavcodec e + Xvid) sono spesso molto ottimizzati + con ogni tipo di algoritmo furbo e codice SIMD in assembly. + Per questo tendono a fornire il miglior rapporto tra qualità e tempo di + codifica. Tuttavia, possono avere delle opzioni avanzate che, quando + abilitate, rendono la codifica molto lenta fornendo poco guadagno. - If you are after blazing speed you should stick around the default - settings of the video codec (although you should still try the other - options which are mentioned in other sections of this guide). + Se stai cercando di incrementare la velocità dovresti cercare di non + modificare troppo le impostazioni di default del codec video (anche se + dovresti comunque provare le altre opzioni che sono citate in altre sezioni + di questa guida). - You may also consider choosing a codec which can do multi-threaded - processing, though this is only useful for users of machines with - several CPUs. - libavcodec MPEG-4 does - allow that, but speed gains are limited, and there is a slight - negative effect on picture quality. - Xvid's multi-threaded encoding, - activated by the option, can be used to - boost encoding speed — by about 40-60% in typical cases — - with little if any picture degradation. - x264 also allows multi-threaded - encoding, which currently speeds up encoding by 94% per CPU core while - lowering PSNR between 0.005dB and 0.01dB on a typical setup. + Puoi tenere in considerazione anche la scelta di un codec che possa eseguire + elaborazioni multi-thread, anche se ciò è utile solo per utenti di macchine + con più di una CPU. + MPEG-4 di libavcodec lo permette, + ma il guadagno in velocità è limitato, e c'è un leggere effetto negativo + sulla qualità dell'immagine. + La codifica multi-thread di Xvid, + attivata dall'opzione , può essere usata per + accelerare la velocità di codifica — tipicamente di circa il 40-60% + — con poco se non nessun degrado dell'immagine. + Anche x264 permette la codifica in + multi-thread, la quale attualmente velocizza la codifica del 94% per core di + CPU mentre abbassa il PSNR tra 0.005dB e 0.01dB, con impostazioni tipiche. - Personal taste: - This is where it gets almost irrational: For the same reason that some - hung on to DivX 3 for years when newer codecs were already doing wonders, - some folks will prefer Xvid - or libavcodec MPEG-4 over + Gusto personale: + Qui è dove capita l'irrazionale: per la stessa ragione per cui alcuni + restano attaccati a DivX 3 per anni, mentre nuovi codec stanno + facendo meraviglie, alcuni personaggi preferiranno + Xvid o MPEG-4 di + libavcodec a x264. - You should make your own judgement; do not take advice from people who - swear by one codec. - Take a few sample clips from raw sources and compare different - encoding options and codecs to find one that suits you best. - The best codec is the one you master, and the one that looks - best to your eyes on your display + Dovresti prendere le tue decisioni; non prendere consigli da gente che + fanno giuramenti su un codec. + Prendi alcuni pezzi di esempio da sorgenti grezze e compara le diverse + opzioni di codifica e di codec per trovare quello che ti garba di più. + Il miglior codec è quello che riesci a gestire al meglio, e quello che ai + tuoi occhi e sul tuo schermo si vede meglio. - The same encode may not look the same on someone else's monitor or - when played back by a different decoder, so future-proof your encodes by - playing them back on different setups. + La stessa codifica potrebbe non apparire uguale sullo schermo di qualcun + altro o se riprodotta con un decodificatore differente, perciò controlla + i tuoi risultati riproducendoli in diverse condizioni. ! -Please refer to the section -selecting codecs and container formats -to get a list of supported codecs. +Fai per favore riferimento alla sezione +selezionare codec e formati contenitore +per avere un elenco dei codec usabili. @@ -1494,104 +1498,106 @@ to get a list of supported codecs. Audio -Audio is a much simpler problem to solve: if you care about quality, just -leave it as is. -Even AC-3 5.1 streams are at most 448Kbit/s, and they are worth every bit. -You might be tempted to transcode the audio to high quality Vorbis, but -just because you do not have an A/V receiver for AC-3 pass-through today -does not mean you will not have one tomorrow. Future-proof your DVD rips by -preserving the AC-3 stream. -You can keep the AC-3 stream either by copying it directly into the video -stream during the encoding. -You can also extract the AC-3 stream in order to mux it into containers such -as NUT or Matroska. +L'audio è un problema di decisamente più facile soluzione: se ti interessa la +qualità, lascialo semplicemente com'è. +Anche i flussi AC-3 5.1 sono al massimo a 448Kbit/s, e ne valgono ogni bit. +Potresti esser tentato di trascodificare l'audio in Vorbis ad alta qualità, ma +solo perché a tutt'oggi non hai un decodificatore AC-3 pass-through ciò non +significa che non ne avrai uno in futuro. Assicura un futuro ai tuoi rip da DVD +preservando il flusso in AC-3. +Puoi mantenere il flusso AC-3 anche copiandolo direttamente nel flusso video +durante la codifica. +Puoi anche estrarre il flusso AC-3 al fine di farne il mux in contenitori come +NUT o Matroska. -mplayer source_file.vob -aid 129 -dumpaudio -dumpfile sound.ac3 +mplayer file_sorgente.vob -aid 129 -dumpaudio -dumpfile suono.ac3 -will dump into the file sound.ac3 the -audio track number 129 from the file -source_file.vob (NB: DVD VOB files -usually use a different audio numbering, -which means that the VOB audio track 129 is the 2nd audio track of the file). - - - -But sometimes you truly have no choice but to further compress the -sound so that more bits can be spent on the video. -Most people choose to compress audio with either MP3 or Vorbis audio codecs. -While the latter is a very space-efficient codec, MP3 is better supported -by hardware players, although this trend is changing. - - - -Do not use when encoding -a file with audio, even if you will be encoding and muxing audio -separately later. -Though it may work in ideal cases, using is -likely to hide some problems in your encoding command line setting. -In other words, having a soundtrack during your encode assures you that, -provided you do not see messages such as -Too many audio packets in the buffer, you will be able -to get proper sync. - - - -You need to have MEncoder process the sound. -You can for example copy the orignal soundtrack during the encode with - or convert it to a "light" 4 kHz mono WAV -PCM with . -Otherwise, in some cases, it will generate a video file that will not sync -with the audio. -Such cases are when the number of video frames in the source file does -not match up to the total length of audio frames or whenever there -are discontinuities/splices where there are missing or extra audio frames. -The correct way to handle this kind of problem is to insert silence or -cut audio at these points. -However MPlayer cannot do that, so if you -demux the AC-3 audio and encode it with a separate app (or dump it to PCM with -MPlayer), the splices will be left incorrect -and the only way to correct them is to drop/dup video frames at the -splice. -As long as MEncoder sees the audio when it is -encoding the video, it can do this dropping/duping (which is usually OK -since it takes place at full black/scenechange), but if -MEncoder cannot see the audio, it will just -process all frames as-is and they will not fit the final audio stream when -you for example merge your audio and video track into a Matroska file. - - - -First of all, you will have to convert the DVD sound into a WAV file that the -audio codec can use as input. -For example: +effettuerà il dump della traccia audio numero 129 dal file +file_sorgente.vob nel file +suono.ac3 (NB: i file VOB da DVD spesso usano una +numerazione dell'audio diversa, il che significa che la traccia audio 129 è la +seconda traccia del file). + + + +Alcune volte invece, non hai davvero altra scelta se non comprimere +ulteriormente il suono per poter usare più bit per il video. +La maggior parte delle persone sceglie di comprimere l'audio con i codec MP3 +ovvero Vorbis. +Mentre quest'ultimo è un codec decisamente efficiente per lo spazio, MP3 è +meglio supportato dai lettori da tavolo, anche se la situazione sta cambiando. + + + +Non usare mentre codifichi un +file con dell'audio, anche se farai la codifica e il mux dell'audio +separatamente in seguito. +Anche se potesse andar bene in casi ideali, facilmente usare + nasconderà alcuni problemi nelle tue impostazioni di +codifica sulla riga comando. +In altre parole mantenere la colonna sonora durante la codifica ti assicura, +a patto che tu non veda messaggi del tipo +Troppi pacchetti audio nel buffer, di ottenere un'adeguata +sincronizzazione. + + + +Devi fare in modo che MEncoder processi il suono. +Puoi per esempio copiare la colonna sonora originaria durante la codifica con +, o convertirla in un "leggero" PCM WAV mono a 4 kHz +con . +In caso contrario in alcuni casi verrà generato un file video che sarà +desincronizzato con l'audio. +Casi del genere sono quelli in cui il numero dei fotogrammi video nel file di +origine non corrisponde alla lunghezza totale dei fotogrammi audio oppure +ogniqualvolta vi siano delle discontinuità/splice in cui mancano o ci sono +fotogrammi audio in più. +Il modo giusto di gestire questo tipo di problemi è inserire del silenzio o +tagliare l'audio in quei punti. +Tuttavia MPlayer non è in grado di farlo, per cui se +fai il demux dell'audio AC-3 e lo codifichi con un'altro programma (o ne fai il +dump in PCM con MPlayer), gli splice rimarranno +sbagliati e l'unico modo per correggerli è scartare/duplicare fotogrammi video +nel punto di splice. +Fintantochè MEncoder vede l'audio mentre codifica il +video, può eseguire questo scarto/duplicazione (che solitamente è OK, dato che +capita con scene nere o cambi scena), ma se MEncoder +non vede l'audio, processerà i fotogrammi così come sono e alla fine non +corrisponderanno al flusso audio finale quando per esempio inserirai i flussi +audio e video dentro a un file Matroska. + + + +Prima di tutto dovrai convertire l'audio DVD in un file WAV che il codec audio +possa usare come ingresso. +Per esempio: -mplayer source_file.vob -ao pcm:file=destination_sound.wav \ +mplayer file_sorgente.vob -ao pcm:file=suono_destinazione.wav \ -vc dummy -aid 1 -vo null -will dump the second audio track from the file -source_file.vob into the file -destination_sound.wav. -You may want to normalize the sound before encoding, as DVD audio tracks -are commonly recorded at low volumes. -You can use the tool normalize for instance, -which is available in most distributions. -If you are using Windows, a tool such as BeSweet -can do the same job. -You will compress in either Vorbis or MP3. -For example: -oggenc -q1 destination_sound.wav -will encode destination_sound.wav with -the encoding quality 1, which is roughly equivalent to 80Kb/s, and -is the minimum quality at which you should encode if you care about -quality. -Please note that MEncoder currently cannot -mux Vorbis audio tracks -into the output file because it only supports AVI and MPEG -containers as an output, each of which may lead to audio/video -playback synchronization problems with some players when the AVI file -contain VBR audio streams such as Vorbis. -Do not worry, this document will show you how you can do that with third -party programs. +eseguirà il dump della seconda traccia audio dal file +file_sorgente.vob sul file +suono_destinazione.wav. +Potresti voler normalizzare il suono prima della codifica, visto che le tracce +audio dei DVD spesso sono registrate a volumi bassi. +Puoi usare per esempio lo strumento normalize, che +è disponibile nella maggior parte delle distribuzioni. +Se stai usando Windows, lo stesso mestiere lo può fare uno strumento tipo +BeSweet. +Effettuerai la compressione in Vorbis ovvero in MP3. + +Per esempio: +oggenc -q1 suono_destinazione.wav +codificherà suono_destinazione.wav con qualità +di codifica 1, che equivale circa a 80Kb/s, ed è la qualità minima in cui +dovresti codificare se ti interessa la qualità. +Fai per favore attenzione che attualmente MEncoder +non è in grado di fare il mux di tracce audio Vorbis nel file di uscita, +perché gestisce solo contenitori AVI e MPEG in uscita, ognuno dei quali può +portare a problemi di sincronizzazione audio/video durante la riproduzione con +alcuni lettori quando il file AVI contiene flussi audio VBR come Vorbis. +Non preoccuparti, questa documentazione ti mostrerà come tu possa farlo +comunque con programmi di terze parti. -- cgit v1.2.3