1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
|
<?xml version="1.0" encoding="koi8-r"?>
<!-- synced with r20043 -->
<chapter id="mencoder">
<title>ïÓÎÏ×Ù ÉÓÐÏÌØÚÏ×ÁÎÉÑ <application>MEncoder</application></title>
<para>
ðÏÌÎÙÊ ÓÐÉÓÏË ÄÏÓÔÕÐÎÙÈ ÏÐÃÉÊ <application>MEncoder</application> É ÐÒÉÍÅÒÙ
ÓÍÏÔÒÉÔÅ ÎÁ ÓÔÒÁÎÉÃÅ ÒÕËÏ×ÏÄÓÔ×Á man.
òÑÄ ÎÁÇÌÑÄÎÙÈ ÐÒÉÍÅÒÏ× É ÐÏÄÒÏÂÎÙÅ ÒÕËÏ×ÏÄÓÔ×Á ÐÏ ÉÓÐÏÌØÚÏ×ÁÎÉÀ ÏÔÄÅÌØÎÙÈ
ÐÁÒÁÍÅÔÒÏ× ËÏÄÉÒÏ×ÁÎÉÑ, ÍÏÖÎÏ ÕÚÎÁÔØ ÐÒÏÞÔÑ
<ulink url="../../tech/encoding-tips.txt">ÓÏ×ÅÔÙ ÐÏ ËÏÄÉÒÏ×ÁÎÉÀ</ulink>, ËÏÔÏÒÙÅ ÍÙ
ÓÏÂÒÁÌÉ ÉÚ ÏÔÄÅÌØÎÙÈ ÎÉÔÅÊ[threads] ÒÁÓÓÙÌËÉ MPlayer-users. ÷
<ulink url="http://lists.mplayerhq.hu/pipermail/mplayer-users/">ÁÒÈÉ×ÁÈ</ulink>
ÎÁÊÄÅÔÓÑ ÍÎÏÖÅÓÔ×Ï ÄÉÓËÕÓÓÉÊ, ÐÏÓ×ÑÝÅÎÎÙÈ ×ÓÅÈ ÁÓÐÅËÔÁÍ É ÐÒÏÂÌÅÍÁÍ ËÏÄÉÒÏ×ÁÎÉÑ
ÐÒÉ ÐÏÍÏÝÉ <application>MEncoder</application>.
</para>
<sect1 id="menc-feat-selecting-codec">
<title>÷ÙÂÏÒ ËÏÄÅËÏ× É ÆÏÒÍÁÔÁ ÆÁÊÌÏ×</title>
<para>
áÕÄÉÏ É ×ÉÄÅÏ ËÏÄÅËÉ ÄÌÑ ËÏÄÉÒÏ×ÁÎÉÑ ×ÙÂÉÒÁÀÔÓÑ ÏÐÃÉÑÍÉ
<option>-oac</option> É <option>-ovc</option>, ÓÏÏÔ×ÅÔÓÔ×ÅÎÎÏ.
îÉÂÅÒÉÔÅ ÄÌÑ ÐÒÉÍÅÒÁ:
<screen>mencoder -ovc help</screen>
ÞÔÏÂÙ ÐÏÌÕÞÉÔØ ÓÐÉÓÏË ×ÓÅÈ ×ÉÄÅÏ ËÏÄÅËÏ× ÐÏÄÄÅÒÖÉ×ÁÅÍÙÈ
×ÅÒÓÉÅÊ <application>MEncoder</application>, ÕÓÔÁÎÏ×ÌÅÎÎÏÊ ÎÁ ×ÁÛÅÊ ÍÁÛÉÎÅ.
äÏÓÔÕÐÎÙ ÓÌÅÄÕÀÝÉÅ ×ÁÒÉÁÎÔÙ:
</para>
<para>
áÕÄÉÏ ËÏÄÅËÉ:
<informaltable frame="all">
<tgroup cols="2">
<thead>
<row><entry>îÁÚ×ÁÎÉÅ ËÏÄÅËÁ</entry><entry>ïÐÉÓÁÎÉÅ</entry></row>
</thead>
<tbody>
<row>
<entry>mp3lame</entry>
<entry>ëÏÄÉÒÕÊÔÅ × VBR, ABR ÉÌÉ CBR MP3 Ó LAME</entry>
</row>
<row>
<entry>lavc</entry>
<entry>éÓÐÏÌØÚÕÊÔÅ ÏÄÉÎ ÉÚ ËÏÄÅËÏ× ÂÉÂÌÉÏÔÅËÉ <link linkend="menc-feat-enc-libavcodec-audio-codecs"><systemitem class="library">libavcodec</systemitem></link>
</entry>
</row>
<row>
<entry>faac</entry>
<entry>FAAC AAC ÁÕÄÉÏ ËÏÄÅÒ</entry>
</row>
<row>
<entry>toolame</entry>
<entry>MPEG Audio Layer 2 ËÏÄÅÒ</entry>
</row>
<row>
<entry>twolame</entry>
<entry>MPEG Audio Layer 2 ËÏÄÅÒ, ÏÓÎÏ×ÁÎÎÙÊ ÎÁ tooLAME</entry>
</row>
<row>
<entry>pcm</entry>
<entry>îÅÓÖÁÔÙÊ PCM Ú×ÕË</entry>
</row>
<row>
<entry>copy</entry>
<entry>îÅ ÐÅÒÅËÏÄÉÒÏ×ÁÔØ, ÐÒÏÓÔÏ ËÏÐÉÒÏ×ÁÔØ ÓÖÁÔÙÅ ËÁÄÒÙ</entry>
</row>
</tbody>
</tgroup>
</informaltable>
</para>
<para>
÷ÉÄÅÏ ËÏÄÅËÉ:
<informaltable frame="all">
<tgroup cols="2">
<thead>
<row><entry>îÁÚ×ÁÎÉÅ ËÏÄÅËÁ</entry><entry>ïÐÉÓÁÎÉÅ</entry></row>
</thead>
<tbody>
<row>
<entry>lavc</entry>
<entry>éÓÐÏÌØÚÕÊÔÅ ÏÄÉÎ ÉÚ ËÏÄÅËÏ× ÂÉÂÌÉÏÔÅËÉ <link linkend="menc-feat-enc-libavcodec-video-codecs"><systemitem class="library">libavcodec</systemitem></link>
</entry>
</row>
<row>
<entry>xvid</entry>
<entry>XviD, MPEG-4 Advanced Simple Profile (ASP) ËÏÄÅË</entry>
</row>
<row>
<entry>x264</entry>
<entry>x264, MPEG-4 Advanced Video Coding (AVC), AKA[ÏÎ ÖÅ] H.264 ËÏÄÅË</entry>
</row>
<row>
<entry>nuv</entry>
<entry>nuppel ×ÉÄÅÏ, ÉÓÐÏÌØÚÕÅÍÏÅ ÎÅËÏÔÏÒÙÍÉ ÐÒÉÌÏÖÅÎÉÑÍÉ ÒÅÁÌØÎÏÇÏ ×ÒÅÍÅÎÉ</entry>
</row>
<row>
<entry>raw</entry>
<entry>îÅÓÖÁÔÙÅ ×ÉÄÅÏ ËÁÄÒÙ</entry>
</row>
<row>
<entry>copy</entry>
<entry>îÅ ÐÅÒÅËÏÄÉÒÏ×ÁÔØ, ÐÒÏÓÔÏ ÓËÏÐÉÒÏ×ÁÔØ ÓÖÁÔÙÅ ËÁÄÒÙ</entry>
</row>
<row>
<entry>frameno</entry>
<entry>éÓÐÏÌØÚÏ×ÁÌÓÑ ÄÌÑ 3-È ÐÒÏÈÏÄÎÏÇÏ ËÏÄÉÒÏ×ÁÎÉÑ (ÎÅ ÒÅËÏÍÅÎÄÕÅÔÓÑ)</entry>
</row>
</tbody>
</tgroup>
</informaltable>
</para>
<para>
æÏÒÍÁÔ ×ÙÈÏÄÎÙÈ ÆÁÊÌÏ× ×ÙÂÉÒÁÅÔÓÑ ÏÐÃÉÅÊ <option>-of</option>.
îÁÂÅÒÉÔÅ:
<screen>mencoder -of help</screen>
ÞÔÏÂÙ ÐÏÌÕÞÉÔØ ÓÐÉÓÏË ×ÓÅÈ ÆÏÒÍÁÔÏ×, ÐÏÄÄÅÒÖÉ×ÁÅÍÙÈ ×ÅÒÓÉÅÊ
<application>MEncoder</application>, ÕÓÔÁÎÏ×ÌÅÎÎÏÇÏ ÎÁ ×ÁÛÅÊ ÍÁÛÉÎÅ.
äÏÓÔÕÐÎÙ ÓÌÅÄÕÀÝÉÅ ×ÁÒÉÁÎÔÙ:
</para>
<para>
æÏÒÍÁÔÙ ÆÁÊÌÏ×:
<informaltable frame="all">
<tgroup cols="2">
<thead>
<row><entry>îÁÚ×ÁÎÉÅ ÆÏÒÍÁÔÁ</entry><entry>ïÐÉÓÁÎÉÅ</entry></row>
</thead>
<tbody>
<row>
<entry>lavf</entry>
<entry>ïÄÉÎ ÉÚ ÆÏÒÍÁÔÏ×, ÐÏÄÄÅÒÖÉ×ÁÅÍÙÈ ÂÉÂÌÉÏÔÅËÏÊ
<systemitem class="library">libavformat</systemitem></entry>
</row>
<row>
<entry>avi</entry>
<entry>'óÌÏÅÎÏÅ' áÕÄÉÏ-÷ÉÄÅÏ</entry>
</row>
<row>
<entry>mpeg</entry>
<entry>MPEG-1 É MPEG-2 PS</entry>
</row>
<row>
<entry>rawvideo</entry>
<entry>ÓÙÒÏÊ ×ÉÄÅÏ ÐÏÔÏË (ÂÅÚ ÕÐÌÏÔÎÅÎÉÑ[no muxing] - ÔÏÌØËÏ ×ÉÄÅÏ ÐÏÔÏË)</entry>
</row>
<row>
<entry>rawaudio</entry>
<entry>ÓÙÒÏÊ ÁÕÄÉÏ ÐÏÔÏË (ÂÅÚ ÕÐÌÏÔÎÅÎÉÑ[no muxing] - ÔÏÌØËÏ ÁÕÄÉÏ ÐÏÔÏË)</entry>
</row>
</tbody>
</tgroup>
</informaltable>
AVI Ñ×ÌÑÅÔÓÑ ÒÏÄÎÙÍ ÆÏÒÍÁÔÏÍ ÄÌÑ <application>MEncoder</application>,
ÞÔÏ ÏÚÎÁÞÁÅÔ ÎÁÉÌÕÞÛÕÀ ÅÇÏ ÐÏÄÄÅÒÖËÕ,
<application>MEncoder</application> ÉÚÎÁÞÁÌØÎÏ ÒÁÚÒÁÂÁÔÙ×ÁÌÓÑ ÄÌÑ ÜÔÏÇÏ ÆÏÒÍÁÔÁ.
ëÁË ÚÁÍÅÞÅÎÏ ×ÙÛÅ, ÄÒÕÇÉÅ ÆÏÒÍÁÔÙ ÔÏÖÅ ÐÒÉÇÏÄÎÙ, ÎÏ
×Ù ÍÏÖÅÔÅ ÓÔÏÌËÎÕÔØÓÑ Ó ÐÒÏÂÌÅÍÁÍÉ ÐÒÉ ÉÈ ÉÓÐÏÌØÚÏ×ÁÎÉÉ.
</para>
<para>
ÆÏÒÍÁÔÙ ÆÁÊÌÏ× ÂÉÂÌÉÏÔÅËÉ <systemitem class="library">libavformat</systemitem>:
</para>
<para>
åÓÌÉ ×Ù ×ÙÂÒÁÌÉ <systemitem class="library">libavformat</systemitem> ÄÌÑ
ÕÐÌÏÔÎÅÎÉÑ[muxing] ×ÙÈÏÄÎÏÇÏ ÆÁÊÌÁ (ÉÓÐÏÌØÚÕÑ <option>-of lavf</option>),
ÐÏÄÈÏÄÑÝÉÊ ÆÏÒÍÁÔ ÆÁÊÌÁ ÂÕÄÅÔ ÏÐÒÅÄÅÌÅÎ ÐÏ ÒÁÓÛÉÒÅÎÉÀ ×ÙÈÏÄÎÏÇÏ ÆÁÊÌÁ.
÷Ù ÍÏÖÅÔÅ ÚÁÓÔÁ×ÉÔØ ÉÓÐÏÌØÚÏ×ÁÔØ ËÏÎËÒÅÔÎÙÊ ÆÏÒÍÁÔ ÏÐÃÉÅÊ
<option>format</option> ÂÉÂÌÉÏÔÅËÉ
<systemitem class="library">libavformat</systemitem>.
<informaltable frame="all">
<tgroup cols="2">
<thead>
<row><entry>ÎÁÚ×ÁÎÉÅ ÆÏÒÍÁÔÁ <systemitem class="library">libavformat</systemitem></entry><entry>ïÐÉÓÁÎÉÅ</entry></row>
</thead>
<tbody>
<row>
<entry>mpg</entry>
<entry>MPEG-1 É MPEG-2 PS</entry>
</row>
<row>
<entry>asf</entry>
<entry>Advanced Streaming Format</entry>
</row>
<row>
<entry>avi</entry>
<entry>'óÌÏÅÎÏÅ' áÕÄÉÏ-÷ÉÄÅÏ</entry>
</row>
<row>
<entry>wav</entry>
<entry>Waveform áÕÄÉÏ</entry>
</row>
<row>
<entry>swf</entry>
<entry>Macromedia Flash</entry>
</row>
<row>
<entry>flv</entry>
<entry>Macromedia Flash ×ÉÄÅÏ</entry>
</row>
<row>
<entry>rm</entry>
<entry>RealMedia</entry>
</row>
<row>
<entry>au</entry>
<entry>SUN AU</entry>
</row>
<row>
<entry>nut</entry>
<entry>ÏÔËÒÙÔÙÊ ÆÏÒÍÁÔ NUT (ÜËÓÐÅÒÉÍÅÎÔÁÌØÎÙÊ É ÐÏËÁ ÎÅ ÐÏÌÎÏÓÔØÀ ÓÏÏÔ×ÅÔÓÔ×ÕÀÝÉÊ ÓÐÅÃÉÆÉËÁÃÉÉ)</entry>
</row>
<row>
<entry>mov</entry>
<entry>QuickTime</entry>
</row>
<row>
<entry>mp4</entry>
<entry>MPEG-4 ÆÏÒÍÁÔ</entry>
</row>
<row>
<entry>dv</entry>
<entry>Sony Digital ÷ÉÄÅÏ ÆÏÒÍÁÔ</entry>
</row>
</tbody>
</tgroup>
</informaltable>
ëÁË ×ÉÄÉÔÅ, <systemitem class="library">libavformat</systemitem>
ÐÏÚ×ÏÌÑÅÔ <application>MEncoder</application> ÍÕÌØÔÉÐÌÅËÓÉÒÏ×ÁÔØ[mux] ×Ï
ÍÎÏÖÅÓÔ×Ï ÆÏÒÍÁÔÏ×.
ë ÓÏÖÁÌÅÎÉÀ, ÐÏÓËÏÌØËÕ <application>MEncoder</application> ÉÚÎÁÞÁÌØÎÏ ÎÅ ÒÁÚÒÁÂÁÔÙ×ÁÌÓÑ
ÄÌÑ ÐÏÄÄÅÒÖËÉ ÆÏÒÍÁÔÏ×, ÏÔÌÉÞÎÙÈ ÏÔ AVI, ×ÁÍ ÓÌÅÄÕÅÔ ÏÔÎÏÓÉÔØÓÑ Ë ÒÅÚÕÌØÔÉÒÕÀÝÅÍÕ
ÆÁÊÌÕ Ó ÏÐÒÅÄÅÌÅÎÎÏÊ ÄÏÌÅÊ ÐÁÒÁÎÏÊÉ. õÂÅÄÉÔÅÓØ, ÞÔÏ × ÐÏÒÑÄËÅ áÕÄÉÏ/×ÉÄÅÏ ÓÉÎÈÒÏÎÉÈÁÃÉÑ, É
ÆÁÊÌ ×ÏÓÐÒÏÉÚ×ÏÄÉÔÓÑ ÎÅ ÔÏÌØËÏ × <application>MPlayer</application>.
</para>
<informalexample>
<para>ðÒÉÍÅÒ:</para>
<para>
óÏÚÄÁÎÉÅ ×ÉÄÅÏ Macromedia Flash, ÐÏÄÈÏÄÑÝÅÇÏ ÄÌÑ ×ÏÓÐÒÏÉÚ×ÅÄÅÎÉÑ × ×Å ÂÒÁÕÚÅÒÅ ÐÌÁÇÉÎÏÍ
Macromedia Flash:
<screen>
mencoder <replaceable>input.avi</replaceable> -o <replaceable>output.flv</replaceable> -of lavf -oac mp3lame -lameopts abr:br=56 -ovc lavc \
-lavcopts vcodec=flv:vbitrate=500:mbd=2:mv0:trell:v4mv:cbp:last_pred=3 \
-srate 22050
</screen>
</para>
</informalexample>
</sect1>
<sect1 id="menc-feat-selecting-input">
<title>÷ÙÂÏÒ ×ÈÏÄÎÏÇÏ ÆÁÊÌÁ ÉÌÉ ÕÓÔÒÏÊÓÔ×Á</title>
<para>
<application>MEncoder</application> ÍÏÖÅÔ ËÏÄÉÒÏ×ÁÔØ ÉÚ ÆÁÊÌÏ× ÉÌÉ ÎÅÐÏÓÒÅÄÓÔ×ÅÎÎÏ
Ó DVD ÉÌÉ VCD ÄÉÓËÁ.
ðÒÏÓÔÏ ÕËÁÖÉÔÅ ÉÍÑ ÆÁÊÌÁ × ËÏÍÁÎÄÎÏÊ ÓÔÒÏËÅ ÄÌÑ ËÏÄÉÒÏ×ÁÎÉÑ ÉÚ ÆÁÊÌÁ,
ÉÌÉ <option>dvd://</option><replaceable>ÎÏÍÅÒ_ÒÏÌÉËÁ</replaceable> ÉÌÉ
<option>vcd://</option><replaceable>ÎÏÍÅÒ_ÄÏÒÏÖËÉ</replaceable> ÄÌÑ ËÏÄÉÒÏÓÁÎÉÑ
DVD ÒÏÌÉËÁ ÉÌÉ VCD ÄÏÒÏÖËÉ.
åÓÌÉ ×Ù ÕÖÅ ÓËÏÐÉÒÏ×ÁÌÉ DVD ÎÁ ÖÅÓÔËÉÊ ÄÉÓË (ÍÏÖÅ ×ÏÓÐÏÌØÚÏ×ÁÔØÓÑ ÕÔÉÌÉÔÏÊ ×ÒÏÄÅ
<application>dvdbackup</application>, ÄÏÓÔÕÐÎÏÊ ÎÁ ÍÎÏÇÉÈ ÓÉÓÔÅÍÁÈ),
É ÖÅÌÁÅÔÅ ÕÏÄÉÒÏ×ÁÔØ ÉÚ ËÏÐÉÉ, ×ÌÅÄÕÅÔ ÐÏ-ÐÒÅÖÎÅÍÕ ÉÓÐÏÌØÚÏ×ÁÔØ
<option>dvd://</option> ÓÉÎÔÁËÓÉÓ, ×ÍÅÓÔÅ Ó <option>-dvd-device</option>
Ó ÐÏÓÌÅÄÕÀÝÉÍ ÐÕÔÅË Ë ËÏÒÎÀ ËÏÐÉÉ DVD.
ïÐÃÉÉ <option>-dvd-device</option> É <option>-cdrom-device</option> ÔÁËÖÅ ÍÏÇÕÔ
ÂÙÔØ ÉÓÐÏÌÚÏ×ÁÎÙ ÄÌÑ ÐÅÒÅÏÐÒÅÄÅÌÅÎÉÑ ÐÕÔÅÊ Ë ÆÁÊÌÁÍ ÕÓÔÒÏÊÓÔ× ÄÌÑ
ÞÔÅÎÉÑ ÐÒÑÍÏ Ó ÄÉÓËÁ, ÅÓÌÉ ÚÎÁÞÅÎÉÑ ÐÏ-ÕÍÏÌÞÁÎÉÀ
<filename>/dev/dvd</filename> É <filename>/dev/cdrom</filename> ÎÅ ÐÏÄÈÏÄÑÔ ÄÌÑ
×ÁÛÅÊ ÓÉÓÔÅÍÙ.
</para>
<para>
ðÒÉ ËÏÄÉÒÏ×ÁÎÉÉ Ó DVD, ÞÁÓÔÏ ÂÙ×ÁÅÔ ÖÅÌÁÔÅÌØÎÏ ×ÙÂÒÁÔØ ÒÁÚÄÅÌ ÉÌÉ ÄÉÁÐÁÚÏÎ
ÒÁÚÄÅÌÏ× ÄÌÑ ËÏÄÉÒÏ×ÁÎÉÑ. ÄÌÑ ÜÔÏÊ ÃÅÌÉ ÍÏÖÎÏ ÉÓÐÏÌØÚÏ×ÁÔØ ÏÐÃÉÀ
<option>-chapter</option>.
îÁÐÒÍÅÒ, <option>-chapter</option> <replaceable>1-4</replaceable>
ÂÕÄÅÔ ËÏÄÉÒÏ×ÁÔØ ÔÏÌËÏ ÒÁÚÄÅÌÙ DVD Ó 1-ÇÏ ÐÏ 4-Ê.
üÔÏ ÏÓÏÂÅÎÎÏ ÐÏÌÅÚÎÏ ÐÒÉ ËÏÄÉÒÏ×ÁÎÉÉ 1400íÂ Ó ÃÅÌØÀ ÕÍÅÓÔÉÔØ ÉÈ ÎÁ 2 CD,
ÔÁË ËÁË ×Ù ÍÏÖÅÔÅ ÒÁÚÂÉÔØ ÆÉÌØÍ ÔÏÞÎÏ ÎÁ ÇÒÁÎÉÃÅ ÒÁÚÄÅÌÁ, ×ÍÅÓÔÏ
ÓÅÒÅÄÉÎÙ ÎÅËÏÔÏÒÏÊ ÓÃÅÎÙ.
</para>
<para>
åÓÌÉ Õ ×ÁÓ ÅÓÔØ ÐÏÄÄÅÒÖÉ×ÁÅÍÁÑ ËÁÒÔÁ TV ÚÁÈ×ÁÔÁ, ×Ù ÔÁËÖÅ ÍÏÖÅÔÅ
ËÏÄÉÒÏ×ÁÔØ Ó TV ×ÈÏÄÁ.
éÓÐÏÌØÚÕÊÔÅ <option>tv://</option><replaceable>ÎÍÅÒ_ËÁÎÁÌÁ</replaceable> × ËÁÞÅÓÔ×Å
ÉÍÅÎÉ ÆÁÊÌÁ, É ÏÐÃÉÀ <option>-tv</option> ÄÌÑ ÎÁÓÔÒÏÊËÉ ÒÁÚÌÉÞÎÙÊ ÐÁÒÁÍÅÔÒÏ× ÚÁÈ×ÁÔÁ.
DVB ×ÈÏÄ ÒÁÂÏÔÁÅÔ ÁÎÁÌÏÇÉÞÎÏ.
</para>
</sect1>
<sect1 id="menc-feat-mpeg4">
<title>ä×ÕÈÐÒÏÈÏÄÎÏÅ ËÏÄÉÒÏ×ÁÎÉÅ MPEG-4 ("DivX")</title>
<para>
îÁÚ×ÁÎÉÅ ÐÒÏÉÓÈÏÄÉÔ ÉÚ ÔÏÇÏ ÆÁËÔÁ, ÞÔÏ ËÏÄÉÒÏ×ÁÎÉÅ ÆÁÊÌÁ ÐÒÏÉÚ×ÏÄÉÔÓÑ <emphasis>Ä×ÁÖÄÙ</emphasis>.
ðÅÒ×ÏÅ ËÏÄÉÒÏ×ÁÎÉÅ (ÄÕÂÌÉÒÕÀÝÉÊ ÐÒÏÈÏÄ) ÓÏÚÄÁÅÔ ÎÅÓËÏÌØËÏ ×ÒÅÍÅÎÎÙÈ ÆÁÊÌÏ×
(<filename>*.log</filename>) ÒÁÚÍÅÒÏÍ × ÎÅÓËÏÌØËÏ ÍÅÇÁÂÁÊÔ, ÎÅ ÕÄÁÌÑÊÔÅ ÉÈ ÐÏËÁ
(×Ù ÍÏÖÅÔÅ ÕÄÁÌÉÔØ AVI ÉÌÉ ×ÏÏÂÝÅ ÎÅ ÓÏÚÄÁ×ÁÔØ ×ÉÄÅÏÆÁÊÌ, ÐÅÒÅÎÁÐÒÁ×É× ÅÇÏ
× <filename>/dev/null</filename>). îÁ ×ÔÏÒÏÍ ÐÒÏÈÏÄÅ, Ó ÉÓÐÏÌØÚÏ×ÁÎÉÅÍ ÄÁÎÎÙÈ Ï
ÂÉÔÐÏÔÏËÅ ÉÚ ×ÒÅÍÅÎÎÙÈ ÆÁÊÌÏ×, ÆÏÒÍÕÉÒÕÅÔÓÑ ÇÏÔÏ×ÙÊ ×ÙÈÏÄÎÏÊ. ðÏÌÕÞÉ×ÛÉÊÓÑ ÆÁÊÌ
ÂÕÄÅÔ ÉÍÅÔØ ÎÁÍÎÏÇÏ ÌÕÞÛÅÅ ËÁÞÅÓÔ×Ï ËÁÒÔÉÎËÉ. åÓÌÉ ÓÌÙÛÉÔÅ Ï ÜÔÏÍ × ÐÅÒ×ÙÊ ÒÁÚ,
ÏÂÒÁÔÉÔÅÓØ Ë ÒÕËÏ×ÏÄÓÔ×ÁÍ, ËÏÔÏÒÙÅ ÍÏÖÎÏ ÎÁÊÔÉ × ÉÎÔÅÒÎÅÔ.
</para>
<example id="copy_audio_track">
<title>ËÏÐÉÒÏ×ÁÎÉÅ Ú×ÕËÏ×ÏÊ ÄÏÒÏÖËÉ</title>
<para>
ëÏÄÉÒÏ×ÁÎÉÅ (Ä×ÕÈÐÒÏÈÏÄÎÏÅ) ×ÔÏÒÏÊ ÄÏÒÏÖËÉ DVD × MPEG-4 ("DivX") AVI Ó
ËÏÐÉÒÏ×ÁÎÉÅÍ Ú×ÕËÏ×ÏÊ ÄÏÒÏÖËÉ.
<screen>
mencoder dvd://2 -ovc lavc -lavcopts vcodec=mpeg4:vpass=1 -oac copy -o /dev/null
mencoder dvd://2 -ovc lavc -lavcopts vcodec=mpeg4:mbd=2:trell:vpass=2 -oac copy -o <replaceable>output.avi</replaceable>
</screen>
</para>
</example>
<example id="encode_audio_track">
<title>ËÏÄÉÒÏ×ÁÎÉÅ Ú×ÕËÏ×ÏÊ ÄÏÒÏÖËÉ</title>
<para>
ëÏÄÉÒÏ×ÁÎÉÅ (× Ä×Á ÐÒÏÈÏÄÁ) DVD × MPEG-4 ("DivX") AVI Ó ËÏÄÉÒÏ×ÁÎÉÅÍ
Ú×ÕËÏ×ÏÊ ÄÏÒÏÖËÉ × MP3. âÕÄØÔÅ ÁËËÕÒÁÔÎÙ, ÉÓÐÏÌØÚÕÑ ÜÔÏÔ ÍÅÔÏÄ, ÔÁË ËÁË × ÎÅËÏÔÏÒÙÈ ÓÌÕÞÁÑÈ
ÜÔÏ ÍÏÖÅÔ ÐÒÉ×ÅÓÔÉ Ë ÒÁÓÓÉÎÈÒÏÎÉÚÁÃÉÉ ÁÕÄÉÏ/×ÉÄÅÏ.
<screen>
mencoder dvd://2 -ovc lavc -lavcopts vcodec=mpeg4:vpass=1 -oac mp3lame -lameopts vbr=3 -o /dev/null
mencoder dvd://2 -ovc lavc -lavcopts vcodec=mpeg4:mbd=2:trell:vpass=2 -oac mp3lame -lameopts vbr=3 -o <replaceable>output.avi</replaceable>
</screen>
</para>
</example>
</sect1>
<sect1 id="menc-feat-handheld-psp">
<title>ëÏÄÉÒÏ×ÁÎÉÅ × Sony PSP ×ÉÄÅÏ ÆÏÒÍÁÔ</title>
<para>
<application>MEncoder</application> ÐÏÄÄÅÒÖÉ×ÁÅÔ ËÏÄÉÒÏ×ÁÎÉÅ × ×ÉÄÅÏ ÆÏÒÍÁÔ
Sony PSP, ÎÏ, × ÚÁ×ÉÓÉÍÏÓÔÉ ÏÔ ÒÅ×ÉÚÉÉ ÐÒÏÇÒÁÍÍÎÏÇÏ ÏÂÅÓÐÅÞÅÎÉÑ PSP,
Ó ÒÁÚÌÉÞÎÙÍÉ ÏÇÒÁÎÉÞÅÎÉÑÍÉ. íÏÖÅÔÅ ÎÅ ÂÅÓÐÏËÏÉÔØÓÑ, ÅÓÌÉ ÎÅ ÂÕÄÅÔÅ
ÎÁÒÕÛÁÔØ ÓÌÅÄÕÀÝÉÅ ÏÇÒÁÎÉÞÅÎÉÑ:
<itemizedlist>
<listitem><para>
<emphasis role="bold">âÉÔÏ×ÙÊ ÐÏÔÏË</emphasis>: ÎÅ ÄÏÌÖÅÎ ÐÒÅ×ÙÛÁÔØ 1500ËÂÉÔ/Ó,
ÔÅÍ ÎÅ ÍÅÎÅÅ, ÐÏÓÌÅÄÎÉÅ ×ÅÒÓÉÉ ÏÞÅÎØ ÈÏÒÏÛÏ ÐÏÄÄÅÒÖÉ×ÁÌÉ ÌÀÂÏÊ ÂÉÔÒÅÊÔ, ÐÏËÁ
ÚÁÇÏÌÏ×ÏË ÎÅ ÔÒÅÂÏ×ÁÌ ÞÅÒÅÚÞÕÒ ÂÏÌØÛÏÇÏ ÚÎÁÞÅÎÉÑ.
</para></listitem>
<listitem><para>
<emphasis role="bold">òÁÚÍÅÒÙ</emphasis>: ÛÉÒÉÎÁ É ×ÙÓÏÔÁ PSP ×ÉÄÅÏ ÄÏÌÖÎÁ ÂÙÔØ
ËÒÁÔÎÁ 16, Á ÐÒÏÉÚ×ÅÄÅÎÉÅ ÛÉÒÉÎÁ * ×ÙÓÏÔÁ ÎÅ ÄÏÌÖÎÏ ÐÒÅ×ÙÛÁÔØ 64000.
÷ ÎÅËÏÔÏÒÙÈ ÓÌÕÞÁÑÈ ×ÏÚÍÏÖÎÏ ×ÏÓÐÒÏÉÚ×ÅÄÅÎÉÅ ×ÉÄÅÏ ÂÏÌØÛÅÇÏ ÒÁÚÍÅÒÁ.
</para></listitem>
<listitem><para>
<emphasis role="bold">ú×ÕË</emphasis>: ÞÁÓÔÏÔÁ ÄÉÓËÒÅÔÉÚÁÃÉÉ ÄÏÌÖÎÁ ÂÙÔØ
24Ëçà ÄÌÑ MPEG-4, É 48Ëçà ÄÌÑ H.264.
</para></listitem>
</itemizedlist>
</para>
<example id="encode_for_psp">
<title>ëÏÄÉÒÏ×ÁÎÉÅ ÄÌÑ PSP</title>
<para>
<screen>
mencoder -oac lavc -ovc lavc -of lavf -lavcopts aglobal=1:vglobal=1:vcodec=mpeg4:acodec=aac \
-af lavcresample=24000 -vf harddup -lavfopts format=psp:i_certify_that_my_video_stream_does_not_use_b_frames \
-ofps 30000/1001 input.video -o output.psp
</screen>
úÁÍÅÔØÔÅ, ÞÔÏ ÍÏÖÎÏ ÚÁÄÁÔØ ÚÁÇÏÌÏ×ÏË ×ÉÄÅÏ ÏÐÃÉÅÊ
<option>-info name=<replaceable>úÁÇÏÌÏ×ÏË_æÉÌØÍÁ</replaceable></option>.
</para>
</example>
</sect1>
<sect1 id="menc-feat-mpeg">
<title>ëÏÄÉÒÏ×ÁÎÉÅ × MPEG ÆÏÒÍÁÔ</title>
<para>
<application>MEncoder</application> ÍÏÖÅÔ ÓÏÚÄÁ×ÁÔØ ÆÁÊÌÙ ÆÏÒÍÁÔÁ MPEG (MPEG-PS).
MPEG-1 ÉÌÉ MPEG-2 ÏÂÙÞÎÏ ÉÓÐÏÌØÚÕÀÔ ÐÏ ÐÒÉÞÉÎÅ ËÏÄÉÒÏ×ÁÎÉÑ × ÂÏÌÅÅ
ÏÇÒÁÎÉÞÅÎÎÙÅ ÆÏÒÍÁÔÙ, ÔÁËÉÅ ËÁË SVCD, VCD ÉÌÉ DVD.
ïÓÏÂÙÅ ÔÒÅÂÏ×ÁÎÉÑ ÄÌÑ ÜÔÉÈ ÆÏÒÍÁÔÏ× ÏÐÉÓÁÎÙ ×
<link linkend="menc-feat-vcd-dvd"> ÒÕËÏ×ÏÄÓÔ×Å ÐÏ ÓÏÚÄÁÎÉÀ VCD É DVD</link>
section.
</para>
<para>
þÔÏÂÙ ÓÍÅÎÉÔØ ÆÏÒÍÁÔ ×ÙÈÏÄÎÏÇÏ ÆÁÊÌÁ <application>MEncoder</application>, ÉÓÐÏÌØÚÕÊÔÅ
ÏÐÃÉÀ <option>-of mpeg</option>.
</para>
<informalexample>
<para>
ðÒÉÍÅÒ:
<screen>
mencoder <replaceable>input.avi</replaceable> -of mpeg -ovc lavc -lavcopts vcodec=mpeg1video -oac copy <replaceable>other_options</replaceable> -o <replaceable>output.mpg</replaceable>
</screen>
óÏÚÄÁÅÔÓÑ ÆÁÊÌ MPEG-1 ÐÒÉÇÏÄÎÙÊ ÄÌÑ ×ÏÓÐÒÏÉÚ×ÅÄÅÎÉÑ ÎÁ ÓÉÓÔÅÍÁÈ Ó ÍÉÎÉÍÁÌØÎÏÊ ÐÏÄÄÅÒÖËÏÊ
ÍÕÌØÔÉÍÅÄÉÁ, ÔÁËÉÈ ËÁË ÔÏÌØËÏ ÞÔÏ ÕÓÔÁÎÏ×ÌÅÎÎÙÅ Windows:
<screen>
mencoder <replaceable>input.avi</replaceable> -of mpeg -mpegopts format=mpeg1:tsaf:muxrate=2000 -o <replaceable>output.mpg</replaceable> -oac lavc -ovc lavc \
-lavcopts acodec=mp2:abitrate=224:vcodec=mpeg1video:vbitrate=1152:keyint=15:mbd=2:aspect=4/3
</screen>
</para>
</informalexample>
<note><title>ðÏÄÓËÁÚËÁ:</title>
<para>
åÓÌÉ ÐÏ ËÁËÉÍ-ÔÏ ÐÒÉÞÉÎÁÍ ×ÉÄÅÏ ÐÏÓÌÅ ×ÔÏÒÏÇÏ ÐÒÏÈÏÄÁ ×ÁÓ ÎÅ ÕÓÔÒÁÉ×ÁÅÔ,
ÍÏÖÎÏ ÓÎÏ×Á ÚÁÐÕÓÔÉÔØ ËÏÄÉÒÏ×ÁÎÉÅ Ó ÄÒÕÇÉÍÉ ÚÎÁÞÅÎÉÑÍÉ ÂÉÔÐÏÔÏËÁ, ÐÒÉ
ÕÓÌÏ×ÉÉ, ÞÔÏ ×Ù ÓÏÈÒÁÎÉÌÉ ÓÔÁÔÉÓÔÉËÕ ÐÒÅÄÙÄÕÝÅÇÏ ÐÒÏÈÏÄÁ.
üÔÏ ×ÏÚÍÏÖÎÏ, ÐÏÔÏÍÕ ÞÔÏ ÏÓÎÏ×ÎÁÑ ÚÁÄÁÞÁ ÆÁÊÌÁ ÓÏ ÓÔÁÔÉÓÔÉËÏÊ - ÚÁÐÉÓÙ×ÁÔØ
ÓÌÏÖÎÏÓÔØ ËÁÖÄÏÇÏ ËÁÄÒÁ, ËÏÔÏÒÁÑ ÖÅÓÔËÏ Ó ÂÉÔÐÏÔÏËÏÍ ÎÅ Ó×ÑÚÁÎÁ.
óÌÅÄÕÅÔ ÉÍÅÔØ × ×ÉÄÕ, ÞÔÏ, ÎÅÓÍÏÔÒÑ ÎÁ ÜÔÏ, ÌÕÞÛÅÅ ËÁÞÅÓÔ×Ï ÐÏÌÕÞÁÅÔÓÑ ÅÓÌÉ
ÚÎÁÞÅÎÉÑ ÒÅÚÕÌØÔÉÒÕÀÝÅÇÏ ÂÉÔÐÏÔÏËÁ ×ÓÅÈ ÐÒÏÈÏÄÏ× ÎÅ ÓÉÌØÎÏ ÏÔÌÉÞÁÀÔÓÑ.
</para>
</note>
</sect1>
<sect1 id="menc-feat-rescale">
<title>íÁÓÛÔÁÂÉÒÏ×ÁÎÉÅ ÆÉÌØÍÏ×</title>
<para>
þÁÓÔÏ ×ÏÚÎÉËÁÅÔ ÐÏÔÒÅÂÎÏÓÔØ ÉÚÍÅÎÉÔØ ÒÁÚÍÅÒ ÉÚÏÂÒÁÖÅÎÉÑ Õ ÆÉÌØÍÁ.
ðÒÉÞÉÎ ÍÏÖÅÔ ÂÙÔØ ÍÎÏÇÏ: ÕÍÅÎØÛÅÎÉÅ ÒÁÚÍÅÒÁ ÆÁÊÌÁ, ÐÒÏÐÕÓËÎÁÑ ÓÐÏÓÏÂÎÏÓÔØ ÓÅÔÉ,
É Ô.Ä. âÏÌØÛÉÎÓÔ×Ï ÐÒÏÉÚ×ÏÄÑÔ ÍÁÓÛÔÁÂÉÒÏ×ÁÎÉÅ ÄÁÖÅ ÐÒÉ ËÏÎ×ÅÒÔÁÃÉÉ DVD ÉÌÉ SVCD × AVI.
åÓÌÉ ÅÓÔØ ÖÅÌÁÎÉÅ ÐÒÏ×ÅÓÔÉ ÍÁÓÛÔÁÂÉÒÏ×ÁÎÉÅ, ÐÒÏÞÔÉÔÅ ÒÁÚÄÅÌ
<link linkend="aspect">óÏÈÒÁÎÅÎÉÅ ÐÒÏÐÏÒÃÉÊ</link>.
</para>
<para>
ðÒÏÃÅÓÓ ÍÁÓÛÔÁÂÉÒÏ×ÁÎÉÅ ÏÓÕÝÅÓÔ×ÌÑÅÔÓÑ ÐÌÁÇÉÎÏÍ <literal>scale</literal>:
<option>-vf scale=<replaceable>ÛÉÒÉÎÁ</replaceable>:<replaceable>×ÙÓÏÔÁ</replaceable></option>.
ëÁÞÅÓÔ×Ï ÍÏÖÅÔ ÂÙÔØ ÕÓÔÁÎÏ×ÌÅÎÏ ÏÐÃÉÅÊ <option>-sws</option>.
åÓÌÉ ÎÅ ÕËÁÚÁÎÏ, <application>MEncoder</application> ÂÕÄÅÔ ÉÓÐÏÌØÚÏ×ÁÔØ 2: ÂÉËÕÂÉÞÅÓËÏÅ.
</para>
<para>
éÓÐÏÌØÚÏ×ÁÎÉÅ:
<screen>
mencoder <replaceable>input.mpg</replaceable> -ovc lavc -lavcopts vcodec=mpeg4:mbd=2:trell -vf scale=640:480 -o <replaceable>output.avi</replaceable>
</screen>
</para>
</sect1>
<sect1 id="menc-feat-streamcopy">
<title>ËÏÐÉÒÏ×ÁÎÉÅ ÐÏÔÏËÁ</title>
<para>
<application>MEncoder</application> ÍÏÖÅÔ ÏÂÒÁÂÁÔÙ×ÁÔØ ×ÈÏÄÎÙÅ ÐÏÔÏËÉ Ä×ÕÍÑ ÓÐÏÓÏÂÙÍÉ:
<emphasis role="bold">ËÏÄÉÒÏ×ÁÔØ</emphasis> ÉÌÉ <emphasis role="bold">ËÏÐÉÒÏ×ÁÔØ</emphasis>
ÉÈ. üÔÏÔ ÒÁÚÄÅÌ Ï <emphasis role="bold">ËÏÐÉÒÏ×ÁÎÉÉ</emphasis>.
</para>
<itemizedlist>
<listitem><para>
<emphasis role="bold">÷ÉÄÅÏ ÐÏÔÏË</emphasis> (ÏÐÃÉÑ <option>-ovc copy</option>):
ÍÏÖÎÏ ÄÅÌÁÔØ ËÌÁÓÓÎÙÅ ×ÅÝÉ :) ÷ÒÏÄÅ ÐÏÍÅÝÅÎÉÑ (ÎÅ ÐÒÅÏÂÒÁÚÏ×ÁÎÉÑ!) FLI ÉÌÉ VIVO ÉÌÉ
MPEG-1 ×ÉÄÅÏ × AVI ÆÁÊÌ! ëÏÎÅÞÎÏ, ÐÒÏÉÇÒÁÔØ ÔÁËÉÅ ÆÁÊÌÙ ÓÍÏÖÅÔ ÔÏÌØËÏ
<application>MPlayer</application> :) é, ×ÏÚÍÏÖÎÏ, ÎÉËÁËÏÇÏ ÒÅÁÌØÎÏÊ ÐÏÌØÚÙ ×
ÜÔÏÍ ÎÅÔ. òÅÁÌØÎÏ: ËÏÐÉÒÏ×ÁÎÉÅ ×ÉÄÅÏÐÏÔÏËÁ ÍÏÖÅÔ ÂÙÔØ ÐÏÌÅÚÎÏ, ÅÓÌÉ ÎÁÄÏ ËÏÄÉÒÏ×ÁÔØ ÔÏÌØËÏ
ÁÕÄÉÏ ÐÏÔÏË (ÎÁÐÒÉÍÅÒ, ÎÅÓÖÁÔÙÊ PCM × MP3).
</para></listitem>
<listitem><para>
<emphasis role="bold">áÕÄÉÏ ÐÏÔÏË</emphasis> (ÏÐÃÉÑ <option>-oac copy</option>):
straightforward. ÷ÏÚÍÏÖÎÏ ×ÚÑÔØ ×ÎÅÛÎÉÊ ÆÁÊÌ (MP3, WAV) É ÕÐÌÏÔÎÉÔØ[mux] ÅÇÏ × ×ÙÈÏÄÎÏÊ
ÐÏÔÏË. ÷ÏÓÐÏÌØÚÕÊÔÅÓØ ÏÐÃÉÅÊ <option>-audiofile <replaceable>ÉÍÑ_ÆÁÊÌÁ</replaceable></option>,
ÞÔÏÂÙ ÓÄÅÌÁÔØ ÜÔÏ.
</para></listitem>
</itemizedlist>
<para>
éÓÐÏÌØÚÏ×ÁÎÉÅ <option>-oac copy</option> ÄÌÑ ËÏÐÉÒÏ×ÁÎÉÑ ÉÚ ÏÄÎÏÇÏ ÆÏÒÍÁÔÁ × ÄÒÕÇÏÊ
ÔÏÖÅÔ ÐÏÔÒÅÂÏ×ÁÔØ ÕËÁÚÁÎÉÑ <option>-fafmttag</option> ÄÌÑ ÓÏÈÒÁÎÉÅÎÉÑ ÔÜÇÁ ÁÕÄÉÏ ÆÏÒÍÁÔÁ
ÉÚ ÏÒÉÇÉÎÁÌØÎÏÇÏ ÆÁÊÌÁ. îÁÐÒÉÍÅÒ, ÅÓÌÉ ×Ù ÐÒÅÏÂÒÁÚÏ×Ù×ÁÅÔÅ NSV ÆÁÊÌ ÓÏ Ú×ÕËÏÍ AAC
× ÆÏÒÍÁÔ AVI, ÁÕÄÉÏ ÆÏÒÍÁÔ ÂÕÄÅÔ ÎÅ×ÅÒÅÎ É ÄÏÌÖÅÎ ÂÙÔØ ÉÚÍÅÎÅÎ. þÔÏÂÙ ÐÏÌÕÞÉÔØ ÓÐÉÓÏË
ÔÜÇÏ× ÁÕÄÉÏ ÆÏÒÍÁÔÁ ÐÒÏ×ÅÒØÔÅ <filename>codecs.conf</filename>.
</para>
<para>
ðÒÉÍÅÒ:
<screen>
mencoder <replaceable>input.nsv</replaceable> -oac copy -fafmttag 0x706D -ovc lavc -lavcopts vcodec=mpeg4:mbd=2:trell -o <replaceable>output.avi</replaceable>
</screen>
</para>
</sect1>
<sect1 id="menc-feat-enc-images">
<title>ëÏÄÉÒÏ×ÁÎÉÅ ÉÚ ÎÅÓËÏÌØËÉÈ ×ÈÏÄÎÙÈ ÆÁÊÌÏ× ÉÚÏÂÒÁÖÅÎÉÊ (JPEG, PNG, TGA, SGI)</title>
<para>
<application>MEncoder</application> ÍÏÖÅÔ ÓÏÚÄÁ×ÁÔØ ÆÉÌØÍÙ ÉÚ ÏÄÎÏÇÏ ÉÌÉ ÂÏÌÅÅ
JPEG, PNG ÉÌÉ TGA ÆÁÊÌÏ×. ðÒÏÓÔÙÍ ËÏÐÉÒÏ×ÁÎÉÅÍ ËÁÄÒÏ× ÏÎ ÍÏÖÅÔ ÓÏÚÄÁ×ÁÔØ MJPEG
(Motion JPEG), MPNG (Motion PNG) ÉÌÉ MTGA (Motion TGA) ÆÁÊÌÙ.
</para>
<orderedlist>
<title>òÁÚßÑÓÎÅÎÉÅ ÐÒÏÃÅÓÓÁ:</title>
<listitem><para>
<application>MEncoder</application> <emphasis>ÄÅËÏÄÉÒÕÅÔ</emphasis> ÉÚÏÂÒÁÖÅÎÉÅ(Ñ) Ó ÐÏÍÏÝØÀ
<systemitem class="library">libjpeg</systemitem> (ÐÒÉ ÄÅËÏÄÉÒÏ×ÁÎÉÉ PNG, ÏÎ ÂÕÄÅÔ
ÉÓÐÏÌØÚÏ×ÁÔØ <systemitem class="library">libpng</systemitem>).
</para></listitem>
<listitem><para>
<application>MEncoder</application> ÚÁÔÅÍ ÓËÁÒÍÌÉ×ÁÅÔ ÄÅËÏÄÉÒÏ×ÁÎÎÏÅ ÉÚÏÂÒÁÖÅÎÉÅ ×ÙÂÒÁÎÎÏÍÕ
×ÉÄÅÏ ËÏÍÐÒÅÓÓÏÒÕ (DivX4, XviD, FFmpeg msmpeg4, É .Ô.Ä).
</para></listitem>
</orderedlist>
<formalpara>
<title>ÐÒÉÍÅÒÙ</title>
<para>
The explanation of the <option>-mf</option> option is in the man page.
<informalexample>
<para>
óÏÚÄÁÎÉÅ ÆÁÊÌÁ MPEG-4 ÉÚ ×ÓÅÈ JPEG ÆÁÊÌÏ× ÔÅËÕÝÅÇÏ ËÁÔÁÌÏÇÁ:
<screen>
mencoder mf://*.jpg -mf w=800:h=600:fps=25:type=jpg -ovc lavc -lavcopts vcodec=mpeg4:mbd=2:trell -oac copy -o <replaceable>output.avi</replaceable>
</screen>
</para>
</informalexample>
<informalexample>
<para>
óÏÚÄÁÎÉÅ ÆÁÊÌÁ MPEG-4 ÉÚ ÎÅËÏÔÏÒÙÈ JPEG ÆÁÊÌÏ× ÔÅËÕÝÅÇÏ ËÁÔÁÌÏÇÁ:
<screen>
mencoder mf://<replaceable>frame001.jpg,frame002.jpg</replaceable> -mf w=800:h=600:fps=25:type=jpg -ovc lavc -lavcopts vcodec=mpeg4:mbd=2:trell -oac copy -o <replaceable>output.avi</replaceable>
</screen>
</para>
</informalexample>
<informalexample>
<para>
óÏÚÄÁÎÉÅ ÆÁÊÌÁ MPEG-4 ÉÚ Ñ×ÎÏÇÏ ÓÐÉÓËÁ JPEG ÆÁÊÌÏ× (list.txt × ÔÅËÕÝÅÍ ËÁÔÁÌÏÇÅ ÓÏÄÅÒÖÉÔ
ÓÐÉÓÏË ÆÁÊÌÏ×, ÉÓÐÏÌØÚÕÅÍÙÈ × ËÁÞÅÓÔ×Å ÉÓÔÏÞÎÉËÁ, ÐÏ ÏÄÎÏÍÕ × ÓÔÒÏËÅ):
<screen>
mencoder mf://<replaceable>@list.txt</replaceable> -mf w=800:h=600:fps=25:type=jpg \
-ovc lavc -lavcopts vcodec=mpeg4:mbd=2:trell -oac copy -o <replaceable>output.avi</replaceable>
</screen>
</para>
</informalexample>
<informalexample>
<para>
óÏÚÄÁÎÉÅ ÆÁÊÌÁ Motion JPEG (MJPEG) ÉÚ ×ÓÅÈ JPEG ÆÁÊÌÏ× ÔÅËÕÝÅÇÏ ËÁÔÁÌÏÇÁ:
<screen>
mencoder mf://*.jpg -mf w=800:h=600:fps=25:type=jpg -ovc copy -oac copy -o <replaceable>output.avi</replaceable>
</screen>
</para>
</informalexample>
<informalexample>
<para>
óÏÚÄÁÎÉÅ ÎÅÓÖÁÔÏÇÏ ÆÁÊÌÁ ÉÚ ×ÓÅÈ PNG ÆÁÊÌÏ× ÔÅËÕÝÅÇÏ ËÁÔÁÌÏÇÁ:
<screen>
mencoder mf://*.png -mf w=800:h=600:fps=25:type=png -ovc raw -oac copy -o <replaceable>output.avi</replaceable>
</screen>
</para>
</informalexample>
<note><para>
ûÉÒÉÎÁ ÄÏÌÖÎÁ ÂÙÔØ ÃÅÌÙÍ ÞÉÓÌÏÍ, ËÒÁÔÎÙÍ 4, ÜÔÏ ÏÇÒÁÎÉÞÅÎÉÅ ÆÏÒÍÁÔÁ RAW RGB AVI.
</para></note>
<informalexample>
<para>
óÏÚÄÁÎÉÅ ÆÁÊÌÁ Motion PNG (MPNG) ÉÚ ×ÓÅÈ PNG ÆÁÊÌÏ× ÔÅËÕÝÅÇÏ ËÁÔÁÌÏÇÁ:
<screen>
mencoder mf://*.png -mf w=800:h=600:fps=25:type=png -ovc copy -oac copy -o <replaceable>output.avi</replaceable> <!--
--></screen>
</para>
</informalexample>
<informalexample>
<para>
óÏÚÄÁÎÉÅ ÆÁÊÌÁ Motion TGA (MTGA) ÉÚ ×ÓÅÈ TGA ÆÁÊÌÏ× ÔÅËÕÝÅÇÏ ËÁÔÁÌÏÇÁ:
<screen>
mencoder mf://*.tga -mf w=800:h=600:fps=25:type=tga -ovc copy -oac copy -o <replaceable>output.avi</replaceable><!--
--></screen>
</para>
</informalexample>
</para>
</formalpara>
</sect1>
<sect1 id="menc-feat-extractsub">
<title>éÚ×ÌÅÞÅÎÉÅ DVD ÓÕÂÔÉÔÒÏ× × ÆÁÊÌ VOBsub</title>
<para>
<application>MEncoder</application> ÓÐÏÓÏÂÅÎ ÉÚ×ÌÅËÁÔØ ÓÕÂÔÉÔÒÙ ÉÚ DVD × ÆÁÊÌÙ ÆÏÒÍÁÔÁ
VOBsub. ïÎÉ ÓÏÓÔÏÑÔ ÉÚ ÐÁÒÙ ÆÁÊÌÏ×, ÏËÁÎÞÉ×ÁÀÝÉÈÓÑ ÎÁ
<filename>.idx</filename> É <filename>.sub</filename> É ÏÂÙÞÎÏ
ÕÐÁËÏ×ÁÎÙ × ÏÄÉÎ <filename>.rar</filename> ÁÒÈÉ×.
<application>MPlayer</application> ÍÏÖÅÔ ×ÏÓÐÒÏÉÚ×ÏÄÉÔØ ÉÚ ÐÒÉ ÐÏÍÏÝÉ ÏÐÃÉÊ
<option>-vobsub</option> É <option>-vobsubid</option>.
</para>
<para>
÷Ù ÕËÁÚÙ×ÁÅÔÅ ÂÁÚÏ×ÏÅ ÉÍÑ (Ô.Å. ÂÅÚ ÒÁÓÛÉÒÅÎÉÑ <filename>.idx</filename> ÉÌÉ
<filename>.sub</filename>) ×ÙÈÏÄÎÙÈ ÆÁÊÌÏ× Ó ÐÏÍÏÝØÀ
<option>-vobsubout</option> É ÉÎÄÅËÓ ÜÔÉÈ ÓÕÂÔÉÔÒÏ× × ÒÅÚÕÌØÔÉÒÕÀÝÅÍ ÆÁÊÌÅ
ÐÒÉ ÐÏÍÏÝÉ <option>-vobsuboutindex</option>.
</para>
<para>
åÓÌÉ ÉÓÔÏÞÎÉËÏÍ Ñ×ÌÑÅÔÓÑ ÎÅ DVD ÓÌÅÄÕÅÔ ÉÓÐÏÌØÚÏ×ÁÔØ <option>-ifo</option> ÄÌÑ
ÕËÁÚÁÎÉÑ ÕËÁÚÁÎÉÑ ÆÁÊÌÁ <filename>.ifo</filename>, ÎÅÏÂÈÏÄÉÍÏÇÏ ÄÌÑ ÓÏÚÄÁÎÉÑ
ÒÅÚÕÌØÔÉÒÕÀÝÅÇÏ <filename>.idx</filename> ÆÁÊÌÁ.
</para>
<para>
åÓÌÉ ÉÓÔÏÞÎÉËÏÍ Ñ×ÌÑÅÔÓÑ ÎÅ DVD É Õ ×ÁÓ ÎÅÔ <filename>.ifo</filename> ÆÁÊÌÁ,
ÉÓÐÏÌØÚÕÊÔÅ ÏÐÃÉÀ <option>-vobsubid</option> ÄÌÑ ÕËÁÚÁÎÉÑ, ËÁËÏÊ ÉÄ ÑÚÙËÁ
ÓÌÅÄÕÅÔ ÚÁÐÉÓÁÔØ × <filename>.idx</filename> ÆÁÊÌ.
</para>
<para>
ðÒÉ ËÁÖÄÏÍ ÚÁÐÕÓËÅ ÓÕÂÔÉÔÒÙ ÂÕÄÕÔ ÄÏÂÁ×ÌÑÔØÓÑ × ËÏÎÅà ÆÁÊÌÏ×, ÅÓÌÉ
<filename>.idx</filename> É <filename>.sub</filename> ÕÖÅ ÓÕÝÅÓÔ×ÕÀÔ.
ôÁË ÞÔÏ ×ÁÍ ÓÌÅÄÕÅÔ ÕÄÁÌÑÔØ ÉÈ ÐÅÒÅÄ ÎÁÞÁÌÏÍ.
</para>
<example id="copying_two_subtitles_from_a_dvd_while_doing_two_pass_encoding">
<title>ËÏÐÉÒÏ×ÁÎÉÅ Ä×ÕÈ ÓÕÂÔÉÔÒÏ× ÉÚ DVD ÐÒÉ ×ÙÐÏÌÎÅÎÉÉ Ä×ÕÈÐÒÏÈÏÄÎÏÇÏ ËÏÄÉÒÏ×ÁÎÉÑ</title>
<screen>
rm subtitles.idx subtitles.sub
mencoder dvd://1 -oac copy -ovc lavc -lavcopts vcodec=mpeg4:vpass=1 -vobsubout subtitles -vobsuboutindex 0 -sid 2
mencoder dvd://1 -oac copy -ovc lavc -lavcopts vcodec=mpeg4:mbd=2:trell:vpass=2 -vobsubout subtitles -vobsuboutindex 1 -sid 5<!--
--></screen>
</example>
<example id="copying_a_french_subtitle_from_an_mpeg_file">
<title>ëÏÐÉÒÏ×ÁÎÉÅ ÆÒÁÎÃÕÚÓËÉÈ ÓÕÂÔÉÔÒÏ× ÉÚ MPEG ÆÁÊÌÁ</title>
<screen>
rm subtitles.idx subtitles.sub
mencoder <replaceable>movie.mpg</replaceable> -ifo <replaceable>movie.ifo</replaceable> -vobsubout subtitles -vobsuboutindex 0 -vobsuboutid fr -sid 1 -nosound -ovc copy
</screen>
</example>
</sect1>
<sect1 id="aspect">
<title>óÏÈÒÁÎÅÎÉÅ ÐÒÏÐÏÒÃÉÊ</title>
<para>
DVD É SVCD (Ô.Å. MPEG-1/2) ÆÁÊÌÙ ÓÏÄÅÒÖÁÔ ÉÎÆÏÒÍÁÃÉÀ Ï ÐÒÏÐÏÒÃÉÉ, ËÏÔÏÒÁÑ ÏÐÉÓÙ×ÁÅÔ
ËÁË ÐÒÏÉÇÒÙ×ÁÔÅÌØ ÄÏÌÖÅÎ ÍÁÓÛÔÁÂÉÒÏ×ÁÔØ ×ÉÄÅÏ ÐÏÔÏË, ÞÔÏÂÙ ÌÀÄÉ ÎÅ ÓÔÁÎÏ×ÉÌÉÓØ ÑÊÃÅÇÏÌÏ×ÙÍÉ.
(ÎÁÐÒ.: 480x480 + 4:3 = 640x480). èÏÔÑ ÐÒÉ ËÏÄÉÒÏ×ÁÎÉÉ × AVI (DivX) ÆÁÊÌÙ ×Ù ÉÚÂÁ×ÌÅÎÙ ÏÔ ÜÔÏÊ
ÐÒÏÂÌÅÍÙ, Ô.Ë. ÚÁÇÏÌÏ×ËÉ AVI ÎÅ ÓÏÄÅÒÖÁÔ ÜÔÏ ÚÎÁÞÅÎÉÅ.
íÁÓÛÔÁÂÉÒÏ×ÁÎÉÅ ÉÚÏÂÒÁÖÅÎÉÑ ÏÔ×ÒÁÔÉÔÅÌØÎÏ É ÒÁÓÔÏÞÉÔÅÌØÎÏ, ÅÓÔØ ÌÕÞÛÉÊ ÐÕÔØ!
</para>
<para>There is</para>
<para>
MPEG-4 ÉÍÅÅÔØ ÕÎÉËÁÌØÎÕÀ ×ÏÚÍÏÖÎÏÓÔØ: ×ÉÄÅÏ ÐÏÔÏË ÍÏÖÅÔ ÈÒÁÎÉÔØ ÔÒÅÂÕÅÕÍÙÅ ÅÍÕ ÐÒÏÐÏÒÃÉÉ.
äÁ, × ÔÏÞÎÏÓÔÉ ËÁË MPEG-1/2 (DVD, SVCD) É H.263 ÆÁÊÌÙ. ë ÓÏÖÁÌÅÎÉÀ, ÎÅÍÎÏÇÏ ÐÒÏÉÇÒÙ×ÁÔÅÌÅÊ
ËÒÏÍÅ <application>MPlayer</application> ÐÏÄÄÅÒÖÉ×ÁÀÔ ÜÔÏÔ MPEG-4 ÁÔÒÉÂÕÔ.
</para>
<para>
üÔÁ ×ÏÚÍÏÖÎÏÓÔØ ÍÏÖÅÔ ÉÓÐÏÌØÚÏ×ÁÔØÓÑ ÔÏÌØËÏ Ó
<link linkend="ffmpeg"><systemitem class="library">libavcodec</systemitem></link>'Ï×ÓËÉÍ
<systemitem>mpeg4</systemitem> ËÏÄÅËÏÍ. éÍÅÊÔÅ × ×ÉÄÕ: ÈÏÔÑ
<application>MPlayer</application> ËÏÒÒÅËÔÎÏ ×ÏÓÐÒÏÉÚ×ÅÄÅÔ ÆÁÊÌ, ÄÒÕÇÉÅ
ÐÒÏÉÇÒÙ×ÁÔÅÌÉ ÍÏÇÕÔ ÉÓÐÏÌØÚÏ×ÁÔØ ÎÅ×ÅÒÎÙÅ ÐÒÏÐÏÒÃÉÉ.
</para>
<para>
÷Ù ÓÅÒßÅÚÎÏ ÄÏÌÖÎÙ ÏÂÒÅÚÁÔØ ÞÅÒÎÙÅ ÐÏÌÏÓÙ ×ÙÛÅ É ÎÉÖÅ ÉÚÏÂÒÁÖÅÎÉÑ.
óÍÏÔÒÉÔÅ ÓÔÒÁÎÉÃÕ ÒÕËÏ×ÏÄÓÔ×Á man ÐÏ ÉÓÐÏÌØÚÏ×ÁÎÉÀ <systemitem>cropdetect</systemitem> É
<systemitem>crop</systemitem> ÐÌÁÇÉÎÏ×.
</para>
<para>
éÓÐÏÌØÚÏ×ÁÎÉÅ:
<screen>mencoder <replaceable>sample-svcd.mpg</replaceable> -ovc lavc -lavcopts vcodec=mpeg4:mbd=2:trell:autoaspect -vf crop=714:548:0:14 -oac copy -o <replaceable>output.avi</replaceable></screen>
</para>
</sect1>
</chapter>
|