# HG changeset patch # User gpoirier # Date 1122241044 0 # Node ID 6c16b60516f3e4c5281dbf720256a493ba517204 # Parent c1dd920e736c35488608a35d70ba4ada3e9e9164 Moves the "audio" section just before the "muxing" section. + fixes suggested by Jeff diff -r c1dd920e736c -r 6c16b60516f3 DOCS/xml/en/encoding-guide.xml --- a/DOCS/xml/en/encoding-guide.xml Sun Jul 24 20:53:54 2005 +0000 +++ b/DOCS/xml/en/encoding-guide.xml Sun Jul 24 21:37:24 2005 +0000 @@ -972,7 +972,7 @@ change the bitrate as well!. - Bitrate does not scale proportional + Bitrate does not scale proportionally to resolution. That is to say, a 320x240 file at 200 kbit/sec will not be the same quality as the same movie at 640x480 and 800 kbit/sec! @@ -1010,7 +1010,7 @@ rigor. Further, given that movies vary greatly with regard to noise, detail, degree of motion, etc., it's futile to make general recommendations - for bits per length-of-diagonal (the analogue of bits per pixel, + for bits per length-of-diagonal (the analog of bits per pixel, using the square root). @@ -1082,70 +1082,39 @@ - -Audio + +Filtering - Audio is a much simpler problem to solve: if you care about quality, just - leave it as is. - Even AC3 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 AC3 pass-through today - does not mean you will not have one tomorrow. Future-proof your DVD rips by - preserving the AC3 stream. - You can keep the AC3 stream either by copying it directly into the video - stream during the encoding. - You can also extract the AC3 stream in order to mux it into containers such - as NUT or Matroska. - mplayer source_file.vob -aid 129 -dumpaudio -dumpfile sound.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). + In general, you want to do as little filtering as possible to the movie + in order to remain close to the original DVD source. Cropping is often + necessary (as described above), but avoid to scale the video. Although + scaling down is sometimes preferred to using higher quantizers, we want + to avoid both these things: remember that we decided from the start to + trade bits for quality. - 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. + Also, do not adjust gamma, contrast, brightness, etc. What looks good + on your display may not look good on others. These adjustments should + be done on playback only. - 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: - mplayer source_file.vob -ao pcm:file=destination_sound.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. + One thing you might want to do, however, is pass the video through a + very light denoise filter, such as . + Again, it is a matter of putting those bits to better use: why waste them + encoding noise when you can just add that noise back in during playback? + Increasing the parameters for will further + improve compressibility, but if you increase the values too much, you + risk degrading the image visibily. The suggested values above + () are quite conservative; you should feel free to + experiment with higher values and observe the results for yourself. + Interlacing and Telecine @@ -1254,34 +1223,67 @@ - -Filtering + + +Audio - In general, you want to do as little filtering as possible to the movie - in order to remain close to the original DVD source. Cropping is often - necessary (as described above), but do not scale the video. Although - scaling down is sometimes preferred to using higher quantizers, we want - to avoid both these things: remember that we decided from the start to - trade bits for quality. + Audio is a much simpler problem to solve: if you care about quality, just + leave it as is. + Even AC3 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 AC3 pass-through today + does not mean you will not have one tomorrow. Future-proof your DVD rips by + preserving the AC3 stream. + You can keep the AC3 stream either by copying it directly into the video + stream during the encoding. + You can also extract the AC3 stream in order to mux it into containers such + as NUT or Matroska. + mplayer source_file.vob -aid 129 -dumpaudio -dumpfile sound.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). - Also, do not adjust gamma, contrast, brightness, etc. What looks good - on your display may not look good on others. These adjustments should - be done on playback only. + 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. - One thing you might want to do, however, is pass the video through a - very light denoise filter, such as . - Again, it is a matter of putting those bits to better use: why waste them - encoding noise when you can just add that noise back in during playback? - Increasing the parameters for will further - improve compressibility, but if you increase the values too much, you - risk degrading the image visibily. The suggested values above - () are quite conservative; you should feel free to - experiment with higher values and observe the results for yourself. + 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: + mplayer source_file.vob -ao pcm:file=destination_sound.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.