annotate DOCS/xml/ru/mencoder.xml @ 23329:4d0dd033b167

-----mencoder.xml---- r23342: Add ID to example. -----mplayer.1---- r23325: 1L to me: dv does not support YVU9.
author voroshil
date Sat, 19 May 2007 15:28:01 +0000
parents 9fadbbd19a04
children 46893ce2458e
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
20514
bb605f1ccb4d convert DOCS/ru from koi8r to UTF-8
voroshil
parents: 20041
diff changeset
1 <?xml version="1.0" encoding="utf-8"?>
23329
4d0dd033b167 -----mencoder.xml----
voroshil
parents: 22138
diff changeset
2 <!-- synced with r23342 -->
19750
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
3 <chapter id="mencoder">
20514
bb605f1ccb4d convert DOCS/ru from koi8r to UTF-8
voroshil
parents: 20041
diff changeset
4 <title>Основы использования <application>MEncoder</application></title>
19750
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
5
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
6 <para>
20514
bb605f1ccb4d convert DOCS/ru from koi8r to UTF-8
voroshil
parents: 20041
diff changeset
7 Полный список доступных опций <application>MEncoder</application> и примеры
bb605f1ccb4d convert DOCS/ru from koi8r to UTF-8
voroshil
parents: 20041
diff changeset
8 смотрите на странице руководства man.
19750
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
9
20514
bb605f1ccb4d convert DOCS/ru from koi8r to UTF-8
voroshil
parents: 20041
diff changeset
10 Ряд наглядных примеров и подробные руководства по использованию отдельных
bb605f1ccb4d convert DOCS/ru from koi8r to UTF-8
voroshil
parents: 20041
diff changeset
11 параметров кодирования, можно узнать прочтя
bb605f1ccb4d convert DOCS/ru from koi8r to UTF-8
voroshil
parents: 20041
diff changeset
12 <ulink url="../../tech/encoding-tips.txt">советы по кодированию</ulink>, которые мы
22138
9fadbbd19a04 r22129: Link to the mencoder-users list for mencoder stuff
voroshil
parents: 21745
diff changeset
13 собрали из отдельных нитей[threads] рассылки MPlayer-users. В архивах
9fadbbd19a04 r22129: Link to the mencoder-users list for mencoder stuff
voroshil
parents: 21745
diff changeset
14 <ulink url="http://lists.mplayerhq.hu/pipermail/mencoder-users/">здесь</ulink>
9fadbbd19a04 r22129: Link to the mencoder-users list for mencoder stuff
voroshil
parents: 21745
diff changeset
15 и, особенно по поводу старых вещей,
9fadbbd19a04 r22129: Link to the mencoder-users list for mencoder stuff
voroshil
parents: 21745
diff changeset
16 <ulink url="http://lists.mplayerhq.hu/pipermail/mplayer-users/">здесь</ulink>
20514
bb605f1ccb4d convert DOCS/ru from koi8r to UTF-8
voroshil
parents: 20041
diff changeset
17 найдется множество дискуссий, посвященных всех аспектам и проблемам кодирования
bb605f1ccb4d convert DOCS/ru from koi8r to UTF-8
voroshil
parents: 20041
diff changeset
18 при помощи <application>MEncoder</application>.
19750
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
19 </para>
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
20
21456
c056d0f91a73 r21462: mention all other image formats
voroshil
parents: 21442
diff changeset
21
c056d0f91a73 r21462: mention all other image formats
voroshil
parents: 21442
diff changeset
22 <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
c056d0f91a73 r21462: mention all other image formats
voroshil
parents: 21442
diff changeset
23
c056d0f91a73 r21462: mention all other image formats
voroshil
parents: 21442
diff changeset
24
19750
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
25 <sect1 id="menc-feat-selecting-codec">
20514
bb605f1ccb4d convert DOCS/ru from koi8r to UTF-8
voroshil
parents: 20041
diff changeset
26 <title>Выбор кодеков и формата файлов</title>
19750
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
27
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
28 <para>
21456
c056d0f91a73 r21462: mention all other image formats
voroshil
parents: 21442
diff changeset
29 Аудио и видео кодеки для кодирования выбираются опциями
c056d0f91a73 r21462: mention all other image formats
voroshil
parents: 21442
diff changeset
30 <option>-oac</option> и <option>-ovc</option>, соответственно.
21700
68248f4e3027 Typos, spelling fixes
voroshil
parents: 21598
diff changeset
31 Наберите для примера:
21456
c056d0f91a73 r21462: mention all other image formats
voroshil
parents: 21442
diff changeset
32 <screen>mencoder -ovc help</screen>
c056d0f91a73 r21462: mention all other image formats
voroshil
parents: 21442
diff changeset
33 чтобы получить список всех видео кодеков поддерживаемых
c056d0f91a73 r21462: mention all other image formats
voroshil
parents: 21442
diff changeset
34 версией <application>MEncoder</application>, установленной на вашей машине.
c056d0f91a73 r21462: mention all other image formats
voroshil
parents: 21442
diff changeset
35 Доступны следующие варианты:
19750
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
36 </para>
21456
c056d0f91a73 r21462: mention all other image formats
voroshil
parents: 21442
diff changeset
37
19750
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
38 <para>
20514
bb605f1ccb4d convert DOCS/ru from koi8r to UTF-8
voroshil
parents: 20041
diff changeset
39 Аудио кодеки:
19750
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
40 <informaltable frame="all">
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
41 <tgroup cols="2">
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
42 <thead>
21525
329b03d67891 r21537: General reformatting round:
voroshil
parents: 21456
diff changeset
43 <row>
329b03d67891 r21537: General reformatting round:
voroshil
parents: 21456
diff changeset
44 <entry>Название кодека</entry>
329b03d67891 r21537: General reformatting round:
voroshil
parents: 21456
diff changeset
45 <entry>Описание</entry></row>
19750
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
46 </thead>
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
47 <tbody>
21525
329b03d67891 r21537: General reformatting round:
voroshil
parents: 21456
diff changeset
48 <row>
329b03d67891 r21537: General reformatting round:
voroshil
parents: 21456
diff changeset
49 <entry>mp3lame</entry>
329b03d67891 r21537: General reformatting round:
voroshil
parents: 21456
diff changeset
50 <entry>Кодируйте в VBR, ABR или CBR MP3 с LAME</entry>
329b03d67891 r21537: General reformatting round:
voroshil
parents: 21456
diff changeset
51 </row>
329b03d67891 r21537: General reformatting round:
voroshil
parents: 21456
diff changeset
52 <row>
329b03d67891 r21537: General reformatting round:
voroshil
parents: 21456
diff changeset
53 <entry>lavc</entry>
21745
7b4bf230c06c r21748: Reformatting round continued
voroshil
parents: 21729
diff changeset
54 <entry>Используйте один из кодеков библиотеки <link linkend="menc-feat-enc-libavcodec-audio-codecs"><systemitem class="library">libavcodec</systemitem></link></entry>
21525
329b03d67891 r21537: General reformatting round:
voroshil
parents: 21456
diff changeset
55 </row>
329b03d67891 r21537: General reformatting round:
voroshil
parents: 21456
diff changeset
56 <row>
329b03d67891 r21537: General reformatting round:
voroshil
parents: 21456
diff changeset
57 <entry>faac</entry>
329b03d67891 r21537: General reformatting round:
voroshil
parents: 21456
diff changeset
58 <entry>FAAC AAC аудио кодер</entry>
329b03d67891 r21537: General reformatting round:
voroshil
parents: 21456
diff changeset
59 </row>
329b03d67891 r21537: General reformatting round:
voroshil
parents: 21456
diff changeset
60 <row>
329b03d67891 r21537: General reformatting round:
voroshil
parents: 21456
diff changeset
61 <entry>toolame</entry>
329b03d67891 r21537: General reformatting round:
voroshil
parents: 21456
diff changeset
62 <entry>MPEG Audio Layer 2 кодер</entry>
329b03d67891 r21537: General reformatting round:
voroshil
parents: 21456
diff changeset
63 </row>
329b03d67891 r21537: General reformatting round:
voroshil
parents: 21456
diff changeset
64 <row>
329b03d67891 r21537: General reformatting round:
voroshil
parents: 21456
diff changeset
65 <entry>twolame</entry>
329b03d67891 r21537: General reformatting round:
voroshil
parents: 21456
diff changeset
66 <entry>MPEG Audio Layer 2 кодер, основанный на tooLAME</entry>
329b03d67891 r21537: General reformatting round:
voroshil
parents: 21456
diff changeset
67 </row>
329b03d67891 r21537: General reformatting round:
voroshil
parents: 21456
diff changeset
68 <row>
329b03d67891 r21537: General reformatting round:
voroshil
parents: 21456
diff changeset
69 <entry>pcm</entry>
329b03d67891 r21537: General reformatting round:
voroshil
parents: 21456
diff changeset
70 <entry>Несжатый PCM звук</entry>
329b03d67891 r21537: General reformatting round:
voroshil
parents: 21456
diff changeset
71 </row>
329b03d67891 r21537: General reformatting round:
voroshil
parents: 21456
diff changeset
72 <row>
329b03d67891 r21537: General reformatting round:
voroshil
parents: 21456
diff changeset
73 <entry>copy</entry>
329b03d67891 r21537: General reformatting round:
voroshil
parents: 21456
diff changeset
74 <entry>Не перекодировать, просто копировать сжатые кадры</entry>
329b03d67891 r21537: General reformatting round:
voroshil
parents: 21456
diff changeset
75 </row>
19750
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
76 </tbody>
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
77 </tgroup>
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
78 </informaltable>
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
79 </para>
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
80
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
81 <para>
20514
bb605f1ccb4d convert DOCS/ru from koi8r to UTF-8
voroshil
parents: 20041
diff changeset
82 Видео кодеки:
19750
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
83 <informaltable frame="all">
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
84 <tgroup cols="2">
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
85 <thead>
20514
bb605f1ccb4d convert DOCS/ru from koi8r to UTF-8
voroshil
parents: 20041
diff changeset
86 <row><entry>Название кодека</entry><entry>Описание</entry></row>
19750
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
87 </thead>
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
88 <tbody>
21525
329b03d67891 r21537: General reformatting round:
voroshil
parents: 21456
diff changeset
89 <row>
329b03d67891 r21537: General reformatting round:
voroshil
parents: 21456
diff changeset
90 <entry>lavc</entry>
21745
7b4bf230c06c r21748: Reformatting round continued
voroshil
parents: 21729
diff changeset
91 <entry>Используйте один из кодеков библиотеки <link linkend="menc-feat-enc-libavcodec-video-codecs"><systemitem class="library">libavcodec</systemitem></link></entry>
21525
329b03d67891 r21537: General reformatting round:
voroshil
parents: 21456
diff changeset
92 </row>
329b03d67891 r21537: General reformatting round:
voroshil
parents: 21456
diff changeset
93 <row>
329b03d67891 r21537: General reformatting round:
voroshil
parents: 21456
diff changeset
94 <entry>xvid</entry>
329b03d67891 r21537: General reformatting round:
voroshil
parents: 21456
diff changeset
95 <entry>Xvid, MPEG-4 Advanced Simple Profile (ASP) кодек</entry>
329b03d67891 r21537: General reformatting round:
voroshil
parents: 21456
diff changeset
96 </row>
329b03d67891 r21537: General reformatting round:
voroshil
parents: 21456
diff changeset
97 <row>
329b03d67891 r21537: General reformatting round:
voroshil
parents: 21456
diff changeset
98 <entry>x264</entry>
329b03d67891 r21537: General reformatting round:
voroshil
parents: 21456
diff changeset
99 <entry>x264, MPEG-4 Advanced Video Coding (AVC), AKA[он же] H.264 кодек</entry>
329b03d67891 r21537: General reformatting round:
voroshil
parents: 21456
diff changeset
100 </row>
329b03d67891 r21537: General reformatting round:
voroshil
parents: 21456
diff changeset
101 <row>
329b03d67891 r21537: General reformatting round:
voroshil
parents: 21456
diff changeset
102 <entry>nuv</entry>
329b03d67891 r21537: General reformatting round:
voroshil
parents: 21456
diff changeset
103 <entry>nuppel видео, используемое некоторыми приложениями реального времени</entry>
329b03d67891 r21537: General reformatting round:
voroshil
parents: 21456
diff changeset
104 </row>
329b03d67891 r21537: General reformatting round:
voroshil
parents: 21456
diff changeset
105 <row>
329b03d67891 r21537: General reformatting round:
voroshil
parents: 21456
diff changeset
106 <entry>raw</entry>
329b03d67891 r21537: General reformatting round:
voroshil
parents: 21456
diff changeset
107 <entry>Несжатые видео кадры</entry>
329b03d67891 r21537: General reformatting round:
voroshil
parents: 21456
diff changeset
108 </row>
329b03d67891 r21537: General reformatting round:
voroshil
parents: 21456
diff changeset
109 <row>
329b03d67891 r21537: General reformatting round:
voroshil
parents: 21456
diff changeset
110 <entry>copy</entry>
329b03d67891 r21537: General reformatting round:
voroshil
parents: 21456
diff changeset
111 <entry>Не перекодировать, просто скопировать сжатые кадры</entry>
329b03d67891 r21537: General reformatting round:
voroshil
parents: 21456
diff changeset
112 </row>
329b03d67891 r21537: General reformatting round:
voroshil
parents: 21456
diff changeset
113 <row>
329b03d67891 r21537: General reformatting round:
voroshil
parents: 21456
diff changeset
114 <entry>frameno</entry>
329b03d67891 r21537: General reformatting round:
voroshil
parents: 21456
diff changeset
115 <entry>Использовался для 3-х проходного кодирования (не рекомендуется)</entry>
329b03d67891 r21537: General reformatting round:
voroshil
parents: 21456
diff changeset
116 </row>
19750
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
117 </tbody>
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
118 </tgroup>
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
119 </informaltable>
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
120 </para>
21456
c056d0f91a73 r21462: mention all other image formats
voroshil
parents: 21442
diff changeset
121
19750
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
122 <para>
21456
c056d0f91a73 r21462: mention all other image formats
voroshil
parents: 21442
diff changeset
123 Формат выходных файлов выбирается опцией <option>-of</option>.
c056d0f91a73 r21462: mention all other image formats
voroshil
parents: 21442
diff changeset
124 Наберите:
c056d0f91a73 r21462: mention all other image formats
voroshil
parents: 21442
diff changeset
125 <screen>mencoder -of help</screen>
c056d0f91a73 r21462: mention all other image formats
voroshil
parents: 21442
diff changeset
126 чтобы получить список всех форматов, поддерживаемых версией
c056d0f91a73 r21462: mention all other image formats
voroshil
parents: 21442
diff changeset
127 <application>MEncoder</application>, установленного на вашей машине.
c056d0f91a73 r21462: mention all other image formats
voroshil
parents: 21442
diff changeset
128 Доступны следующие варианты:
19750
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
129 </para>
21456
c056d0f91a73 r21462: mention all other image formats
voroshil
parents: 21442
diff changeset
130
19750
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
131 <para>
20514
bb605f1ccb4d convert DOCS/ru from koi8r to UTF-8
voroshil
parents: 20041
diff changeset
132 Форматы файлов:
19750
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
133 <informaltable frame="all">
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
134 <tgroup cols="2">
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
135 <thead>
20514
bb605f1ccb4d convert DOCS/ru from koi8r to UTF-8
voroshil
parents: 20041
diff changeset
136 <row><entry>Название формата</entry><entry>Описание</entry></row>
19750
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
137 </thead>
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
138 <tbody>
21525
329b03d67891 r21537: General reformatting round:
voroshil
parents: 21456
diff changeset
139 <row>
329b03d67891 r21537: General reformatting round:
voroshil
parents: 21456
diff changeset
140 <entry>lavf</entry>
329b03d67891 r21537: General reformatting round:
voroshil
parents: 21456
diff changeset
141 <entry>Один из форматов, поддерживаемых библиотекой
329b03d67891 r21537: General reformatting round:
voroshil
parents: 21456
diff changeset
142 <systemitem class="library">libavformat</systemitem></entry>
329b03d67891 r21537: General reformatting round:
voroshil
parents: 21456
diff changeset
143 </row>
329b03d67891 r21537: General reformatting round:
voroshil
parents: 21456
diff changeset
144 <row>
329b03d67891 r21537: General reformatting round:
voroshil
parents: 21456
diff changeset
145 <entry>avi</entry>
329b03d67891 r21537: General reformatting round:
voroshil
parents: 21456
diff changeset
146 <entry>'Слоеное' Аудио-Видео</entry>
329b03d67891 r21537: General reformatting round:
voroshil
parents: 21456
diff changeset
147 </row>
329b03d67891 r21537: General reformatting round:
voroshil
parents: 21456
diff changeset
148 <row>
329b03d67891 r21537: General reformatting round:
voroshil
parents: 21456
diff changeset
149 <entry>mpeg</entry>
329b03d67891 r21537: General reformatting round:
voroshil
parents: 21456
diff changeset
150 <entry>MPEG-1 и MPEG-2 PS</entry>
329b03d67891 r21537: General reformatting round:
voroshil
parents: 21456
diff changeset
151 </row>
329b03d67891 r21537: General reformatting round:
voroshil
parents: 21456
diff changeset
152 <row>
329b03d67891 r21537: General reformatting round:
voroshil
parents: 21456
diff changeset
153 <entry>rawvideo</entry>
21700
68248f4e3027 Typos, spelling fixes
voroshil
parents: 21598
diff changeset
154 <entry>сырой видео поток (без мультиплексирования - только видео поток)</entry>
21525
329b03d67891 r21537: General reformatting round:
voroshil
parents: 21456
diff changeset
155 </row>
329b03d67891 r21537: General reformatting round:
voroshil
parents: 21456
diff changeset
156 <row>
329b03d67891 r21537: General reformatting round:
voroshil
parents: 21456
diff changeset
157 <entry>rawaudio</entry>
21700
68248f4e3027 Typos, spelling fixes
voroshil
parents: 21598
diff changeset
158 <entry>сырой аудио поток (без мультиплексирования - только аудио поток)</entry>
21525
329b03d67891 r21537: General reformatting round:
voroshil
parents: 21456
diff changeset
159 </row>
19750
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
160 </tbody>
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
161 </tgroup>
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
162 </informaltable>
21456
c056d0f91a73 r21462: mention all other image formats
voroshil
parents: 21442
diff changeset
163 AVI является родным форматом для <application>MEncoder</application>,
c056d0f91a73 r21462: mention all other image formats
voroshil
parents: 21442
diff changeset
164 что означает наилучшую его поддержку,
c056d0f91a73 r21462: mention all other image formats
voroshil
parents: 21442
diff changeset
165 <application>MEncoder</application> изначально разрабатывался для этого формата.
c056d0f91a73 r21462: mention all other image formats
voroshil
parents: 21442
diff changeset
166 Как замечено выше, другие форматы тоже пригодны, но
c056d0f91a73 r21462: mention all other image formats
voroshil
parents: 21442
diff changeset
167 вы можете столкнуться с проблемами при их использовании.
19750
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
168 </para>
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
169
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
170 <para>
20514
bb605f1ccb4d convert DOCS/ru from koi8r to UTF-8
voroshil
parents: 20041
diff changeset
171 форматы файлов библиотеки <systemitem class="library">libavformat</systemitem>:
19750
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
172 </para>
21456
c056d0f91a73 r21462: mention all other image formats
voroshil
parents: 21442
diff changeset
173
19750
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
174 <para>
21456
c056d0f91a73 r21462: mention all other image formats
voroshil
parents: 21442
diff changeset
175 Если вы выбрали <systemitem class="library">libavformat</systemitem> для
21700
68248f4e3027 Typos, spelling fixes
voroshil
parents: 21598
diff changeset
176 мультиплексирования выходного файла (используя <option>-of lavf</option>),
21456
c056d0f91a73 r21462: mention all other image formats
voroshil
parents: 21442
diff changeset
177 подходящий формат файла будет определен по расширению выходного файла.
c056d0f91a73 r21462: mention all other image formats
voroshil
parents: 21442
diff changeset
178 Вы можете заставить использовать конкретный формат опцией
c056d0f91a73 r21462: mention all other image formats
voroshil
parents: 21442
diff changeset
179 <option>format</option> библиотеки
c056d0f91a73 r21462: mention all other image formats
voroshil
parents: 21442
diff changeset
180 <systemitem class="library">libavformat</systemitem>.
19750
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
181
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
182 <informaltable frame="all">
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
183 <tgroup cols="2">
21456
c056d0f91a73 r21462: mention all other image formats
voroshil
parents: 21442
diff changeset
184 <thead><row>
c056d0f91a73 r21462: mention all other image formats
voroshil
parents: 21442
diff changeset
185 <entry>название формата <systemitem class="library">libavformat</systemitem></entry><entry>Описание</entry>
c056d0f91a73 r21462: mention all other image formats
voroshil
parents: 21442
diff changeset
186 </row></thead>
19750
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
187 <tbody>
21525
329b03d67891 r21537: General reformatting round:
voroshil
parents: 21456
diff changeset
188 <row>
329b03d67891 r21537: General reformatting round:
voroshil
parents: 21456
diff changeset
189 <entry>mpg</entry>
329b03d67891 r21537: General reformatting round:
voroshil
parents: 21456
diff changeset
190 <entry>MPEG-1 и MPEG-2 PS</entry>
329b03d67891 r21537: General reformatting round:
voroshil
parents: 21456
diff changeset
191 </row>
329b03d67891 r21537: General reformatting round:
voroshil
parents: 21456
diff changeset
192 <row>
329b03d67891 r21537: General reformatting round:
voroshil
parents: 21456
diff changeset
193 <entry>asf</entry>
329b03d67891 r21537: General reformatting round:
voroshil
parents: 21456
diff changeset
194 <entry>Advanced Streaming Format</entry>
329b03d67891 r21537: General reformatting round:
voroshil
parents: 21456
diff changeset
195 </row>
329b03d67891 r21537: General reformatting round:
voroshil
parents: 21456
diff changeset
196 <row>
329b03d67891 r21537: General reformatting round:
voroshil
parents: 21456
diff changeset
197 <entry>avi</entry>
329b03d67891 r21537: General reformatting round:
voroshil
parents: 21456
diff changeset
198 <entry>'Слоеное' Аудио-Видео</entry>
329b03d67891 r21537: General reformatting round:
voroshil
parents: 21456
diff changeset
199 </row>
329b03d67891 r21537: General reformatting round:
voroshil
parents: 21456
diff changeset
200 <row>
329b03d67891 r21537: General reformatting round:
voroshil
parents: 21456
diff changeset
201 <entry>wav</entry>
329b03d67891 r21537: General reformatting round:
voroshil
parents: 21456
diff changeset
202 <entry>Waveform Аудио</entry>
329b03d67891 r21537: General reformatting round:
voroshil
parents: 21456
diff changeset
203 </row>
329b03d67891 r21537: General reformatting round:
voroshil
parents: 21456
diff changeset
204 <row>
329b03d67891 r21537: General reformatting round:
voroshil
parents: 21456
diff changeset
205 <entry>swf</entry>
329b03d67891 r21537: General reformatting round:
voroshil
parents: 21456
diff changeset
206 <entry>Macromedia Flash</entry>
329b03d67891 r21537: General reformatting round:
voroshil
parents: 21456
diff changeset
207 </row>
329b03d67891 r21537: General reformatting round:
voroshil
parents: 21456
diff changeset
208 <row>
329b03d67891 r21537: General reformatting round:
voroshil
parents: 21456
diff changeset
209 <entry>flv</entry>
329b03d67891 r21537: General reformatting round:
voroshil
parents: 21456
diff changeset
210 <entry>Macromedia Flash видео</entry>
329b03d67891 r21537: General reformatting round:
voroshil
parents: 21456
diff changeset
211 </row>
329b03d67891 r21537: General reformatting round:
voroshil
parents: 21456
diff changeset
212 <row>
329b03d67891 r21537: General reformatting round:
voroshil
parents: 21456
diff changeset
213 <entry>rm</entry>
329b03d67891 r21537: General reformatting round:
voroshil
parents: 21456
diff changeset
214 <entry>RealMedia</entry>
329b03d67891 r21537: General reformatting round:
voroshil
parents: 21456
diff changeset
215 </row>
329b03d67891 r21537: General reformatting round:
voroshil
parents: 21456
diff changeset
216 <row>
329b03d67891 r21537: General reformatting round:
voroshil
parents: 21456
diff changeset
217 <entry>au</entry>
329b03d67891 r21537: General reformatting round:
voroshil
parents: 21456
diff changeset
218 <entry>SUN AU</entry>
329b03d67891 r21537: General reformatting round:
voroshil
parents: 21456
diff changeset
219 </row>
329b03d67891 r21537: General reformatting round:
voroshil
parents: 21456
diff changeset
220 <row>
329b03d67891 r21537: General reformatting round:
voroshil
parents: 21456
diff changeset
221 <entry>nut</entry>
329b03d67891 r21537: General reformatting round:
voroshil
parents: 21456
diff changeset
222 <entry>
329b03d67891 r21537: General reformatting round:
voroshil
parents: 21456
diff changeset
223 открытый формат NUT (экспериментальный и пока не полностью соответствующий спецификации)
329b03d67891 r21537: General reformatting round:
voroshil
parents: 21456
diff changeset
224 </entry>
329b03d67891 r21537: General reformatting round:
voroshil
parents: 21456
diff changeset
225 </row>
329b03d67891 r21537: General reformatting round:
voroshil
parents: 21456
diff changeset
226 <row>
329b03d67891 r21537: General reformatting round:
voroshil
parents: 21456
diff changeset
227 <entry>mov</entry>
329b03d67891 r21537: General reformatting round:
voroshil
parents: 21456
diff changeset
228 <entry>QuickTime</entry>
329b03d67891 r21537: General reformatting round:
voroshil
parents: 21456
diff changeset
229 </row>
329b03d67891 r21537: General reformatting round:
voroshil
parents: 21456
diff changeset
230 <row>
329b03d67891 r21537: General reformatting round:
voroshil
parents: 21456
diff changeset
231 <entry>mp4</entry>
329b03d67891 r21537: General reformatting round:
voroshil
parents: 21456
diff changeset
232 <entry>MPEG-4 формат</entry>
329b03d67891 r21537: General reformatting round:
voroshil
parents: 21456
diff changeset
233 </row>
329b03d67891 r21537: General reformatting round:
voroshil
parents: 21456
diff changeset
234 <row>
329b03d67891 r21537: General reformatting round:
voroshil
parents: 21456
diff changeset
235 <entry>dv</entry>
329b03d67891 r21537: General reformatting round:
voroshil
parents: 21456
diff changeset
236 <entry>Sony Digital Видео формат</entry>
329b03d67891 r21537: General reformatting round:
voroshil
parents: 21456
diff changeset
237 </row>
19750
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
238 </tbody>
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
239 </tgroup>
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
240 </informaltable>
21456
c056d0f91a73 r21462: mention all other image formats
voroshil
parents: 21442
diff changeset
241 Как видите, <systemitem class="library">libavformat</systemitem>
21700
68248f4e3027 Typos, spelling fixes
voroshil
parents: 21598
diff changeset
242 позволяет <application>MEncoder</application> мультиплексировать во
21456
c056d0f91a73 r21462: mention all other image formats
voroshil
parents: 21442
diff changeset
243 множество форматов.
c056d0f91a73 r21462: mention all other image formats
voroshil
parents: 21442
diff changeset
244 К сожалению, поскольку <application>MEncoder</application> изначально не разрабатывался
c056d0f91a73 r21462: mention all other image formats
voroshil
parents: 21442
diff changeset
245 для поддержки форматов, отличных от AVI, вам следует относиться к результирующему
21700
68248f4e3027 Typos, spelling fixes
voroshil
parents: 21598
diff changeset
246 файлу с определенной долей паранойи. Убедитесь, что в порядке Аудио/видео синхронизация, и
21456
c056d0f91a73 r21462: mention all other image formats
voroshil
parents: 21442
diff changeset
247 файл воспроизводится не только в <application>MPlayer</application>.
19750
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
248 </para>
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
249
23329
4d0dd033b167 -----mencoder.xml----
voroshil
parents: 22138
diff changeset
250 <example id="encode_to_macromedia_flash_format">
21525
329b03d67891 r21537: General reformatting round:
voroshil
parents: 21456
diff changeset
251 <title>Кодирование в формат Macromedia Flash</title>
19750
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
252 <para>
21456
c056d0f91a73 r21462: mention all other image formats
voroshil
parents: 21442
diff changeset
253 Создание видео Macromedia Flash, подходящего для воспроизведения в веб браузере плагином
c056d0f91a73 r21462: mention all other image formats
voroshil
parents: 21442
diff changeset
254 Macromedia Flash:
19750
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
255 <screen>
21439
f55eaa359077 r21423: Consistent capitalization of table entries
voroshil
parents: 21385
diff changeset
256 mencoder <replaceable>input.avi</replaceable> -o <replaceable>output.flv</replaceable> -of lavf \
f55eaa359077 r21423: Consistent capitalization of table entries
voroshil
parents: 21385
diff changeset
257 -oac mp3lame -lameopts abr:br=56 -srate 22050 -ovc lavc \
f55eaa359077 r21423: Consistent capitalization of table entries
voroshil
parents: 21385
diff changeset
258 -lavcopts vcodec=flv:vbitrate=500:mbd=2:mv0:trell:v4mv:cbp:last_pred=3
19750
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
259 </screen>
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
260 </para>
21525
329b03d67891 r21537: General reformatting round:
voroshil
parents: 21456
diff changeset
261 </example>
19750
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
262
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
263 </sect1>
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
264
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
265
21456
c056d0f91a73 r21462: mention all other image formats
voroshil
parents: 21442
diff changeset
266 <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
c056d0f91a73 r21462: mention all other image formats
voroshil
parents: 21442
diff changeset
267
c056d0f91a73 r21462: mention all other image formats
voroshil
parents: 21442
diff changeset
268
19750
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
269 <sect1 id="menc-feat-selecting-input">
20514
bb605f1ccb4d convert DOCS/ru from koi8r to UTF-8
voroshil
parents: 20041
diff changeset
270 <title>Выбор входного файла или устройства</title>
19750
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
271
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
272 <para>
21456
c056d0f91a73 r21462: mention all other image formats
voroshil
parents: 21442
diff changeset
273 <application>MEncoder</application> может кодировать из файлов или непосредственно
c056d0f91a73 r21462: mention all other image formats
voroshil
parents: 21442
diff changeset
274 с DVD или VCD диска.
c056d0f91a73 r21462: mention all other image formats
voroshil
parents: 21442
diff changeset
275 Просто укажите имя файла в командной строке для кодирования из файла,
c056d0f91a73 r21462: mention all other image formats
voroshil
parents: 21442
diff changeset
276 или <option>dvd://</option><replaceable>номер_ролика</replaceable> или
21700
68248f4e3027 Typos, spelling fixes
voroshil
parents: 21598
diff changeset
277 <option>vcd://</option><replaceable>номер_дорожки</replaceable> для кодирования
21456
c056d0f91a73 r21462: mention all other image formats
voroshil
parents: 21442
diff changeset
278 DVD ролика или VCD дорожки.
c056d0f91a73 r21462: mention all other image formats
voroshil
parents: 21442
diff changeset
279 Если вы уже скопировали DVD на жесткий диск (може воспользоваться утилитой вроде
c056d0f91a73 r21462: mention all other image formats
voroshil
parents: 21442
diff changeset
280 <application>dvdbackup</application>, доступной на многих системах),
21700
68248f4e3027 Typos, spelling fixes
voroshil
parents: 21598
diff changeset
281 и желаете кодировать из копии, вледует по-прежнему использовать
21456
c056d0f91a73 r21462: mention all other image formats
voroshil
parents: 21442
diff changeset
282 <option>dvd://</option> синтаксис, вместе с <option>-dvd-device</option>
c056d0f91a73 r21462: mention all other image formats
voroshil
parents: 21442
diff changeset
283 с последующим путек к корню копии DVD.
19750
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
284
21456
c056d0f91a73 r21462: mention all other image formats
voroshil
parents: 21442
diff changeset
285 Опции <option>-dvd-device</option> и <option>-cdrom-device</option> также могут
21700
68248f4e3027 Typos, spelling fixes
voroshil
parents: 21598
diff changeset
286 быть использованы для переопределения путей к файлам устройств для
21456
c056d0f91a73 r21462: mention all other image formats
voroshil
parents: 21442
diff changeset
287 чтения прямо с диска, если значения по-умолчанию
c056d0f91a73 r21462: mention all other image formats
voroshil
parents: 21442
diff changeset
288 <filename>/dev/dvd</filename> и <filename>/dev/cdrom</filename> не подходят для
c056d0f91a73 r21462: mention all other image formats
voroshil
parents: 21442
diff changeset
289 вашей системы.
19750
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
290 </para>
21456
c056d0f91a73 r21462: mention all other image formats
voroshil
parents: 21442
diff changeset
291
19750
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
292 <para>
21456
c056d0f91a73 r21462: mention all other image formats
voroshil
parents: 21442
diff changeset
293 При кодировании с DVD, часто бывает желательно выбрать раздел или диапазон
c056d0f91a73 r21462: mention all other image formats
voroshil
parents: 21442
diff changeset
294 разделов для кодирования. для этой цели можно использовать опцию
c056d0f91a73 r21462: mention all other image formats
voroshil
parents: 21442
diff changeset
295 <option>-chapter</option>.
21700
68248f4e3027 Typos, spelling fixes
voroshil
parents: 21598
diff changeset
296 Например, <option>-chapter</option> <replaceable>1-4</replaceable>
68248f4e3027 Typos, spelling fixes
voroshil
parents: 21598
diff changeset
297 будет кодировать только разделы DVD с 1-го по 4-й.
21456
c056d0f91a73 r21462: mention all other image formats
voroshil
parents: 21442
diff changeset
298 Это особенно полезно при кодировании 1400Мб с целью уместить их на 2 CD,
c056d0f91a73 r21462: mention all other image formats
voroshil
parents: 21442
diff changeset
299 так как вы можете разбить фильм точно на границе раздела, вместо
c056d0f91a73 r21462: mention all other image formats
voroshil
parents: 21442
diff changeset
300 середины некоторой сцены.
19750
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
301 </para>
21456
c056d0f91a73 r21462: mention all other image formats
voroshil
parents: 21442
diff changeset
302
19750
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
303 <para>
20514
bb605f1ccb4d convert DOCS/ru from koi8r to UTF-8
voroshil
parents: 20041
diff changeset
304 Если у вас есть поддерживаемая карта TV захвата, вы также можете
bb605f1ccb4d convert DOCS/ru from koi8r to UTF-8
voroshil
parents: 20041
diff changeset
305 кодировать с TV входа.
21700
68248f4e3027 Typos, spelling fixes
voroshil
parents: 21598
diff changeset
306 Используйте <option>tv://</option><replaceable>номер_канала</replaceable> в качестве
20514
bb605f1ccb4d convert DOCS/ru from koi8r to UTF-8
voroshil
parents: 20041
diff changeset
307 имени файла, и опцию <option>-tv</option> для настройки различный параметров захвата.
bb605f1ccb4d convert DOCS/ru from koi8r to UTF-8
voroshil
parents: 20041
diff changeset
308 DVB вход работает аналогично.
19750
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
309 </para>
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
310 </sect1>
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
311
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
312
21456
c056d0f91a73 r21462: mention all other image formats
voroshil
parents: 21442
diff changeset
313 <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
c056d0f91a73 r21462: mention all other image formats
voroshil
parents: 21442
diff changeset
314
c056d0f91a73 r21462: mention all other image formats
voroshil
parents: 21442
diff changeset
315
19750
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
316 <sect1 id="menc-feat-mpeg4">
21598
fa4f5b0fd510 r21612: replace &quot; with ", better readability
voroshil
parents: 21525
diff changeset
317 <title>Двухпроходное кодирование MPEG-4 ("DivX")</title>
19750
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
318 <para>
21525
329b03d67891 r21537: General reformatting round:
voroshil
parents: 21456
diff changeset
319 Название происходит из того факта, что кодирование файла производится
329b03d67891 r21537: General reformatting round:
voroshil
parents: 21456
diff changeset
320 <emphasis>дважды</emphasis>.
20514
bb605f1ccb4d convert DOCS/ru from koi8r to UTF-8
voroshil
parents: 20041
diff changeset
321 Первое кодирование (дублирующий проход) создает несколько временных файлов
bb605f1ccb4d convert DOCS/ru from koi8r to UTF-8
voroshil
parents: 20041
diff changeset
322 (<filename>*.log</filename>) размером в несколько мегабайт, не удаляйте их пока
bb605f1ccb4d convert DOCS/ru from koi8r to UTF-8
voroshil
parents: 20041
diff changeset
323 (вы можете удалить AVI или вообще не создавать видеофайл, перенаправив его
bb605f1ccb4d convert DOCS/ru from koi8r to UTF-8
voroshil
parents: 20041
diff changeset
324 в <filename>/dev/null</filename>). На втором проходе, с использованием данных о
21700
68248f4e3027 Typos, spelling fixes
voroshil
parents: 21598
diff changeset
325 битпотоке из временных файлов, формируется готовый выходной. Получившийся файл
20514
bb605f1ccb4d convert DOCS/ru from koi8r to UTF-8
voroshil
parents: 20041
diff changeset
326 будет иметь намного лучшее качество картинки. Если слышите об этом в первый раз,
bb605f1ccb4d convert DOCS/ru from koi8r to UTF-8
voroshil
parents: 20041
diff changeset
327 обратитесь к руководствам, которые можно найти в интернет.
19750
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
328 </para>
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
329
20040
fa421226cfc7 r20041: Add IDs to some examples/tables.
voroshil
parents: 19750
diff changeset
330 <example id="copy_audio_track">
20514
bb605f1ccb4d convert DOCS/ru from koi8r to UTF-8
voroshil
parents: 20041
diff changeset
331 <title>копирование звуковой дорожки</title>
19750
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
332 <para>
21598
fa4f5b0fd510 r21612: replace &quot; with ", better readability
voroshil
parents: 21525
diff changeset
333 Кодирование (двухпроходное) второй дорожки DVD в MPEG-4 ("DivX") AVI с
20514
bb605f1ccb4d convert DOCS/ru from koi8r to UTF-8
voroshil
parents: 20041
diff changeset
334 копированием звуковой дорожки.
19750
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
335 <screen>
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
336 mencoder dvd://2 -ovc lavc -lavcopts vcodec=mpeg4:vpass=1 -oac copy -o /dev/null
21439
f55eaa359077 r21423: Consistent capitalization of table entries
voroshil
parents: 21385
diff changeset
337 mencoder dvd://2 -ovc lavc -lavcopts vcodec=mpeg4:mbd=2:trell:vpass=2 \
f55eaa359077 r21423: Consistent capitalization of table entries
voroshil
parents: 21385
diff changeset
338 -oac copy -o <replaceable>output.avi</replaceable>
19750
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
339 </screen>
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
340 </para>
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
341 </example>
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
342
20040
fa421226cfc7 r20041: Add IDs to some examples/tables.
voroshil
parents: 19750
diff changeset
343 <example id="encode_audio_track">
20514
bb605f1ccb4d convert DOCS/ru from koi8r to UTF-8
voroshil
parents: 20041
diff changeset
344 <title>кодирование звуковой дорожки</title>
19750
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
345 <para>
21598
fa4f5b0fd510 r21612: replace &quot; with ", better readability
voroshil
parents: 21525
diff changeset
346 Кодирование (в два прохода) DVD в MPEG-4 ("DivX") AVI с кодированием
20514
bb605f1ccb4d convert DOCS/ru from koi8r to UTF-8
voroshil
parents: 20041
diff changeset
347 звуковой дорожки в MP3. Будьте аккуратны, используя этот метод, так как в некоторых случаях
bb605f1ccb4d convert DOCS/ru from koi8r to UTF-8
voroshil
parents: 20041
diff changeset
348 это может привести к рассинхронизации аудио/видео.
19750
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
349 <screen>
21439
f55eaa359077 r21423: Consistent capitalization of table entries
voroshil
parents: 21385
diff changeset
350 mencoder dvd://2 -ovc lavc -lavcopts vcodec=mpeg4:vpass=1 \
f55eaa359077 r21423: Consistent capitalization of table entries
voroshil
parents: 21385
diff changeset
351 -oac mp3lame -lameopts vbr=3 -o /dev/null
f55eaa359077 r21423: Consistent capitalization of table entries
voroshil
parents: 21385
diff changeset
352 mencoder dvd://2 -ovc lavc -lavcopts vcodec=mpeg4:mbd=2:trell:vpass=2 \
f55eaa359077 r21423: Consistent capitalization of table entries
voroshil
parents: 21385
diff changeset
353 -oac mp3lame -lameopts vbr=3 -o <replaceable>output.avi</replaceable>
19750
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
354 </screen>
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
355 </para>
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
356 </example>
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
357 </sect1>
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
358
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
359
21456
c056d0f91a73 r21462: mention all other image formats
voroshil
parents: 21442
diff changeset
360 <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
c056d0f91a73 r21462: mention all other image formats
voroshil
parents: 21442
diff changeset
361
c056d0f91a73 r21462: mention all other image formats
voroshil
parents: 21442
diff changeset
362
19750
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
363 <sect1 id="menc-feat-handheld-psp">
20514
bb605f1ccb4d convert DOCS/ru from koi8r to UTF-8
voroshil
parents: 20041
diff changeset
364 <title>Кодирование в Sony PSP видео формат</title>
19750
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
365
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
366 <para>
21456
c056d0f91a73 r21462: mention all other image formats
voroshil
parents: 21442
diff changeset
367 <application>MEncoder</application> поддерживает кодирование в видео формат
c056d0f91a73 r21462: mention all other image formats
voroshil
parents: 21442
diff changeset
368 Sony PSP, но, в зависимости от ревизии программного обеспечения PSP,
c056d0f91a73 r21462: mention all other image formats
voroshil
parents: 21442
diff changeset
369 с различными ограничениями. Можете не беспокоиться, если не будете
c056d0f91a73 r21462: mention all other image formats
voroshil
parents: 21442
diff changeset
370 нарушать следующие ограничения:
19750
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
371 <itemizedlist>
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
372 <listitem><para>
20514
bb605f1ccb4d convert DOCS/ru from koi8r to UTF-8
voroshil
parents: 20041
diff changeset
373 <emphasis role="bold">Битовый поток</emphasis>: не должен превышать 1500кбит/с,
bb605f1ccb4d convert DOCS/ru from koi8r to UTF-8
voroshil
parents: 20041
diff changeset
374 тем не менее, последние версии очень хорошо поддерживали любой битрейт, пока
bb605f1ccb4d convert DOCS/ru from koi8r to UTF-8
voroshil
parents: 20041
diff changeset
375 заголовок не требовал черезчур большого значения.
19750
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
376 </para></listitem>
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
377 <listitem><para>
20514
bb605f1ccb4d convert DOCS/ru from koi8r to UTF-8
voroshil
parents: 20041
diff changeset
378 <emphasis role="bold">Размеры</emphasis>: ширина и высота PSP видео должна быть
bb605f1ccb4d convert DOCS/ru from koi8r to UTF-8
voroshil
parents: 20041
diff changeset
379 кратна 16, а произведение ширина * высота не должно превышать 64000.
bb605f1ccb4d convert DOCS/ru from koi8r to UTF-8
voroshil
parents: 20041
diff changeset
380 В некоторых случаях возможно воспроизведение видео большего размера.
19750
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
381 </para></listitem>
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
382 <listitem><para>
20514
bb605f1ccb4d convert DOCS/ru from koi8r to UTF-8
voroshil
parents: 20041
diff changeset
383 <emphasis role="bold">Звук</emphasis>: частота дискретизации должна быть
bb605f1ccb4d convert DOCS/ru from koi8r to UTF-8
voroshil
parents: 20041
diff changeset
384 24кГц для MPEG-4, и 48кГц для H.264.
19750
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
385 </para></listitem>
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
386 </itemizedlist>
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
387 </para>
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
388
20040
fa421226cfc7 r20041: Add IDs to some examples/tables.
voroshil
parents: 19750
diff changeset
389 <example id="encode_for_psp">
20514
bb605f1ccb4d convert DOCS/ru from koi8r to UTF-8
voroshil
parents: 20041
diff changeset
390 <title>Кодирование для PSP</title>
19750
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
391 <para>
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
392 <screen>
21439
f55eaa359077 r21423: Consistent capitalization of table entries
voroshil
parents: 21385
diff changeset
393 mencoder -ofps 30000/1001 -af lavcresample=24000 -vf harddup -of lavf \
21456
c056d0f91a73 r21462: mention all other image formats
voroshil
parents: 21442
diff changeset
394 -oac lavc -ovc lavc -lavcopts aglobal=1:vglobal=1:vcodec=mpeg4:acodec=aac \
c056d0f91a73 r21462: mention all other image formats
voroshil
parents: 21442
diff changeset
395 -lavfopts format=psp:i_certify_that_my_video_stream_does_not_use_b_frames \
21442
f95a872702d5 fix two overlooked typos in previous sync cause build error
voroshil
parents: 21440
diff changeset
396 <replaceable>input.video</replaceable> -o <replaceable>output.psp</replaceable>
19750
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
397 </screen>
21456
c056d0f91a73 r21462: mention all other image formats
voroshil
parents: 21442
diff changeset
398 Заметьте, что можно задать заголовок видео опцией
c056d0f91a73 r21462: mention all other image formats
voroshil
parents: 21442
diff changeset
399 <option>-info name=<replaceable>Заголовок_Фильма</replaceable></option>.
19750
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
400 </para>
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
401 </example>
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
402 </sect1>
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
403
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
404
21456
c056d0f91a73 r21462: mention all other image formats
voroshil
parents: 21442
diff changeset
405 <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
c056d0f91a73 r21462: mention all other image formats
voroshil
parents: 21442
diff changeset
406
c056d0f91a73 r21462: mention all other image formats
voroshil
parents: 21442
diff changeset
407
19750
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
408 <sect1 id="menc-feat-mpeg">
20514
bb605f1ccb4d convert DOCS/ru from koi8r to UTF-8
voroshil
parents: 20041
diff changeset
409 <title>Кодирование в MPEG формат</title>
19750
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
410 <para>
20514
bb605f1ccb4d convert DOCS/ru from koi8r to UTF-8
voroshil
parents: 20041
diff changeset
411 <application>MEncoder</application> может создавать файлы формата MPEG (MPEG-PS).
bb605f1ccb4d convert DOCS/ru from koi8r to UTF-8
voroshil
parents: 20041
diff changeset
412 MPEG-1 или MPEG-2 обычно используют по причине кодирования в более
bb605f1ccb4d convert DOCS/ru from koi8r to UTF-8
voroshil
parents: 20041
diff changeset
413 ограниченные форматы, такие как SVCD, VCD или DVD.
bb605f1ccb4d convert DOCS/ru from koi8r to UTF-8
voroshil
parents: 20041
diff changeset
414 Особые требования для этих форматов описаны в
bb605f1ccb4d convert DOCS/ru from koi8r to UTF-8
voroshil
parents: 20041
diff changeset
415 <link linkend="menc-feat-vcd-dvd"> руководстве по созданию VCD и DVD</link>
19750
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
416 section.
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
417 </para>
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
418
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
419 <para>
20514
bb605f1ccb4d convert DOCS/ru from koi8r to UTF-8
voroshil
parents: 20041
diff changeset
420 Чтобы сменить формат выходного файла <application>MEncoder</application>, используйте
bb605f1ccb4d convert DOCS/ru from koi8r to UTF-8
voroshil
parents: 20041
diff changeset
421 опцию <option>-of mpeg</option>.
19750
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
422 </para>
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
423
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
424 <informalexample>
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
425 <para>
20514
bb605f1ccb4d convert DOCS/ru from koi8r to UTF-8
voroshil
parents: 20041
diff changeset
426 Пример:
19750
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
427 <screen>
21439
f55eaa359077 r21423: Consistent capitalization of table entries
voroshil
parents: 21385
diff changeset
428 mencoder <replaceable>input.avi</replaceable> -of mpeg -ovc lavc -lavcopts
f55eaa359077 r21423: Consistent capitalization of table entries
voroshil
parents: 21385
diff changeset
429 vcodec=mpeg1video \
f55eaa359077 r21423: Consistent capitalization of table entries
voroshil
parents: 21385
diff changeset
430 -oac copy <replaceable>other_options</replaceable> -o <replaceable>output.mpg</replaceable>
19750
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
431 </screen>
20514
bb605f1ccb4d convert DOCS/ru from koi8r to UTF-8
voroshil
parents: 20041
diff changeset
432 Создается файл MPEG-1 пригодный для воспроизведения на системах с минимальной поддержкой
bb605f1ccb4d convert DOCS/ru from koi8r to UTF-8
voroshil
parents: 20041
diff changeset
433 мультимедиа, таких как только что установленные Windows:
19750
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
434 <screen>
21439
f55eaa359077 r21423: Consistent capitalization of table entries
voroshil
parents: 21385
diff changeset
435 mencoder <replaceable>input.avi</replaceable> -of mpeg -mpegopts format=mpeg1:tsaf:muxrate=2000 \
f55eaa359077 r21423: Consistent capitalization of table entries
voroshil
parents: 21385
diff changeset
436 -o <replaceable>output.mpg</replaceable> -oac lavc -lavcopts acodec=mp2:abitrate=224 -ovc lavc \
f55eaa359077 r21423: Consistent capitalization of table entries
voroshil
parents: 21385
diff changeset
437 -lavcopts vcodec=mpeg1video:vbitrate=1152:keyint=15:mbd=2:aspect=4/3
19750
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
438 </screen>
21134
d3ef4ae45375 r21078: add a link to Michael's de-interlacing filters...
voroshil
parents: 20880
diff changeset
439 То же, но используя <systemitem class="library">libavformat</systemitem> MPEG
21440
c2d1139c7098 muxer FIXME resolved
voroshil
parents: 21439
diff changeset
440 мультиплексор:
21134
d3ef4ae45375 r21078: add a link to Michael's de-interlacing filters...
voroshil
parents: 20880
diff changeset
441 <screen>
21439
f55eaa359077 r21423: Consistent capitalization of table entries
voroshil
parents: 21385
diff changeset
442 mencoder <replaceable>input.avi</replaceable> -o <replaceable>VCD.mpg</replaceable> -ofps 25 -vf scale=352:288,harddup -of lavf \
f55eaa359077 r21423: Consistent capitalization of table entries
voroshil
parents: 21385
diff changeset
443 -lavfopts format=mpg:i_certify_that_my_video_stream_does_not_use_b_frames \
f55eaa359077 r21423: Consistent capitalization of table entries
voroshil
parents: 21385
diff changeset
444 -oac lavc -lavcopts acodec=mp2:abitrate=224 -ovc lavc \
f55eaa359077 r21423: Consistent capitalization of table entries
voroshil
parents: 21385
diff changeset
445 -lavcopts vcodec=mpeg1video:vrc_buf_size=327:keyint=15:vrc_maxrate=1152:vbitrate=1152:vmax_b_frames=0
21134
d3ef4ae45375 r21078: add a link to Michael's de-interlacing filters...
voroshil
parents: 20880
diff changeset
446 </screen>
19750
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
447 </para>
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
448 </informalexample>
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
449
20514
bb605f1ccb4d convert DOCS/ru from koi8r to UTF-8
voroshil
parents: 20041
diff changeset
450 <note><title>Подсказка:</title>
19750
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
451 <para>
21456
c056d0f91a73 r21462: mention all other image formats
voroshil
parents: 21442
diff changeset
452 Если по каким-то причинам видео после второго прохода вас не устраивает,
c056d0f91a73 r21462: mention all other image formats
voroshil
parents: 21442
diff changeset
453 можно снова запустить кодирование с другими значениями битпотока, при
c056d0f91a73 r21462: mention all other image formats
voroshil
parents: 21442
diff changeset
454 условии, что вы сохранили статистику предыдущего прохода.
c056d0f91a73 r21462: mention all other image formats
voroshil
parents: 21442
diff changeset
455 Это возможно, потому что основная задача файла со статистикой - записывать
c056d0f91a73 r21462: mention all other image formats
voroshil
parents: 21442
diff changeset
456 сложность каждого кадра, которая жестко с битпотоком не связана.
c056d0f91a73 r21462: mention all other image formats
voroshil
parents: 21442
diff changeset
457 Следует иметь в виду, что, несмотря на это, лучшее качество получается если
c056d0f91a73 r21462: mention all other image formats
voroshil
parents: 21442
diff changeset
458 значения результирующего битпотока всех проходов не сильно отличаются.
19750
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
459 </para>
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
460 </note>
21456
c056d0f91a73 r21462: mention all other image formats
voroshil
parents: 21442
diff changeset
461 </sect1>
19750
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
462
21456
c056d0f91a73 r21462: mention all other image formats
voroshil
parents: 21442
diff changeset
463
c056d0f91a73 r21462: mention all other image formats
voroshil
parents: 21442
diff changeset
464 <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
c056d0f91a73 r21462: mention all other image formats
voroshil
parents: 21442
diff changeset
465
19750
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
466
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
467 <sect1 id="menc-feat-rescale">
20514
bb605f1ccb4d convert DOCS/ru from koi8r to UTF-8
voroshil
parents: 20041
diff changeset
468 <title>Масштабирование фильмов</title>
19750
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
469
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
470 <para>
20514
bb605f1ccb4d convert DOCS/ru from koi8r to UTF-8
voroshil
parents: 20041
diff changeset
471 Часто возникает потребность изменить размер изображения у фильма.
bb605f1ccb4d convert DOCS/ru from koi8r to UTF-8
voroshil
parents: 20041
diff changeset
472 Причин может быть много: уменьшение размера файла, пропускная способность сети,
bb605f1ccb4d convert DOCS/ru from koi8r to UTF-8
voroshil
parents: 20041
diff changeset
473 и т.д. Большинство производят масштабирование даже при конвертации DVD или SVCD в AVI.
bb605f1ccb4d convert DOCS/ru from koi8r to UTF-8
voroshil
parents: 20041
diff changeset
474 Если есть желание провести масштабирование, прочтите раздел
bb605f1ccb4d convert DOCS/ru from koi8r to UTF-8
voroshil
parents: 20041
diff changeset
475 <link linkend="aspect">Сохранение пропорций</link>.
19750
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
476 </para>
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
477
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
478 <para>
20514
bb605f1ccb4d convert DOCS/ru from koi8r to UTF-8
voroshil
parents: 20041
diff changeset
479 Процесс масштабирование осуществляется плагином <literal>scale</literal>:
bb605f1ccb4d convert DOCS/ru from koi8r to UTF-8
voroshil
parents: 20041
diff changeset
480 <option>-vf scale=<replaceable>ширина</replaceable>:<replaceable>высота</replaceable></option>.
bb605f1ccb4d convert DOCS/ru from koi8r to UTF-8
voroshil
parents: 20041
diff changeset
481 Качество может быть установлено опцией <option>-sws</option>.
bb605f1ccb4d convert DOCS/ru from koi8r to UTF-8
voroshil
parents: 20041
diff changeset
482 Если не указано, <application>MEncoder</application> будет использовать 2: бикубическое.
19750
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
483 </para>
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
484
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
485 <para>
20514
bb605f1ccb4d convert DOCS/ru from koi8r to UTF-8
voroshil
parents: 20041
diff changeset
486 Использование:
19750
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
487 <screen>
21439
f55eaa359077 r21423: Consistent capitalization of table entries
voroshil
parents: 21385
diff changeset
488 mencoder <replaceable>input.mpg</replaceable> -ovc lavc -lavcopts vcodec=mpeg4:mbd=2:trell \
f55eaa359077 r21423: Consistent capitalization of table entries
voroshil
parents: 21385
diff changeset
489 -vf scale=640:480 -o <replaceable>output.avi</replaceable>
19750
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
490 </screen>
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
491 </para>
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
492 </sect1>
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
493
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
494
21456
c056d0f91a73 r21462: mention all other image formats
voroshil
parents: 21442
diff changeset
495 <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
c056d0f91a73 r21462: mention all other image formats
voroshil
parents: 21442
diff changeset
496
c056d0f91a73 r21462: mention all other image formats
voroshil
parents: 21442
diff changeset
497
19750
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
498 <sect1 id="menc-feat-streamcopy">
20514
bb605f1ccb4d convert DOCS/ru from koi8r to UTF-8
voroshil
parents: 20041
diff changeset
499 <title>копирование потока</title>
19750
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
500
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
501 <para>
21700
68248f4e3027 Typos, spelling fixes
voroshil
parents: 21598
diff changeset
502 <application>MEncoder</application> может обрабатывать входные потоки двумя способами:
20514
bb605f1ccb4d convert DOCS/ru from koi8r to UTF-8
voroshil
parents: 20041
diff changeset
503 <emphasis role="bold">кодировать</emphasis> или <emphasis role="bold">копировать</emphasis>
bb605f1ccb4d convert DOCS/ru from koi8r to UTF-8
voroshil
parents: 20041
diff changeset
504 их. Этот раздел о <emphasis role="bold">копировании</emphasis>.
19750
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
505 </para>
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
506
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
507 <itemizedlist>
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
508 <listitem><para>
20514
bb605f1ccb4d convert DOCS/ru from koi8r to UTF-8
voroshil
parents: 20041
diff changeset
509 <emphasis role="bold">Видео поток</emphasis> (опция <option>-ovc copy</option>):
bb605f1ccb4d convert DOCS/ru from koi8r to UTF-8
voroshil
parents: 20041
diff changeset
510 можно делать классные вещи :) Вроде помещения (не преобразования!) FLI или VIVO или
bb605f1ccb4d convert DOCS/ru from koi8r to UTF-8
voroshil
parents: 20041
diff changeset
511 MPEG-1 видео в AVI файл! Конечно, проиграть такие файлы сможет только
bb605f1ccb4d convert DOCS/ru from koi8r to UTF-8
voroshil
parents: 20041
diff changeset
512 <application>MPlayer</application> :) И, возможно, никакого реальной пользы в
bb605f1ccb4d convert DOCS/ru from koi8r to UTF-8
voroshil
parents: 20041
diff changeset
513 этом нет. Реально: копирование видеопотока может быть полезно, если надо кодировать только
bb605f1ccb4d convert DOCS/ru from koi8r to UTF-8
voroshil
parents: 20041
diff changeset
514 аудио поток (например, несжатый PCM в MP3).
21456
c056d0f91a73 r21462: mention all other image formats
voroshil
parents: 21442
diff changeset
515 </para></listitem>
19750
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
516 <listitem><para>
20514
bb605f1ccb4d convert DOCS/ru from koi8r to UTF-8
voroshil
parents: 20041
diff changeset
517 <emphasis role="bold">Аудио поток</emphasis> (опция <option>-oac copy</option>):
bb605f1ccb4d convert DOCS/ru from koi8r to UTF-8
voroshil
parents: 20041
diff changeset
518 straightforward. Возможно взять внешний файл (MP3, WAV) и уплотнить[mux] его в выходной
bb605f1ccb4d convert DOCS/ru from koi8r to UTF-8
voroshil
parents: 20041
diff changeset
519 поток. Воспользуйтесь опцией <option>-audiofile <replaceable>имя_файла</replaceable></option>,
bb605f1ccb4d convert DOCS/ru from koi8r to UTF-8
voroshil
parents: 20041
diff changeset
520 чтобы сделать это.
21456
c056d0f91a73 r21462: mention all other image formats
voroshil
parents: 21442
diff changeset
521 </para></listitem>
19750
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
522 </itemizedlist>
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
523
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
524 <para>
21456
c056d0f91a73 r21462: mention all other image formats
voroshil
parents: 21442
diff changeset
525 Использование <option>-oac copy</option> для копирования из одного формата в другой
21700
68248f4e3027 Typos, spelling fixes
voroshil
parents: 21598
diff changeset
526 может потребовать указания <option>-fafmttag</option> для сохранения тэга аудио формата
21456
c056d0f91a73 r21462: mention all other image formats
voroshil
parents: 21442
diff changeset
527 из оригинального файла. Например, если вы преобразовываете NSV файл со звуком AAC
c056d0f91a73 r21462: mention all other image formats
voroshil
parents: 21442
diff changeset
528 в формат AVI, аудио формат будет неверен и должен быть изменен. Чтобы получить список
c056d0f91a73 r21462: mention all other image formats
voroshil
parents: 21442
diff changeset
529 тэгов аудио формата проверьте <filename>codecs.conf</filename>.
19750
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
530 </para>
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
531
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
532 <para>
20514
bb605f1ccb4d convert DOCS/ru from koi8r to UTF-8
voroshil
parents: 20041
diff changeset
533 Пример:
19750
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
534 <screen>
21439
f55eaa359077 r21423: Consistent capitalization of table entries
voroshil
parents: 21385
diff changeset
535 mencoder <replaceable>input.nsv</replaceable> -oac copy -fafmttag 0x706D \
f55eaa359077 r21423: Consistent capitalization of table entries
voroshil
parents: 21385
diff changeset
536 -ovc lavc -lavcopts vcodec=mpeg4:mbd=2:trell -o <replaceable>output.avi</replaceable>
19750
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
537 </screen>
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
538 </para>
21456
c056d0f91a73 r21462: mention all other image formats
voroshil
parents: 21442
diff changeset
539 </sect1>
19750
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
540
21456
c056d0f91a73 r21462: mention all other image formats
voroshil
parents: 21442
diff changeset
541
c056d0f91a73 r21462: mention all other image formats
voroshil
parents: 21442
diff changeset
542 <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
19750
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
543
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
544
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
545 <sect1 id="menc-feat-enc-images">
20514
bb605f1ccb4d convert DOCS/ru from koi8r to UTF-8
voroshil
parents: 20041
diff changeset
546 <title>Кодирование из нескольких входных файлов изображений (JPEG, PNG, TGA, SGI)</title>
19750
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
547
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
548 <para>
20514
bb605f1ccb4d convert DOCS/ru from koi8r to UTF-8
voroshil
parents: 20041
diff changeset
549 <application>MEncoder</application> может создавать фильмы из одного или более
21456
c056d0f91a73 r21462: mention all other image formats
voroshil
parents: 21442
diff changeset
550 JPEG, PNG, TGA или других файлов изображений. Простым копированием кадров он может создавать MJPEG
20514
bb605f1ccb4d convert DOCS/ru from koi8r to UTF-8
voroshil
parents: 20041
diff changeset
551 (Motion JPEG), MPNG (Motion PNG) или MTGA (Motion TGA) файлы.
19750
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
552 </para>
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
553
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
554 <orderedlist>
20514
bb605f1ccb4d convert DOCS/ru from koi8r to UTF-8
voroshil
parents: 20041
diff changeset
555 <title>Разъяснение процесса:</title>
19750
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
556 <listitem><para>
20514
bb605f1ccb4d convert DOCS/ru from koi8r to UTF-8
voroshil
parents: 20041
diff changeset
557 <application>MEncoder</application> <emphasis>декодирует</emphasis> изображение(я) с помощью
bb605f1ccb4d convert DOCS/ru from koi8r to UTF-8
voroshil
parents: 20041
diff changeset
558 <systemitem class="library">libjpeg</systemitem> (при декодировании PNG, он будет
bb605f1ccb4d convert DOCS/ru from koi8r to UTF-8
voroshil
parents: 20041
diff changeset
559 использовать <systemitem class="library">libpng</systemitem>).
21456
c056d0f91a73 r21462: mention all other image formats
voroshil
parents: 21442
diff changeset
560 </para></listitem>
19750
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
561 <listitem><para>
20514
bb605f1ccb4d convert DOCS/ru from koi8r to UTF-8
voroshil
parents: 20041
diff changeset
562 <application>MEncoder</application> затем скармливает декодированное изображение выбранному
20879
8c029c5b800a r20876: rename: XviD -> Xvid
voroshil
parents: 20562
diff changeset
563 видео компрессору (DivX4, Xvid, FFmpeg msmpeg4, и .т.д).
21456
c056d0f91a73 r21462: mention all other image formats
voroshil
parents: 21442
diff changeset
564 </para></listitem>
19750
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
565 </orderedlist>
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
566
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
567 <formalpara>
20514
bb605f1ccb4d convert DOCS/ru from koi8r to UTF-8
voroshil
parents: 20041
diff changeset
568 <title>примеры</title>
19750
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
569 <para>
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
570 The explanation of the <option>-mf</option> option is in the man page.
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
571
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
572 <informalexample>
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
573 <para>
20514
bb605f1ccb4d convert DOCS/ru from koi8r to UTF-8
voroshil
parents: 20041
diff changeset
574 Создание файла MPEG-4 из всех JPEG файлов текущего каталога:
19750
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
575 <screen>
21439
f55eaa359077 r21423: Consistent capitalization of table entries
voroshil
parents: 21385
diff changeset
576 mencoder mf://*.jpg -mf w=800:h=600:fps=25:type=jpg -ovc lavc \
f55eaa359077 r21423: Consistent capitalization of table entries
voroshil
parents: 21385
diff changeset
577 -lavcopts vcodec=mpeg4:mbd=2:trell -oac copy -o <replaceable>output.avi</replaceable>
19750
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
578 </screen>
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
579 </para>
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
580 </informalexample>
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
581
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
582 <informalexample>
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
583 <para>
20514
bb605f1ccb4d convert DOCS/ru from koi8r to UTF-8
voroshil
parents: 20041
diff changeset
584 Создание файла MPEG-4 из некоторых JPEG файлов текущего каталога:
19750
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
585 <screen>
21439
f55eaa359077 r21423: Consistent capitalization of table entries
voroshil
parents: 21385
diff changeset
586 mencoder mf://<replaceable>frame001.jpg,frame002.jpg</replaceable> -mf w=800:h=600:fps=25:type=jpg \
f55eaa359077 r21423: Consistent capitalization of table entries
voroshil
parents: 21385
diff changeset
587 -ovc lavc -lavcopts vcodec=mpeg4:mbd=2:trell -oac copy -o <replaceable>output.avi</replaceable>
19750
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
588 </screen>
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
589 </para>
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
590 </informalexample>
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
591
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
592 <informalexample>
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
593 <para>
20514
bb605f1ccb4d convert DOCS/ru from koi8r to UTF-8
voroshil
parents: 20041
diff changeset
594 Создание файла MPEG-4 из явного списка JPEG файлов (list.txt в текущем каталоге содержит
bb605f1ccb4d convert DOCS/ru from koi8r to UTF-8
voroshil
parents: 20041
diff changeset
595 список файлов, используемых в качестве источника, по одному в строке):
19750
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
596 <screen>
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
597 mencoder mf://<replaceable>@list.txt</replaceable> -mf w=800:h=600:fps=25:type=jpg \
21439
f55eaa359077 r21423: Consistent capitalization of table entries
voroshil
parents: 21385
diff changeset
598 -ovc lavc -lavcopts vcodec=mpeg4:mbd=2:trell -oac copy -o <replaceable>output.avi</replaceable>
19750
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
599 </screen>
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
600 </para>
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
601 </informalexample>
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
602
21729
109590481689 r21741: Massive <simpara> -> <para>, as no <simpara>'s are actually needed.
voroshil
parents: 21700
diff changeset
603 Вы можете смешивать различные типы изображений независимо от используемого
109590481689 r21741: Massive <simpara> -> <para>, as no <simpara>'s are actually needed.
voroshil
parents: 21700
diff changeset
604 метода &mdash; отдельные файлы, маска или файл со списком &mdash; при условии,
109590481689 r21741: Massive <simpara> -> <para>, as no <simpara>'s are actually needed.
voroshil
parents: 21700
diff changeset
605 конечно, что они имеют одинаковое разрешение.
109590481689 r21741: Massive <simpara> -> <para>, as no <simpara>'s are actually needed.
voroshil
parents: 21700
diff changeset
606 Так что вы можете, например, взять титульный кадр из PNG файла, а затем
109590481689 r21741: Massive <simpara> -> <para>, as no <simpara>'s are actually needed.
voroshil
parents: 21700
diff changeset
607 поместить слайдшоу из JPEG фотографий.
109590481689 r21741: Massive <simpara> -> <para>, as no <simpara>'s are actually needed.
voroshil
parents: 21700
diff changeset
608
19750
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
609 <informalexample>
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
610 <para>
20514
bb605f1ccb4d convert DOCS/ru from koi8r to UTF-8
voroshil
parents: 20041
diff changeset
611 Создание файла Motion JPEG (MJPEG) из всех JPEG файлов текущего каталога:
19750
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
612 <screen>
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
613 mencoder mf://*.jpg -mf w=800:h=600:fps=25:type=jpg -ovc copy -oac copy -o <replaceable>output.avi</replaceable>
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
614 </screen>
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
615 </para>
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
616 </informalexample>
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
617
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
618 <informalexample>
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
619 <para>
20514
bb605f1ccb4d convert DOCS/ru from koi8r to UTF-8
voroshil
parents: 20041
diff changeset
620 Создание несжатого файла из всех PNG файлов текущего каталога:
19750
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
621 <screen>
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
622 mencoder mf://*.png -mf w=800:h=600:fps=25:type=png -ovc raw -oac copy -o <replaceable>output.avi</replaceable>
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
623 </screen>
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
624 </para>
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
625 </informalexample>
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
626
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
627 <note><para>
20514
bb605f1ccb4d convert DOCS/ru from koi8r to UTF-8
voroshil
parents: 20041
diff changeset
628 Ширина должна быть целым числом, кратным 4, это ограничение формата RAW RGB AVI.
19750
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
629 </para></note>
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
630
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
631 <informalexample>
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
632 <para>
20514
bb605f1ccb4d convert DOCS/ru from koi8r to UTF-8
voroshil
parents: 20041
diff changeset
633 Создание файла Motion PNG (MPNG) из всех PNG файлов текущего каталога:
19750
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
634 <screen>
21456
c056d0f91a73 r21462: mention all other image formats
voroshil
parents: 21442
diff changeset
635 mencoder mf://*.png -mf w=800:h=600:fps=25:type=png -ovc copy -oac copy -o <replaceable>output.avi</replaceable><!--
19750
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
636 --></screen>
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
637 </para>
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
638 </informalexample>
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
639
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
640 <informalexample>
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
641 <para>
20514
bb605f1ccb4d convert DOCS/ru from koi8r to UTF-8
voroshil
parents: 20041
diff changeset
642 Создание файла Motion TGA (MTGA) из всех TGA файлов текущего каталога:
19750
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
643 <screen>
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
644 mencoder mf://*.tga -mf w=800:h=600:fps=25:type=tga -ovc copy -oac copy -o <replaceable>output.avi</replaceable><!--
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
645 --></screen>
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
646 </para>
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
647 </informalexample>
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
648 </para>
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
649 </formalpara>
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
650 </sect1>
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
651
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
652
21456
c056d0f91a73 r21462: mention all other image formats
voroshil
parents: 21442
diff changeset
653 <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
c056d0f91a73 r21462: mention all other image formats
voroshil
parents: 21442
diff changeset
654
c056d0f91a73 r21462: mention all other image formats
voroshil
parents: 21442
diff changeset
655
19750
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
656 <sect1 id="menc-feat-extractsub">
20514
bb605f1ccb4d convert DOCS/ru from koi8r to UTF-8
voroshil
parents: 20041
diff changeset
657 <title>Извлечение DVD субтитров в файл VOBsub</title>
19750
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
658
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
659 <para>
20514
bb605f1ccb4d convert DOCS/ru from koi8r to UTF-8
voroshil
parents: 20041
diff changeset
660 <application>MEncoder</application> способен извлекать субтитры из DVD в файлы формата
bb605f1ccb4d convert DOCS/ru from koi8r to UTF-8
voroshil
parents: 20041
diff changeset
661 VOBsub. Они состоят из пары файлов, оканчивающихся на
bb605f1ccb4d convert DOCS/ru from koi8r to UTF-8
voroshil
parents: 20041
diff changeset
662 <filename>.idx</filename> и <filename>.sub</filename> и обычно
bb605f1ccb4d convert DOCS/ru from koi8r to UTF-8
voroshil
parents: 20041
diff changeset
663 упакованы в один <filename>.rar</filename> архив.
bb605f1ccb4d convert DOCS/ru from koi8r to UTF-8
voroshil
parents: 20041
diff changeset
664 <application>MPlayer</application> может воспроизводить из при помощи опций
bb605f1ccb4d convert DOCS/ru from koi8r to UTF-8
voroshil
parents: 20041
diff changeset
665 <option>-vobsub</option> и <option>-vobsubid</option>.
19750
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
666 </para>
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
667
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
668 <para>
20514
bb605f1ccb4d convert DOCS/ru from koi8r to UTF-8
voroshil
parents: 20041
diff changeset
669 Вы указываете базовое имя (т.е. без расширения <filename>.idx</filename> или
bb605f1ccb4d convert DOCS/ru from koi8r to UTF-8
voroshil
parents: 20041
diff changeset
670 <filename>.sub</filename>) выходных файлов с помощью
bb605f1ccb4d convert DOCS/ru from koi8r to UTF-8
voroshil
parents: 20041
diff changeset
671 <option>-vobsubout</option> и индекс этих субтитров в результирующем файле
bb605f1ccb4d convert DOCS/ru from koi8r to UTF-8
voroshil
parents: 20041
diff changeset
672 при помощи <option>-vobsuboutindex</option>.
19750
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
673 </para>
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
674
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
675 <para>
20514
bb605f1ccb4d convert DOCS/ru from koi8r to UTF-8
voroshil
parents: 20041
diff changeset
676 Если источником является не DVD следует использовать <option>-ifo</option> для
bb605f1ccb4d convert DOCS/ru from koi8r to UTF-8
voroshil
parents: 20041
diff changeset
677 указания указания файла <filename>.ifo</filename>, необходимого для создания
bb605f1ccb4d convert DOCS/ru from koi8r to UTF-8
voroshil
parents: 20041
diff changeset
678 результирующего <filename>.idx</filename> файла.
19750
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
679 </para>
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
680
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
681 <para>
20514
bb605f1ccb4d convert DOCS/ru from koi8r to UTF-8
voroshil
parents: 20041
diff changeset
682 Если источником является не DVD и у вас нет <filename>.ifo</filename> файла,
bb605f1ccb4d convert DOCS/ru from koi8r to UTF-8
voroshil
parents: 20041
diff changeset
683 используйте опцию <option>-vobsubid</option> для указания, какой ид языка
bb605f1ccb4d convert DOCS/ru from koi8r to UTF-8
voroshil
parents: 20041
diff changeset
684 следует записать в <filename>.idx</filename> файл.
19750
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
685 </para>
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
686
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
687 <para>
20514
bb605f1ccb4d convert DOCS/ru from koi8r to UTF-8
voroshil
parents: 20041
diff changeset
688 При каждом запуске субтитры будут добавляться в конец файлов, если
bb605f1ccb4d convert DOCS/ru from koi8r to UTF-8
voroshil
parents: 20041
diff changeset
689 <filename>.idx</filename> и <filename>.sub</filename> уже существуют.
bb605f1ccb4d convert DOCS/ru from koi8r to UTF-8
voroshil
parents: 20041
diff changeset
690 Так что вам следует удалять их перед началом.
19750
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
691 </para>
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
692
20040
fa421226cfc7 r20041: Add IDs to some examples/tables.
voroshil
parents: 19750
diff changeset
693 <example id="copying_two_subtitles_from_a_dvd_while_doing_two_pass_encoding">
20514
bb605f1ccb4d convert DOCS/ru from koi8r to UTF-8
voroshil
parents: 20041
diff changeset
694 <title>копирование двух субтитров из DVD при выполнении двухпроходного кодирования</title>
19750
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
695 <screen>
21439
f55eaa359077 r21423: Consistent capitalization of table entries
voroshil
parents: 21385
diff changeset
696 rm <replaceable>subtitles.idx</replaceable> <replaceable>subtitles.sub</replaceable>
f55eaa359077 r21423: Consistent capitalization of table entries
voroshil
parents: 21385
diff changeset
697 mencoder dvd://1 -oac copy -ovc lavc -lavcopts vcodec=mpeg4:vpass=1 \
f55eaa359077 r21423: Consistent capitalization of table entries
voroshil
parents: 21385
diff changeset
698 -vobsubout subtitles -vobsuboutindex 0 -sid 2
f55eaa359077 r21423: Consistent capitalization of table entries
voroshil
parents: 21385
diff changeset
699 mencoder dvd://1 -oac copy -ovc lavc -lavcopts vcodec=mpeg4:mbd=2:trell:vpass=2 \
f55eaa359077 r21423: Consistent capitalization of table entries
voroshil
parents: 21385
diff changeset
700 -vobsubout subtitles -vobsuboutindex 1 -sid 5<!--
19750
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
701 --></screen>
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
702 </example>
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
703
20040
fa421226cfc7 r20041: Add IDs to some examples/tables.
voroshil
parents: 19750
diff changeset
704 <example id="copying_a_french_subtitle_from_an_mpeg_file">
20514
bb605f1ccb4d convert DOCS/ru from koi8r to UTF-8
voroshil
parents: 20041
diff changeset
705 <title>Копирование французских субтитров из MPEG файла</title>
19750
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
706 <screen>
21442
f95a872702d5 fix two overlooked typos in previous sync cause build error
voroshil
parents: 21440
diff changeset
707 rm <replaceable>subtitles.idx</replaceable> <replaceable>subtitles.sub</replaceable>
21439
f55eaa359077 r21423: Consistent capitalization of table entries
voroshil
parents: 21385
diff changeset
708 mencoder <replaceable>movie.mpg</replaceable> -ifo <replaceable>movie.ifo</replaceable> -vobsubout <replaceable>subtitles</replaceable> -vobsuboutindex 0 \
f55eaa359077 r21423: Consistent capitalization of table entries
voroshil
parents: 21385
diff changeset
709 -vobsuboutid fr -sid 1 -nosound -ovc copy
19750
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
710 </screen>
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
711 </example>
21456
c056d0f91a73 r21462: mention all other image formats
voroshil
parents: 21442
diff changeset
712 </sect1>
19750
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
713
21456
c056d0f91a73 r21462: mention all other image formats
voroshil
parents: 21442
diff changeset
714
c056d0f91a73 r21462: mention all other image formats
voroshil
parents: 21442
diff changeset
715 <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
c056d0f91a73 r21462: mention all other image formats
voroshil
parents: 21442
diff changeset
716
19750
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
717
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
718 <sect1 id="aspect">
20514
bb605f1ccb4d convert DOCS/ru from koi8r to UTF-8
voroshil
parents: 20041
diff changeset
719 <title>Сохранение пропорций</title>
19750
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
720 <para>
20514
bb605f1ccb4d convert DOCS/ru from koi8r to UTF-8
voroshil
parents: 20041
diff changeset
721 DVD и SVCD (т.е. MPEG-1/2) файлы содержат информацию о пропорции, которая описывает
bb605f1ccb4d convert DOCS/ru from koi8r to UTF-8
voroshil
parents: 20041
diff changeset
722 как проигрыватель должен масштабировать видео поток, чтобы люди не становились яйцеголовыми.
bb605f1ccb4d convert DOCS/ru from koi8r to UTF-8
voroshil
parents: 20041
diff changeset
723 (напр.: 480x480 + 4:3 = 640x480). Хотя при кодировании в AVI (DivX) файлы вы избавлены от этой
bb605f1ccb4d convert DOCS/ru from koi8r to UTF-8
voroshil
parents: 20041
diff changeset
724 проблемы, т.к. заголовки AVI не содержат это значение.
bb605f1ccb4d convert DOCS/ru from koi8r to UTF-8
voroshil
parents: 20041
diff changeset
725 Масштабирование изображения отвратительно и расточительно, есть лучший путь!
19750
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
726 </para>
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
727
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
728 <para>There is</para>
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
729
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
730 <para>
21700
68248f4e3027 Typos, spelling fixes
voroshil
parents: 21598
diff changeset
731 MPEG-4 имеет уникальную возможность: видео поток может хранить требуемые ему пропорции.
20514
bb605f1ccb4d convert DOCS/ru from koi8r to UTF-8
voroshil
parents: 20041
diff changeset
732 Да, в точности как MPEG-1/2 (DVD, SVCD) и H.263 файлы. К сожалению, немного проигрывателей
bb605f1ccb4d convert DOCS/ru from koi8r to UTF-8
voroshil
parents: 20041
diff changeset
733 кроме <application>MPlayer</application> поддерживают этот MPEG-4 атрибут.
19750
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
734 </para>
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
735
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
736 <para>
20514
bb605f1ccb4d convert DOCS/ru from koi8r to UTF-8
voroshil
parents: 20041
diff changeset
737 Эта возможность может использоваться только с
bb605f1ccb4d convert DOCS/ru from koi8r to UTF-8
voroshil
parents: 20041
diff changeset
738 <link linkend="ffmpeg"><systemitem class="library">libavcodec</systemitem></link>'овским
bb605f1ccb4d convert DOCS/ru from koi8r to UTF-8
voroshil
parents: 20041
diff changeset
739 <systemitem>mpeg4</systemitem> кодеком. Имейте в виду: хотя
bb605f1ccb4d convert DOCS/ru from koi8r to UTF-8
voroshil
parents: 20041
diff changeset
740 <application>MPlayer</application> корректно воспроизведет файл, другие
bb605f1ccb4d convert DOCS/ru from koi8r to UTF-8
voroshil
parents: 20041
diff changeset
741 проигрыватели могут использовать неверные пропорции.
19750
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
742 </para>
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
743
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
744 <para>
21700
68248f4e3027 Typos, spelling fixes
voroshil
parents: 21598
diff changeset
745 Вы серьезно должны обрезать черные полосы выше и ниже изображения.
20514
bb605f1ccb4d convert DOCS/ru from koi8r to UTF-8
voroshil
parents: 20041
diff changeset
746 Смотрите страницу руководства man по использованию <systemitem>cropdetect</systemitem> и
bb605f1ccb4d convert DOCS/ru from koi8r to UTF-8
voroshil
parents: 20041
diff changeset
747 <systemitem>crop</systemitem> плагинов.
19750
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
748 </para>
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
749
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
750 <para>
20514
bb605f1ccb4d convert DOCS/ru from koi8r to UTF-8
voroshil
parents: 20041
diff changeset
751 Использование:
21439
f55eaa359077 r21423: Consistent capitalization of table entries
voroshil
parents: 21385
diff changeset
752 <screen>mencoder <replaceable>sample-svcd.mpg</replaceable> -vf crop=714:548:0:14 -oac copy -ovc lavc \
f55eaa359077 r21423: Consistent capitalization of table entries
voroshil
parents: 21385
diff changeset
753 -lavcopts vcodec=mpeg4:mbd=2:trell:autoaspect -o <replaceable>output.avi</replaceable></screen>
19750
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
754 </para>
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
755 </sect1>
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
756
c70da02242f6 translation by Vladimir Voroshilov, voroshil gmail com
voroshil
parents:
diff changeset
757 </chapter>