comparison DOCS/xml/ru/encoding-guide.xml @ 21748:5a9cea1eb591

Translation of menc-feat-vcd-dvd sect1 in encoding-guide.xml
author voroshil
date Sun, 24 Dec 2006 18:10:47 +0000
parents e6b16ad464e8
children 5ae581bf5bd3
comparison
equal deleted inserted replaced
21747:e6b16ad464e8 21748:5a9cea1eb591
4375 4375
4376 <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - --> 4376 <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
4377 4377
4378 4378
4379 <sect1 id="menc-feat-vcd-dvd"> 4379 <sect1 id="menc-feat-vcd-dvd">
4380 <title>Using <application>MEncoder</application> 4380 <title>Использование <application>MEncoder</application>
4381 to create VCD/SVCD/DVD-compliant files.</title> 4381 для создания VCD/SVCD/DVD-совместимых файлов.</title>
4382 4382
4383 <sect2 id="menc-feat-vcd-dvd-constraints"> 4383 <sect2 id="menc-feat-vcd-dvd-constraints">
4384 <title>Format Constraints</title> 4384 <title>Ограничения формата</title>
4385 4385
4386 <para> 4386 <para>
4387 <application>MEncoder</application> is capable of creating VCD, SCVD 4387 <application>MEncoder</application> способен создавать MPEG файлы VCD, SCVD
4388 and DVD format MPEG files using the 4388 и DVD формата, используя библиотеку <systemitem class="library">libavcodec</systemitem>.
4389 <systemitem class="library">libavcodec</systemitem> library. 4389 Эти файды затем могут быть использованы совместно с
4390 These files can then be used in conjunction with
4391 <ulink url="http://www.gnu.org/software/vcdimager/vcdimager.html">vcdimager</ulink> 4390 <ulink url="http://www.gnu.org/software/vcdimager/vcdimager.html">vcdimager</ulink>
4392 or 4391 или
4393 <ulink url="http://dvdauthor.sourceforge.net/">dvdauthor</ulink> 4392 <ulink url="http://dvdauthor.sourceforge.net/">dvdauthor</ulink>
4394 to create discs that will play on a standard set-top player. 4393 <!--FIXME unstranslated -->
4395 </para> 4394 для создания дисков, которые будут воспроизводиться на стандартном set-top
4396 4395 проигрывателе.
4397 <para> 4396 </para>
4398 The DVD, SVCD, and VCD formats are subject to heavy constraints. 4397
4399 Only a small selection of encoded picture sizes and aspect ratios are 4398 <para>
4400 available. 4399 DVD, SVCD, и VCD форматы жестко ограничены. Доступен только небольшой выбор
4401 If your movie does not already meet these requirements, you may have 4400 размеров и пропорций кодируемого изображения.
4402 to scale,crop or add black borders to the picture to make it 4401 Если ваш фильм пока не удовлетворяет этим ограничениям, придется изображение
4403 compliant. 4402 масштабировать, обрезать или добавлять к нему черные полосы, чтобы добиться
4403 совместимости.
4404 </para> 4404 </para>
4405 4405
4406 4406
4407 <sect3 id="menc-feat-vcd-dvd-constraints-resolution"> 4407 <sect3 id="menc-feat-vcd-dvd-constraints-resolution">
4408 <title>Format Constraints</title> 4408 <title>Ограничения форматов</title>
4409 4409
4410 <informaltable frame="all"> 4410 <informaltable frame="all">
4411 <tgroup cols="9"> 4411 <tgroup cols="9">
4412 <thead> 4412 <thead>
4413 <row> 4413 <row>
4414 <entry>Format</entry> 4414 <entry>Формат</entry>
4415 <entry>Resolution</entry> 4415 <entry>Разрешение</entry>
4416 <entry>V. Codec</entry> 4416 <entry>Вид. Кодек</entry>
4417 <entry>V. Bitrate</entry> 4417 <entry>Вид. Битпоток</entry>
4418 <entry>Sample Rate</entry> 4418 <entry>Дискретизация</entry>
4419 <entry>A. Codec</entry> 4419 <entry>Ауд. Кодек</entry>
4420 <entry>A. Bitrate</entry> 4420 <entry>Ауд. Битпоток</entry>
4421 <entry>FPS</entry> 4421 <entry>FPS</entry>
4422 <entry>Aspect</entry> 4422 <entry>Пропорции</entry>
4423 </row> 4423 </row>
4424 </thead> 4424 </thead>
4425 <tbody> 4425 <tbody>
4426 <row> 4426 <row>
4427 <entry>NTSC DVD</entry> 4427 <entry>NTSC DVD</entry>
4428 <entry>720x480, 704x480, 352x480, 352x240</entry> 4428 <entry>720x480, 704x480, 352x480, 352x240</entry>
4429 <entry>MPEG-2</entry> 4429 <entry>MPEG-2</entry>
4430 <entry>9800 kbps</entry> 4430 <entry>9800 кбит/с</entry>
4431 <entry>48000 Hz</entry> 4431 <entry>48000 Гц</entry>
4432 <entry>AC3,PCM</entry> 4432 <entry>AC3,PCM</entry>
4433 <entry>1536 kbps (max)</entry> 4433 <entry>1536 кбит/с (макс.)</entry>
4434 <entry>30000/1001, 24000/1001</entry> 4434 <entry>30000/1001, 24000/1001</entry>
4435 <entry>4:3, 16:9 (only for 720x480)</entry> 4435 <entry>4:3, 16:9 (только для 720x480)</entry>
4436 </row> 4436 </row>
4437 <row> 4437 <row>
4438 <entry>NTSC DVD</entry> 4438 <entry>NTSC DVD</entry>
4439 <entry>352x240<footnote id='fn-rare-resolutions'><para> 4439 <entry>352x240<footnote id='fn-rare-resolutions'><para>
4440 These resolutions are rarely used for DVDs because 4440 Эти разрешения редко используются для DVD, поскольку имеют довольно низкое
4441 they are fairly low quality.</para></footnote></entry> 4441 качество.</para></footnote></entry>
4442 <entry>MPEG-1</entry> 4442 <entry>MPEG-1</entry>
4443 <entry>1856 kbps</entry> 4443 <entry>1856 кбит/с</entry>
4444 <entry>48000 Hz</entry> 4444 <entry>48000 Гц</entry>
4445 <entry>AC3,PCM</entry> 4445 <entry>AC3,PCM</entry>
4446 <entry>1536 kbps (max)</entry> 4446 <entry>1536 кбит/с (макс.)</entry>
4447 <entry>30000/1001, 24000/1001</entry> 4447 <entry>30000/1001, 24000/1001</entry>
4448 <entry>4:3, 16:9</entry> 4448 <entry>4:3, 16:9</entry>
4449 </row> 4449 </row>
4450 <row> 4450 <row>
4451 <entry>NTSC SVCD</entry> 4451 <entry>NTSC SVCD</entry>
4452 <entry>480x480</entry> 4452 <entry>480x480</entry>
4453 <entry>MPEG-2</entry> 4453 <entry>MPEG-2</entry>
4454 <entry>2600 kbps</entry> 4454 <entry>2600 кбит/с</entry>
4455 <entry>44100 Hz</entry> 4455 <entry>44100 Гц</entry>
4456 <entry>MP2</entry> 4456 <entry>MP2</entry>
4457 <entry>384 kbps (max)</entry> 4457 <entry>384 кбит/с (макс.)</entry>
4458 <entry>30000/1001</entry> 4458 <entry>30000/1001</entry>
4459 <entry>4:3</entry> 4459 <entry>4:3</entry>
4460 </row> 4460 </row>
4461 <row> 4461 <row>
4462 <entry>NTSC VCD</entry> 4462 <entry>NTSC VCD</entry>
4463 <entry>352x240</entry> 4463 <entry>352x240</entry>
4464 <entry>MPEG-1</entry> 4464 <entry>MPEG-1</entry>
4465 <entry>1150 kbps</entry> 4465 <entry>1150 кбит/с</entry>
4466 <entry>44100 Hz</entry> 4466 <entry>44100 Гц</entry>
4467 <entry>MP2</entry> 4467 <entry>MP2</entry>
4468 <entry>224 kbps</entry> 4468 <entry>224 кбит/с</entry>
4469 <entry>24000/1001, 30000/1001</entry> 4469 <entry>24000/1001, 30000/1001</entry>
4470 <entry>4:3</entry> 4470 <entry>4:3</entry>
4471 </row> 4471 </row>
4472 <row> 4472 <row>
4473 <entry>PAL DVD</entry> 4473 <entry>PAL DVD</entry>
4474 <entry>720x576, 704x576, 352x576, 352x288</entry> 4474 <entry>720x576, 704x576, 352x576, 352x288</entry>
4475 <entry>MPEG-2</entry> 4475 <entry>MPEG-2</entry>
4476 <entry>9800 kbps</entry> 4476 <entry>9800 кбит/с</entry>
4477 <entry>48000 Hz</entry> 4477 <entry>48000 Гц</entry>
4478 <entry>MP2,AC3,PCM</entry> 4478 <entry>MP2,AC3,PCM</entry>
4479 <entry>1536 kbps (max)</entry> 4479 <entry>1536 кбит/с (макс.)</entry>
4480 <entry>25</entry> 4480 <entry>25</entry>
4481 <entry>4:3, 16:9 (only for 720x576)</entry> 4481 <entry>4:3, 16:9 (only for 720x576)</entry>
4482 </row> 4482 </row>
4483 <row> 4483 <row>
4484 <entry>PAL DVD</entry> 4484 <entry>PAL DVD</entry>
4485 <entry>352x288<footnoteref linkend='fn-rare-resolutions'/></entry> 4485 <entry>352x288<footnoteref linkend='fn-rare-resolutions'/></entry>
4486 <entry>MPEG-1</entry> 4486 <entry>MPEG-1</entry>
4487 <entry>1856 kbps</entry> 4487 <entry>1856 кбит/с</entry>
4488 <entry>48000 Hz</entry> 4488 <entry>48000 Гц</entry>
4489 <entry>MP2,AC3,PCM</entry> 4489 <entry>MP2,AC3,PCM</entry>
4490 <entry>1536 kbps (max)</entry> 4490 <entry>1536 кбит/с (макс.)</entry>
4491 <entry>25</entry> 4491 <entry>25</entry>
4492 <entry>4:3, 16:9</entry> 4492 <entry>4:3, 16:9</entry>
4493 </row> 4493 </row>
4494 <row> 4494 <row>
4495 <entry>PAL SVCD</entry> 4495 <entry>PAL SVCD</entry>
4496 <entry>480x576</entry> 4496 <entry>480x576</entry>
4497 <entry>MPEG-2</entry> 4497 <entry>MPEG-2</entry>
4498 <entry>2600 kbps</entry> 4498 <entry>2600 кбит/с</entry>
4499 <entry>44100 Hz</entry> 4499 <entry>44100 Гц</entry>
4500 <entry>MP2</entry> 4500 <entry>MP2</entry>
4501 <entry>384 kbps (max)</entry> 4501 <entry>384 кбит/с (макс.)</entry>
4502 <entry>25</entry> 4502 <entry>25</entry>
4503 <entry>4:3</entry> 4503 <entry>4:3</entry>
4504 </row> 4504 </row>
4505 <row> 4505 <row>
4506 <entry>PAL VCD</entry> 4506 <entry>PAL VCD</entry>
4507 <entry>352x288</entry> 4507 <entry>352x288</entry>
4508 <entry>MPEG-1</entry> 4508 <entry>MPEG-1</entry>
4509 <entry>1152 kbps</entry> 4509 <entry>1152 кбит/с</entry>
4510 <entry>44100 Hz</entry> 4510 <entry>44100 Гц</entry>
4511 <entry>MP2</entry> 4511 <entry>MP2</entry>
4512 <entry>224 kbps</entry> 4512 <entry>224 кбит/с</entry>
4513 <entry>25</entry> 4513 <entry>25</entry>
4514 <entry>4:3</entry> 4514 <entry>4:3</entry>
4515 </row> 4515 </row>
4516 </tbody> 4516 </tbody>
4517 </tgroup> 4517 </tgroup>
4518 </informaltable> 4518 </informaltable>
4519 4519
4520 <para> 4520 <para>
4521 If your movie has 2.35:1 aspect (most recent action movies), you will 4521 Если ваш фильм имеет пропорции 2.35:1 (большинство современных фильмов),
4522 have to add black borders or crop the movie down to 16:9 to make a DVD 4522 для создания DVD или VCD придется добавить черные полосы или обрезать фильм до
4523 or VCD. 4523 16:9. Добавляя черные полосы, пытайтесь выровнять их размеры на границу в 16 пикселов,
4524 If you add black borders, try to align them at 16-pixel boundaries in 4524 чтобы минимизировать влияние на производительность кодирования.
4525 order to minimize the impact on encoding performance. 4525 К счастью, DVD имеет достаточно избыточный битпоток, чтобы не сильно
4526 Thankfully DVD has sufficiently excessive bitrate that you do not have 4526 беспокоиться об эффективности кодирования, но SVCD и VCD весьма ограничены в
4527 to worry too much about encoding efficiency, but SVCD and VCD are 4527 битпотоке и требуют определенных усилий для достижения приемлемого качества.
4528 highly bitrate-starved and require effort to obtain acceptable quality.
4529 </para> 4528 </para>
4530 </sect3> 4529 </sect3>
4531 4530
4532 4531
4533 <sect3 id="menc-feat-vcd-dvd-constraints-gop"> 4532 <sect3 id="menc-feat-vcd-dvd-constraints-gop">
4534 <title>GOP Size Constraints</title> 4533 <title>Ограничения на размер GOP</title>
4535 4534
4536 <para> 4535 <para>
4537 DVD, VCD, and SVCD also constrain you to relatively low 4536 DVD, VCD, и SVCD также ограничивают вас относительно низкими размерами
4538 GOP (Group of Pictures) sizes. 4537 GOP (Group of Pictures, Группа Изображений).
4539 For 30 fps material the largest allowed GOP size is 18. 4538 Для материала с 30 fps максимальный допустимый размер GOP равен 18.
4540 For 25 or 24 fps, the maximum is 15. 4539 Для 25 или 24 fps, максимум равен 15.
4541 The GOP size is set using the <option>keyint</option> option. 4540 Размер GOP устанавливается опцией <option>keyint</option>.
4542 </para> 4541 </para>
4543 </sect3> 4542 </sect3>
4544 4543
4545 4544
4546 <sect3 id="menc-feat-vcd-dvd-constraints-bitrate"> 4545 <sect3 id="menc-feat-vcd-dvd-constraints-bitrate">
4547 <title>Bitrate Constraints</title> 4546 <title>Ограничения на битпоток</title>
4548 4547
4549 <para> 4548 <para>
4550 VCD video is required to be CBR at 1152 kbps. 4549 VCD видео должно быть CBR с 1152 кбит/с.
4551 This highly limiting constraint also comes along with an extremly low vbv 4550 Это сильное ограничение усугубляется, к тому же, чрезвычайно низким размером vbv
4552 buffer size of 327 kilobits. 4551 буфера, равным 327 килобит.
4553 SVCD allows varying video bitrates up to 2500 kbps, and a somewhat less 4552 SVCD допускает различные значения видео битпотока вплоть до 2500 кбит/с и не
4554 restrictive vbv buffer size of 917 kilobits is allowed. 4553 так сильно стесняющий размер vbv буфера, равный 917 килобит.
4555 DVD video bitrates may range anywhere up to 9800 kbps (though typical 4554 У DVD видео битпоток может свободно меняться вплоть до 9800 kbps (хотя обычный
4556 bitrates are about half that), and the vbv buffer size is 1835 kilobits. 4555 поток равен примерно половине этого значения), а размер vbv буфер равен 1835
4556 килобит.
4557 </para> 4557 </para>
4558 </sect3> 4558 </sect3>
4559 </sect2> 4559 </sect2>
4560 4560
4561 <!-- ********** --> 4561 <!-- ********** -->
4562 4562
4563 <sect2 id="menc-feat-vcd-dvd-output"> 4563 <sect2 id="menc-feat-vcd-dvd-output">
4564 <title>Output Options</title> 4564 <title>Опции вывода</title>
4565 4565
4566 <para> 4566 <para>
4567 <application>MEncoder</application> has options to control the output 4567 У <application>MEncoder</application> есть опции, управляющие выходным форматом.
4568 format. 4568 Используя их, можно дать указание создать файл корректного типа.
4569 Using these options we can instruct it to create the correct type of 4569 </para>
4570 file. 4570
4571 </para> 4571 <para>
4572 4572 Для VCD и SVCD опции называются xvcd и xsvcd, потому что они являются
4573 <para> 4573 расширенными форматами. Они не полностью совместимы, в основном, потому что не
4574 The options for VCD and SVCD are called xvcd and xsvcd, because they 4574 <!-- is translation need for "scan offset" -->
4575 are extended formats. 4575 содержат scan offsets. Если нужно создать образ SVCD, следует передать
4576 They are not strictly compliant, mainly because the output does not 4576 выходной файл программе
4577 contain scan offsets.
4578 If you need to generate an SVCD image, you should pass the output file
4579 to
4580 <ulink url="http://www.gnu.org/software/vcdimager/vcdimager.html">vcdimager</ulink>. 4577 <ulink url="http://www.gnu.org/software/vcdimager/vcdimager.html">vcdimager</ulink>.
4581 </para> 4578 </para>
4582 4579
4583 <para> 4580 <para>
4584 VCD: 4581 VCD:
4589 SVCD: 4586 SVCD:
4590 <screen>-of mpeg -mpegopts format=xsvcd</screen> 4587 <screen>-of mpeg -mpegopts format=xsvcd</screen>
4591 </para> 4588 </para>
4592 4589
4593 <para> 4590 <para>
4594 DVD (with timestamps on every frame, if possible): 4591 DVD (с временными метками на каждом кадре, если возможно):
4595 <screen>-of mpeg -mpegopts format=dvd:tsaf</screen> 4592 <screen>-of mpeg -mpegopts format=dvd:tsaf</screen>
4596 </para> 4593 </para>
4597 4594
4598 <para> 4595 <para>
4599 DVD with NTSC Pullup: 4596 DVD с NTSC Pullup:
4600 <screen>-of mpeg -mpegopts format=dvd:tsaf:telecine -ofps 24000/1001</screen> 4597 <screen>-of mpeg -mpegopts format=dvd:tsaf:telecine -ofps 24000/1001</screen>
4601 This allows 24000/1001 fps progressive content to be encoded at 30000/1001 4598 <!-- is translation correct? -->
4602 fps whilst maintaing DVD-compliance. 4599 Это делает возможным кодирование 24000/1001 fps прогрессивного содержимого с
4600 частотой 30000/1001 fps, пока сохраняется DVD-совместимость.
4603 </para> 4601 </para>
4604 4602
4605 4603
4606 <sect3 id="menc-feat-vcd-dvd-output-aspect"> 4604 <sect3 id="menc-feat-vcd-dvd-output-aspect">
4607 <title>Aspect Ratio</title> 4605 <title>Пропорции</title>
4608 <para> 4606 <para>
4609 The aspect argument of <option>-lavcopts</option> is used to encode 4607 Аргумент aspect в <option>-lavcopts</option> используется для кодирования
4610 the aspect ratio of the file. 4608 коэффициента пропорций файла.
4611 During playback the aspect ratio is used to restore the video to the 4609 Коэффициент пропорций используется в процессе воспроизведения для восстановления
4612 correct size. 4610 правильного размера видео.
4613 </para> 4611 </para>
4614 4612
4615 <para> 4613 <para>
4616 16:9 or "Widescreen" 4614 16:9 or "Широкоэкранный"
4617 <screen>-lavcopts aspect=16/9</screen> 4615 <screen>-lavcopts aspect=16/9</screen>
4618 </para> 4616 </para>
4619 4617
4620 <para> 4618 <para>
4621 4:3 or "Fullscreen" 4619 4:3 or "Полноэкранный"
4622 <screen>-lavcopts aspect=4/3</screen> 4620 <screen>-lavcopts aspect=4/3</screen>
4623 </para> 4621 </para>
4624 4622
4625 <para> 4623 <para>
4626 2.35:1 or "Cinemascope" NTSC 4624 2.35:1 or "Кинематографический" NTSC
4627 <screen>-vf scale=720:368,expand=720:480 -lavcopts aspect=16/9</screen> 4625 <screen>-vf scale=720:368,expand=720:480 -lavcopts aspect=16/9</screen>
4628 To calculate the correct scaling size, use the expanded NTSC width of 4626 Для вычисления правильного размера масштабирования используйте расширенную
4629 854/2.35 = 368 4627 ширину NTSC 854/2.35 = 368
4630 </para> 4628 </para>
4631 4629
4632 <para> 4630 <para>
4633 2.35:1 or "Cinemascope" PAL 4631 2.35:1 or "кинематографический" PAL
4634 <screen>-vf scale="720:432,expand=720:576 -lavcopts aspect=16/9</screen> 4632 <screen>-vf scale="720:432,expand=720:576 -lavcopts aspect=16/9</screen>
4635 To calculate the correct scaling size, use the expanded PAL width of 4633 Для вычисления правильного размера масштабирования используйте расширинную
4636 1024/2.35 = 432 4634 ширину PAL 1024/2.35 = 432
4637 </para> 4635 </para>
4638 </sect3> 4636 </sect3>
4639 4637
4640 4638
4641 <sect3 id="menc-feat-vcd-dvd-a-v-sync"> 4639 <sect3 id="menc-feat-vcd-dvd-a-v-sync">
4642 <title>Maintaining A/V sync</title> 4640 <title>Сохранение A/V синхронизации</title>
4643 4641
4644 <para> 4642 <para>
4645 In order to maintain audio/video synchronization throughout the encode, 4643 Для того, чтобы сохранять аудио/видео синхронизацию в кодировании на всем его
4646 <application>MEncoder</application> has to drop or duplicate frames. 4644 протяжении, <application>MEncoder</application> должен выбрасывать или
4647 This works rather well when muxing into an AVI file, but is almost 4645 дублировать кадры. Это довольно неплохо работает при мультиплексировании в AVI
4648 guaranteed to fail to maintain A/V sync with other muxers such as MPEG. 4646 файл, но с другими мультиплексорами, такими как MPEG, почти гарантировано
4649 This is why it is necessary to append the 4647 приведет к нарушению A/V синхронизации. Для избежания подобных проблем,
4650 <option>harddup</option> video filter at the end of the filter chain 4648 необходимо добавить видео фильтр <option>harddup</option> в конец цепочки
4651 to avoid this kind of problem. 4649 фильтров. Дополнительную техническую информацию о <option>harddup</option> можно
4652 You can find more technical information about <option>harddup</option> 4650 найти в разделе
4653 in the section 4651 <link linkend="menc-feat-dvd-mpeg4-muxing-filter-issues">Улучшение
4654 <link linkend="menc-feat-dvd-mpeg4-muxing-filter-issues">Improving muxing and A/V sync reliability</link> 4652 мультиплексирования и надежности A/V синхронизации</link> или в man руководстве.
4655 or in the manual page.
4656 </para> 4653 </para>
4657 </sect3> 4654 </sect3>
4658 4655
4659 4656
4660 <sect3 id="menc-feat-vcd-dvd-output-srate"> 4657 <sect3 id="menc-feat-vcd-dvd-output-srate">
4661 <title>Sample Rate Conversion</title> 4658 <title>Преобразование частоты дискретизации</title>
4662 4659
4663 <para> 4660 <para>
4664 If the audio sample rate in the original file is not the same as 4661 Если частота дискретизации в оригинальном файле не совпадает с требуемой в
4665 required by the target format, sample rate conversion is required. 4662 целевом формате, требуется преобразование. Его можно осуществить, совместно
4666 This is achieved using the <option>-srate</option> option and 4663 используя опцию <option>-srate</option> и аудио фильтр<option>-af lavcresample</option>.
4667 the <option>-af lavcresample</option> audio filter together.
4668 </para> 4664 </para>
4669 4665
4670 <para> 4666 <para>
4671 DVD: 4667 DVD:
4672 <screen>-srate 48000 -af lavcresample=48000</screen> 4668 <screen>-srate 48000 -af lavcresample=48000</screen>
4673 </para> 4669 </para>
4674 4670
4675 <para> 4671 <para>
4676 VCD and SVCD: 4672 VCD и SVCD:
4677 <screen>-srate 44100 -af lavcresample=44100</screen> 4673 <screen>-srate 44100 -af lavcresample=44100</screen>
4678 </para> 4674 </para>
4679 </sect3> 4675 </sect3>
4680 </sect2> 4676 </sect2>
4681 4677
4682 <!-- ********** --> 4678 <!-- ********** -->
4683 4679
4684 <sect2 id="menc-feat-vcd-dvd-lavc"> 4680 <sect2 id="menc-feat-vcd-dvd-lavc">
4685 <title>Using libavcodec for VCD/SVCD/DVD Encoding</title> 4681 <title>Использование libavcodec для VCD/SVCD/DVD кодирования</title>
4686 4682
4687 <sect3 id="menc-feat-vcd-dvd-lavc-intro"> 4683 <sect3 id="menc-feat-vcd-dvd-lavc-intro">
4688 <title>Introduction</title> 4684 <title>Введение</title>
4689 4685
4690 <para> 4686 <para>
4691 <systemitem class="library">libavcodec</systemitem> can be used to 4687 Используя соответствующие опции, можно применять
4692 create VCD/SVCD/DVD compliant video by using the appropriate options. 4688 <systemitem class="library">libavcodec</systemitem> для создания VCD/SVCD/DVD
4689 совместимого видео.
4693 </para> 4690 </para>
4694 </sect3> 4691 </sect3>
4695 4692
4696 4693
4697 <sect3 id="menc-feat-vcd-dvd-lavc-options"> 4694 <sect3 id="menc-feat-vcd-dvd-lavc-options">
4698 <title>lavcopts</title> 4695 <title>lavcopts</title>
4699 4696
4700 <para> 4697 <para>
4701 This is a list of fields in <option>-lavcopts</option> that you may 4698 Это список полей в <option>-lavcopts</option>, которые может потребоваться
4702 be required to change in order to make a complaint movie for VCD, SVCD, 4699 изменить, чтобы создать совместимый фильм для VCD, SVCD или DVD:
4703 or DVD:
4704 </para> 4700 </para>
4705 4701
4706 <itemizedlist> 4702 <itemizedlist>
4707 <listitem><para> 4703 <listitem><para>
4708 <emphasis role="bold">acodec</emphasis>: 4704 <emphasis role="bold">acodec</emphasis>:
4709 <option>mp2</option> for VCD, SVCD, or PAL DVD; 4705 <option>mp2</option> для VCD, SVCD, или PAL DVD;
4710 <option>ac3</option> is most commonly used for DVD. 4706 <option>ac3</option> наиболее часто используется для DVD.
4711 PCM audio may also be used for DVD, but this is mostly a big waste of 4707 Для DVD также может использоваться PCM, но это, по большей части, бесполезная
4712 space. 4708 трата свободного места. Имейте в виду, что MP3 аудио не совместимо ни с одним
4713 Note that MP3 audio is not compliant for any of these formats, but 4709 из этих форматов, но, как бы то ни было, часто проигрыватели не испытывают
4714 players often have no problem playing it anyway. 4710 никаких проблем с его воспроизведением.
4715 </para></listitem> 4711 </para></listitem>
4716 <listitem><para> 4712 <listitem><para>
4717 <emphasis role="bold">abitrate</emphasis>: 4713 <emphasis role="bold">abitrate</emphasis>:
4718 224 for VCD; up to 384 for SVCD; up to 1536 for DVD, but commonly 4714 224 для VCD; вплоть до 384 для SVCD; вплоть до 1536 для DVD, но
4719 used values range from 192 kbps for stereo to 384 kbps for 5.1 channel 4715 распространенным является диапазон значений от 192 кбит/с для стерео до 384
4720 sound. 4716 кбит/с для 5.1 звука.
4721 </para></listitem> 4717 </para></listitem>
4722 <listitem><para> 4718 <listitem><para>
4723 <emphasis role="bold">vcodec</emphasis>: 4719 <emphasis role="bold">vcodec</emphasis>:
4724 <option>mpeg1video</option> for VCD; 4720 <option>mpeg1video</option> для VCD;
4725 <option>mpeg2video</option> for SVCD; 4721 <option>mpeg2video</option> для SVCD;
4726 <option>mpeg2video</option> is usually used for DVD but you may also use 4722 <option>mpeg2video</option> обычно используется для DVD, но вы также можете
4727 <option>mpeg1video</option> for CIF resolutions. 4723 использовать
4724 <option>mpeg1video</option> для CIF разрешений.
4728 </para></listitem> 4725 </para></listitem>
4729 <listitem><para> 4726 <listitem><para>
4730 <emphasis role="bold">keyint</emphasis>: 4727 <emphasis role="bold">keyint</emphasis>:
4731 Used to set the GOP size. 4728 Используется для установки размера GOP.
4732 18 for 30fps material, or 15 for 25/24 fps material. 4729 18 для 30fps материала или 15 для 25/24 fps материала.
4733 Commercial producers seem to prefer keyframe intervals of 12. 4730 Коммерческие изготовители похоже предпочитают значение интервала ключевых
4734 It is possible to make this much larger and still retain compatibility 4731 кадров, равное 12. Можно значительно увеличить это значение и все еще
4735 with most players. 4732 сохранять совместимость с большинством проигрывателей.
4736 A <option>keyint</option> of 25 should never cause any problems. 4733 <option>keyint</option> равное 25 не должно вызывать никаких проблем.
4737 </para></listitem> 4734 </para></listitem>
4738 <listitem><para> 4735 <listitem><para>
4739 <emphasis role="bold">vrc_buf_size</emphasis>: 4736 <emphasis role="bold">vrc_buf_size</emphasis>:
4740 327 for VCD, 917 for SVCD, and 1835 for DVD. 4737 327 для VCD, 917 для SVCD и 1835 ддя DVD.
4741 </para></listitem> 4738 </para></listitem>
4742 <listitem><para> 4739 <listitem><para>
4743 <emphasis role="bold">vrc_minrate</emphasis>: 4740 <emphasis role="bold">vrc_minrate</emphasis>:
4744 1152, for VCD. May be left alone for SVCD and DVD. 4741 1152 для VCD. Иожет не указываться для SVCD и DVD.
4745 </para></listitem> 4742 </para></listitem>
4746 <listitem><para> 4743 <listitem><para>
4747 <emphasis role="bold">vrc_maxrate</emphasis>: 4744 <emphasis role="bold">vrc_maxrate</emphasis>:
4748 1152 for VCD; 2500 for SVCD; 9800 for DVD. 4745 1152 для VCD; 2500 для SVCD; 9800 для DVD.
4749 For SVCD and DVD, you might wish to use lower values depending on your 4746 Для SVCD и DVD вы, возможно, пожелаете использовать меньшие значение в
4750 own personal preferences and requirements. 4747 зависимости от ваших личных требований и предпочтений.
4751 </para></listitem> 4748 </para></listitem>
4752 <listitem><para> 4749 <listitem><para>
4753 <emphasis role="bold">vbitrate</emphasis>: 4750 <emphasis role="bold">vbitrate</emphasis>:
4754 1152 for VCD; 4751 1152 для VCD;
4755 up to 2500 for SVCD; 4752 вплоть до 2500 для SVCD;
4756 up to 9800 for DVD. 4753 вплоть до 9800 для DVD.
4757 For the latter two formats, vbitrate should be set based on personal 4754 Для двух последний форматов, vbitrate следует установить на основании личных
4758 preference. 4755 предпочтений.
4759 For instance, if you insist on fitting 20 or so hours on a DVD, you 4756 Например, если вы настаиваете на размещении 20 или около того часов видео на
4760 could use vbitrate=400. 4757 DVD, можете использовать vbitrate=400.
4761 The resulting video quality would probably be quite bad. 4758 Качество получившегося видео, возможно, будет довольно плохим.
4762 If you are trying to squeeze out the maximum possible quality on a DVD, 4759 Если вы пытаетесь выжать максимально возможное качество на DVD, используйте
4763 use vbitrate=9800, but be warned that this could constrain you to less 4760 vbitrate=9800, но имейте в виду, что это ограничит вас менее чем одним часом
4764 than an hour of video on a single-layer DVD. 4761 видео на однослойном DVD.
4765 </para></listitem> 4762 </para></listitem>
4766 <listitem><para> 4763 <listitem><para>
4767 <emphasis role="bold">vtrict</emphasis>: 4764 <emphasis role="bold">vtrict</emphasis>:
4768 <option>vstrict</option>=0 should be used to create DVDs. 4765 <option>vstrict</option>=0 следует использовать для создания DVD.
4769 Without this option, <application>MEncoder</application> creates a 4766 Без этой опции <application>MEncoder</application> создает поток, который не
4770 stream that cannot be correctly decoded by some standalone DVD 4767 может быть корректно декодирован некоторыми аппаратными DVD проигрывателями.
4771 players.
4772 </para></listitem> 4768 </para></listitem>
4773 </itemizedlist> 4769 </itemizedlist>
4774 </sect3> 4770 </sect3>
4775 4771
4776 4772
4777 <sect3 id="menc-feat-vcd-dvd-lavc-examples"> 4773 <sect3 id="menc-feat-vcd-dvd-lavc-examples">
4778 <title>Examples</title> 4774 <title>Примеры</title>
4779 4775
4780 <para> 4776 <para>
4781 This is a typical minimum set of <option>-lavcopts</option> for 4777 Это обычный минимальный набор <option>-lavcopts</option> для кодирования видео:
4782 encoding video:
4783 </para> 4778 </para>
4784 <para> 4779 <para>
4785 VCD: 4780 VCD:
4786 <screen> 4781 <screen>
4787 -lavcopts vcodec=mpeg1video:vrc_buf_size=327:vrc_minrate=1152:\ 4782 -lavcopts vcodec=mpeg1video:vrc_buf_size=327:vrc_minrate=1152:\
4806 </para> 4801 </para>
4807 </sect3> 4802 </sect3>
4808 4803
4809 4804
4810 <sect3 id="menc-feat-vcd-dvd-lavc-advanced"> 4805 <sect3 id="menc-feat-vcd-dvd-lavc-advanced">
4811 <title>Advanced Options</title> 4806 <title>Расширенные опции</title>
4812 4807
4813 <para> 4808 <para>
4814 For higher quality encoding, you may also wish to add quality-enhancing 4809 For higher quality encoding, you may also wish to add quality-enhancing
4815 options to lavcopts, such as <option>trell</option>, 4810 options to lavcopts, such as <option>trell</option>,
4816 <option>mbd=2</option>, and others. 4811 <option>mbd=2</option>, and others.
4834 </sect2> 4829 </sect2>
4835 4830
4836 <!-- ********** --> 4831 <!-- ********** -->
4837 4832
4838 <sect2 id="menc-feat-vcd-dvd-audio"> 4833 <sect2 id="menc-feat-vcd-dvd-audio">
4839 <title>Encoding Audio</title> 4834 <title>Кодирование звука</title>
4840 4835
4841 <para> 4836 <para>
4842 VCD and SVCD support MPEG-1 layer II audio, using one of 4837 VCD и SVCD поддерживают звук MPEG-1 layer II, используя одну из
4843 <systemitem class="library">toolame</systemitem>, 4838 <systemitem class="library">toolame</systemitem>,
4844 <systemitem class="library">twolame</systemitem>, 4839 <systemitem class="library">twolame</systemitem>,
4845 or <systemitem class="library">libavcodec</systemitem>'s MP2 encoder. 4840 или MP2 <systemitem class="library">libavcodec</systemitem> кодировщик.
4846 The libavcodec MP2 is far from being as good as the other two libraries, 4841 libavcodec MP2 не так хорош, как остальные две библиотеки, однако он должен
4847 however it should always be available to use. 4842 быть всегда доступен для использования.
4848 VCD only supports constant bitrate audio (CBR) whereas SVCD supports 4843 VCD поддерживает только звук с постоянным битпотоком (CBR), в то время как SVCD
4849 variable bitrate (VBR), too. 4844 также поддерживает и переменный (VBR). Будьте осторожны, используя VBR,
4850 Be careful when using VBR because some bad standalone players might not 4845 поскольку некоторые аппаратные проигрыватели могут не очень хорошо его
4851 support it too well. 4846 поддерживать.
4852 </para> 4847 </para>
4853 4848
4854 <para> 4849 <para>
4855 For DVD audio, <systemitem class="library">libavcodec</systemitem>'s 4850 Для DVD звука используется AC3 кодек из <systemitem class="library">libavcodec</systemitem>.
4856 AC3 codec is used.
4857 </para> 4851 </para>
4858 4852
4859 4853
4860 <sect3 id="menc-feat-vcd-dvd-audio-toolame"> 4854 <sect3 id="menc-feat-vcd-dvd-audio-toolame">
4861 <title>toolame</title> 4855 <title>toolame</title>
4862 4856
4863 <para> 4857 <para>
4864 For VCD and SVCD: 4858 Для VCD и SVCD:
4865 <screen>-oac toolame -toolameopts br=224</screen> 4859 <screen>-oac toolame -toolameopts br=224</screen>
4866 </para> 4860 </para>
4867 </sect3> 4861 </sect3>
4868 4862
4869 4863
4870 <sect3 id="menc-feat-vcd-dvd-audio-twolame"> 4864 <sect3 id="menc-feat-vcd-dvd-audio-twolame">
4871 <title>twolame</title> 4865 <title>twolame</title>
4872 4866
4873 <para> 4867 <para>
4874 For VCD and SVCD: 4868 Для VCD и SVCD:
4875 <screen>-oac twolame -twolameopts br=224</screen> 4869 <screen>-oac twolame -twolameopts br=224</screen>
4876 </para> 4870 </para>
4877 </sect3> 4871 </sect3>
4878 4872
4879 4873
4880 <sect3 id="menc-feat-vcd-dvd-audio-lavc"> 4874 <sect3 id="menc-feat-vcd-dvd-audio-lavc">
4881 <title>libavcodec</title> 4875 <title>libavcodec</title>
4882 4876
4883 <para> 4877 <para>
4884 For DVD with 2 channel sound: 4878 Для 2 канального DVD звука:
4885 <screen>-oac lavc -lavcopts acodec=ac3:abitrate=192</screen> 4879 <screen>-oac lavc -lavcopts acodec=ac3:abitrate=192</screen>
4886 </para> 4880 </para>
4887 4881
4888 <para> 4882 <para>
4889 For DVD with 5.1 channel sound: 4883 Для DVD с 5.1 звуком:
4890 <screen>-channels 6 -oac lavc -lavcopts acodec=ac3:abitrate=384</screen> 4884 <screen>-channels 6 -oac lavc -lavcopts acodec=ac3:abitrate=384</screen>
4891 </para> 4885 </para>
4892 4886
4893 <para> 4887 <para>
4894 For VCD and SVCD: 4888 Для VCD и SVCD:
4895 <screen>-oac lavc -lavcopts acodec=mp2:abitrate=224</screen> 4889 <screen>-oac lavc -lavcopts acodec=mp2:abitrate=224</screen>
4896 </para> 4890 </para>
4897 </sect3> 4891 </sect3>
4898 </sect2> 4892 </sect2>
4899 4893
4900 <!-- ********** --> 4894 <!-- ********** -->
4901 4895
4902 <sect2 id="menc-feat-vcd-dvd-all"> 4896 <sect2 id="menc-feat-vcd-dvd-all">
4903 <title>Putting it all Together</title> 4897 <title>Собирая все вместе</title>
4904 4898
4905 <para> 4899 <para>
4906 This section shows some complete commands for creating VCD/SVCD/DVD 4900 Этот раздел демонстрирует некоторые полные команды для создания VCD/SVCD/DVD
4907 compliant videos. 4901 совместимого видео.
4908 </para> 4902 </para>
4909 4903
4910 4904
4911 <sect3 id="menc-feat-vcd-dvd-all-pal-dvd"> 4905 <sect3 id="menc-feat-vcd-dvd-all-pal-dvd">
4912 <title>PAL DVD</title> 4906 <title>PAL DVD</title>
4937 </para> 4931 </para>
4938 </sect3> 4932 </sect3>
4939 4933
4940 4934
4941 <sect3 id="menc-feat-vcd-dvd-all-pal-ac3-copy"> 4935 <sect3 id="menc-feat-vcd-dvd-all-pal-ac3-copy">
4942 <title>PAL AVI Containing AC3 Audio to DVD</title> 4936 <title>PAL AVI, содержащий AC3 звук, в DVD</title>
4943 4937
4944 <para> 4938 <para>
4945 If the source already has AC3 audio, use -oac copy instead of re-encoding it. 4939 Если исходный материал уже содержит AC3 звук, используйте -oac copy вместо
4940 перекодирования.
4946 <screen> 4941 <screen>
4947 mencoder -oac copy -ovc lavc -of mpeg -mpegopts format=dvd:tsaf \ 4942 mencoder -oac copy -ovc lavc -of mpeg -mpegopts format=dvd:tsaf \
4948 -vf scale=720:576,harddup -ofps 25 \ 4943 -vf scale=720:576,harddup -ofps 25 \
4949 -lavcopts vcodec=mpeg2video:vrc_buf_size=1835:vrc_maxrate=9800:vbitrate=5000:\ 4944 -lavcopts vcodec=mpeg2video:vrc_buf_size=1835:vrc_maxrate=9800:vbitrate=5000:\
4950 keyint=15:vstrict=0:aspect=16/9 -o <replaceable>movie.mpg</replaceable> <replaceable>movie.avi</replaceable> 4945 keyint=15:vstrict=0:aspect=16/9 -o <replaceable>movie.mpg</replaceable> <replaceable>movie.avi</replaceable>
4952 </para> 4947 </para>
4953 </sect3> 4948 </sect3>
4954 4949
4955 4950
4956 <sect3 id="menc-feat-vcd-dvd-all-ntsc-ac3-copy"> 4951 <sect3 id="menc-feat-vcd-dvd-all-ntsc-ac3-copy">
4957 <title>NTSC AVI Containing AC3 Audio to DVD</title> 4952 <title>NTSC AVI, содержащий AC3 звук, в DVD</title>
4958 4953
4959 <para> 4954 <para>
4960 If the source already has AC3 audio, and is NTSC @ 24000/1001 fps: 4955 Если исходный материал уже содержит AC3 звук и является NTSC @ 24000/1001 fps:
4961 <screen> 4956 <screen>
4962 mencoder -oac copy -ovc lavc -of mpeg -mpegopts format=dvd:tsaf:telecine \ 4957 mencoder -oac copy -ovc lavc -of mpeg -mpegopts format=dvd:tsaf:telecine \
4963 -vf scale=720:480,harddup -lavcopts vcodec=mpeg2video:vrc_buf_size=1835:\ 4958 -vf scale=720:480,harddup -lavcopts vcodec=mpeg2video:vrc_buf_size=1835:\
4964 vrc_maxrate=9800:vbitrate=5000:keyint=15:vstrict=0:aspect=16/9 -ofps 24000/1001 \ 4959 vrc_maxrate=9800:vbitrate=5000:keyint=15:vstrict=0:aspect=16/9 -ofps 24000/1001 \
4965 -o <replaceable>movie.mpg</replaceable> <replaceable>movie.avi</replaceable> 4960 -o <replaceable>movie.mpg</replaceable> <replaceable>movie.avi</replaceable>