comparison DOCS/xml/en/encoding-guide.xml @ 21830:01bb9c073e77

clarify a few things about the interaction between *cmp and mbd options fix encoding example that featured a option that didn't have any effect (because of the interaction mentioned above)
author gpoirier
date Sun, 07 Jan 2007 10:39:00 +0000
parents e7403deab378
children 88c9d0f343e7
comparison
equal deleted inserted replaced
21829:b11d75b2ebdd 21830:01bb9c073e77
2951 2951
2952 <para> 2952 <para>
2953 We are now ready to do the two pass encode. Pass one: 2953 We are now ready to do the two pass encode. Pass one:
2954 <screen> 2954 <screen>
2955 mencoder dvd://1 -ofps 24000/1001 -oac copy -o <replaceable>Harry_Potter_2.avi</replaceable> -ovc lavc \ 2955 mencoder dvd://1 -ofps 24000/1001 -oac copy -o <replaceable>Harry_Potter_2.avi</replaceable> -ovc lavc \
2956 -lavcopts vcodec=mpeg4:vbitrate=2400:v4mv:mbd=2:trell:cmp=3:subcmp=3:mbcmp=3:autoaspect:vpass=1 \ 2956 -lavcopts vcodec=mpeg4:vbitrate=2400:v4mv:mbd=2:trell:cmp=3:subcmp=3:autoaspect:vpass=1 \
2957 -vf pullup,softskip,crop=720:352:0:62,hqdn3d=2:1:2 2957 -vf pullup,softskip,crop=720:352:0:62,hqdn3d=2:1:2
2958 </screen> 2958 </screen>
2959 And pass two is the same, except that we specify <option>vpass=2</option>: 2959 And pass two is the same, except that we specify <option>vpass=2</option>:
2960 <screen> 2960 <screen>
2961 mencoder dvd://1 -ofps 24000/1001 -oac copy -o <replaceable>Harry_Potter_2.avi</replaceable> -ovc lavc \ 2961 mencoder dvd://1 -ofps 24000/1001 -oac copy -o <replaceable>Harry_Potter_2.avi</replaceable> -ovc lavc \
2962 -lavcopts vcodec=mpeg4:vbitrate=2400:v4mv:mbd=2:trell:cmp=3:subcmp=3:mbcmp=3:autoaspect:vpass=2 \ 2962 -lavcopts vcodec=mpeg4:vbitrate=2400:v4mv:mbd=2:trell:cmp=3:subcmp=3:autoaspect:vpass=2 \
2963 -vf pullup,softskip,crop=720:352:0:62,hqdn3d=2:1:2 2963 -vf pullup,softskip,crop=720:352:0:62,hqdn3d=2:1:2
2964 </screen> 2964 </screen>
2965 </para> 2965 </para>
2966 2966
2967 <para> 2967 <para>
2968 The options <option>v4mv:mbd=2:trell</option> will greatly increase the 2968 The options <option>v4mv:mbd=2:trell</option> will greatly increase the
2969 quality at the expense of encoding time. There is little reason to leave 2969 quality at the expense of encoding time. There is little reason to leave
2970 these options out when the primary goal is quality. The options 2970 these options out when the primary goal is quality. The options
2971 <option>cmp=3:subcmp=3:mbcmp=3</option> select a comparison function that 2971 <option>cmp=3:subcmp=3</option> select a comparison function that
2972 yields higher quality than the defaults. You might try experimenting with 2972 yields higher quality than the defaults. You might try experimenting with
2973 this parameter (refer to the man page for the possible values) as 2973 this parameter (refer to the man page for the possible values) as
2974 different functions can have a large impact on quality depending on the 2974 different functions can have a large impact on quality depending on the
2975 source material. For example, if you find 2975 source material. For example, if you find
2976 <systemitem class="library">libavcodec</systemitem> produces too much 2976 <systemitem class="library">libavcodec</systemitem> produces too much