Matrix austauschen
Der Mencoder benutzt als Default-Matrix die MPEG-Standard Matrix, was auch nicht schlimm ist mit dieser Matrix fährt man in den meisten Fällen sehr gut. Hin und Wieder benötigt man aber auch andere Matrizen z.B. für Zeichentrick usw..
Auch das lässt sich ohne weiters mit dem mencoder händeln, man erweitert das Script unter -lavcopts um die Einträge:
intra_matrix=
inter_matrix= (Allgemein als non-intra bezeichnet)
Das Script sieht dann, mit einer HClow Matrix, so aus:
<table style="width: 98%; table-layout: fixed;" align="center"> <tbody><tr> <td> <table style="width: 100%;" class="tableinborder" cellpadding="4" cellspacing="1"> <tbody><tr class="smallfont"> <td class="tablecat" colspan="2">code:</td> </tr> <tr class="smallfont"> <td class="inposttable" align="right" nowrap="nowrap">
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:
</pre></td> <td class="inposttable" style="width: 100%;" align="left" nowrap="nowrap" valign="top">
#!/bin/bash
mencoder \
/home/morpheus/Test.avi \
-of mpeg \
-ovc lavc -lavcopts vcodec=mpeg2video:aspect=4/3:vpass=1:vrc_buf_size=1835:vrc_minrate=2000:\
vrc_maxrate=8000:vbitrate=5000:intra_matrix=8,16,17,18,20,22,26,32,16,16,17,20,22,26,30,36,17,17,18,22,26,30,36,40,18,20,22,26,30,36,40,48,20,22,26,30,36,40,48,56,22,26,30,\
36,40,48,56,72,26,30,36,40,48,56,72,96,32,36,40,48,56,72,96,108:inter_matrix=16,16,17,18,19,20,22,24,16,16,17,19,20,22,24,26,17,17,17,20,22,24,26,30,18,19,20,22,24,26,30,36,19,20,\
22,24,26,30,36,40,20,22,24,26,30,36,40,48,22,24,26,30,36,40,48,56,24,26,30,36,40,48,56,64:keyint=12:trell:mbd=2:precmp=2:subcmp=2:cmp=2:dia=-10:predia=-10:cbp:mv0:vqmin=1:lmin=1:dc=10:vstrict=0:turbo -ofps 25 \
-mpegopts format=dvd:tsaf \
-srate 48000 \
-sws 7 \
-vf scale=720:448,expand=720:576,harddup \
-oac lavc -lavcopts acodec=ac3:abitrate=192 \
-af lavcresample=48000 \
-o /home/morpheus/.Trash/1.mpg \
&& \
sleep 30 ; mencoder \
/home/morpheus/Test.avi \
-of mpeg \
-ovc lavc -lavcopts vcodec=mpeg2video:aspect=4/3:vpass=2:vrc_buf_size=1835:vrc_minrate=2000:\
vrc_maxrate=8000:vbitrate=5000:intra_matrix=8,16,17,18,20,22,26,32,16,16,17,20,22,26,30,36,17,17,18,22,26,30,36,40,18,20,22,26,30,36,40,48,20,22,26,30,36,40,48,56,22,26,30,\
36,40,48,56,72,26,30,36,40,48,56,72,96,32,36,40,48,56,72,96,108:inter_matrix=16,16,17,18,19,20,22,24,16,16,17,19,20,22,24,26,17,17,17,20,22,24,26,30,18,19,20,22,24,26,30,36,19,20,\
22,24,26,30,36,40,20,22,24,26,30,36,40,48,22,24,26,30,36,40,48,56,24,26,30,36,40,48,56,64:keyint=12:trell:mbd=2:precmp=2:subcmp=2:cmp=2:dia=-10:predia=-10:cbp:mv0:vqmin=1:lmin=1:dc=10:vstrict=0 -ofps 25 \
-mpegopts format=dvd:tsaf \
-srate 48000 \
-sws 7 \
-vf scale=720:448,expand=720:576,harddup \
-oac lavc -lavcopts acodec=ac3:abitrate=192 \
-af lavcresample=48000 \
-o /home/morpheus/Videos/Test.mpg</pre></td> </tr> </tbody></table>
</td> </tr> </tbody></table>