mencoder.conf 8.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317
  1. #
  2. # Mencoder configuration file
  3. #
  4. # Configuration files are read system-wide from /etc/mencoder.conf
  5. # and per user from ~/.mplayer/mencoder.conf, where per-user settings override
  6. # system-wide settings, all of which are overrriden by the command line.
  7. #
  8. # The configuration file settings are the same as the command line
  9. # options without the preceding '-'.
  10. #
  11. # See the CONFIGURATION FILES section in the man page
  12. # for a detailed description of the syntax.
  13. ####################
  14. # default settings #
  15. ####################
  16. # Some font enhancements using fontconfig as default
  17. fontconfig = 1
  18. subcp = cp1254
  19. spuaa = 4
  20. subfont-text-scale = 3
  21. font = "Dejavu Sans Condensed"
  22. ############
  23. # profiles #
  24. ############
  25. [yuy2]
  26. profile-desc="RAW uncompressed YUY2"
  27. mf=fps=25
  28. oac=copy=yes
  29. ovc=raw=yes
  30. vf=format=yuy2
  31. [mpeg1]
  32. profile-desc="MPEG-1 Video MP2 Audio"
  33. of=mpeg=1
  34. mpegopts=format=mpeg1:tsaf=1:muxrate=2000
  35. oac=lavc=1
  36. ovc=lavc=1
  37. lavcopts=acodec=mp2:abitrate=224:vcodec=mpeg1video:vbitrate=1152:keyint=15:mbd=2:aspect=4/3
  38. [mpeg2]
  39. profile-desc="MPEG-2 Video MP2 Audio - Slow because Full Encoding"
  40. lavdopts=threads=2
  41. vf=pp=md,harddup
  42. ovc=lavc=1
  43. oac=lavc=1
  44. lavcopts=vcodec=mpeg2video:vqscale=1:acodec=mp2:abitrate=320:threads=2
  45. of=lavf=1
  46. lavfopts=format=dvd
  47. [mpeg4]
  48. profile-desc="MPEG4 video"
  49. ovc=lavc=1
  50. oac=mp3lame=1
  51. lameopts=preset=standard
  52. lavcopts=vcodec=mpeg4:vbitrate=1200
  53. [mpeg4-hq]
  54. profile-desc="MPEG4 video HQ"
  55. profile=mpeg4
  56. lavcopts=mbd=2:trell=yes:v4mv=yes
  57. [x264]
  58. profile-desc="x264 video MP3 audio"
  59. ovc=x264=1
  60. x264encopts=subq=5:frameref=2:b_pyramid=1:weight_b=1:nr=500
  61. oac=mp3lame=1
  62. lameopts=preset=standard
  63. [x264-hq]
  64. profile-desc="x264 video MP3 audio HQ"
  65. lavdopts=threads=2
  66. ovc=x264=1
  67. x264encopts=subq=6:partitions=all:8x8dct=yes:me=umh:frameref=5:bframes=3:b_pyramid=yes:weight_b=yes:threads=auto
  68. ofps=25
  69. alang=it
  70. oac=mp3lame=yes
  71. lameopts=vbr=3:br=128
  72. [xvid]
  73. profile-desc="MPEG4 (XviD) video MP3 audio"
  74. ovc=xvid=yes
  75. xvidencopts=bitrate=1200:autoaspect=yes:chroma_opt=yes:vhq=4:bvhq=1:quant_type=mpeg
  76. ofps=25
  77. oac=mp3lame=yes
  78. lameopts=vbr=3:br=128
  79. [xvid-hq]
  80. profile-desc="MPEG4 (XviD) video MP3 audio HQ"
  81. ovc=xvid=yes
  82. xvidencopts=bitrate=5000:autoaspect=yes:chroma_opt=yes:vhq=4:bvhq=1:quant_type=mpeg
  83. ofps=25
  84. oac=mp3lame=yes
  85. lameopts=vbr=3:br=192
  86. [xvid-cartoon]
  87. profile-desc="MPEG4 (XviD) video MP3 audio Cartoon optimised"
  88. ovc=xvid=yes
  89. xvidencopts=bitrate=1200:autoaspect=yes:chroma_opt=yes:vhq=4:bvhq=1:quant_type=mpeg:cartoon=yes
  90. ofps=25
  91. oac=mp3lame=yes
  92. lameopts=vbr=3:br=128
  93. [divx]
  94. profile-desc="MPEG4 (DivX) video MP3 audio"
  95. ovc=lavc=yes
  96. lavcopts=mbd=2:trell=yes:v4mv=yes:vbitrate=1200:autoaspect=yes:acodec=mp3:abitrate=128
  97. # this is for compatibility with divx players, hint to use with other profiles
  98. ffourcc=DX50
  99. ofps=25
  100. oac=mp3lame=yes
  101. lameopts=vbr=3:br=128
  102. [wmv]
  103. profile-desc="WMV Good Quality"
  104. lavdopts=threads=2
  105. vf=pp=md,harddup
  106. ovc=lavc=1
  107. oac=lavc=1
  108. lavcopts=vcodec=wmv2:vqscale=4:acodec=wmav2:abitrate=128
  109. of=lavf=yes
  110. [lameaudio]
  111. profile-desc="Lame Audio"
  112. oac=mp3lame=1
  113. srate=48000
  114. lameopts=abr=yes:br=128
  115. [hd-1080p]
  116. profile-desc="HD 1080p video AC3 audio"
  117. ovc=xvid=1
  118. vf=pp=l5,crop=1920:1056
  119. xvidencopts=vhq=4:bvhq=1:nogmc=1:me_quality=6:chroma_me=1:chroma_opt=1:min_iquant=1:min_pquant=1:fixed_quant=5
  120. oac=lavc=1
  121. lavcopts=acodec=ac3:abitrate=384
  122. [dvrms2xvid]
  123. profile-desc="Convert DVRMS to XviD"
  124. profile=lameaudio
  125. quiet=1
  126. demuxer=35
  127. sws=2
  128. vfm=ffmpeg
  129. vf=pp=md,scale=624:352
  130. ovc=xvid=1
  131. xvidencopts=threads=2:bitrate=900:vhq=1:max_bframes=2
  132. lavdopts=threads=2
  133. noodml=1
  134. forceidx=1
  135. ffourcc=DX50
  136. [dvd]
  137. profile-desc="MPEG2 (PAL DVD) video AC3 audio"
  138. ovc=lavc=yes
  139. lavcopts=vcodec=mpeg2video:vrc_buf_size=1835:vrc_maxrate=9800:vbitrate=5000:keyint=15:trell=yes:mbd=2:vstrict=0:acodec=ac3:abitrate=192:autoaspect=yes
  140. of=mpeg=yes
  141. mpegopts=format=dvd:tsaf=yes
  142. vf=scale=720:576,harddup
  143. ofps=25
  144. srate=48000
  145. af=lavcresample=48000
  146. oac=lavc=yes
  147. [dvdi]
  148. profile-desc="MPEG2 (PAL DVD interlaced source) video AC3 audio"
  149. ovc=lavc=yes
  150. lavcopts=vcodec=mpeg2video:vrc_buf_size=1835:vrc_maxrate=9800:vbitrate=5000:keyint=15:trell=yes:mbd=2:vstrict=0:acodec=ac3:abitrate=192:autoaspect=yes:ildct=yes:ilme=yes
  151. of=mpeg=yes
  152. mpegopts=format=dvd:tsaf=yes
  153. vf=scale=720:576,harddup
  154. ofps=25
  155. srate=48000
  156. af=lavcresample=48000
  157. oac=lavc=yes
  158. [dvd-wide]
  159. profile-desc="MPEG2 (PAL DVD wide screen source) video AC3 audio"
  160. ovc=lavc=yes
  161. lavcopts=vcodec=mpeg2video:vrc_buf_size=1835:vrc_maxrate=9800:vbitrate=5000:keyint=15:trell=yes:mbd=2:vstrict=0:acodec=ac3:abitrate=192
  162. of=mpeg=yes
  163. mpegopts=format=dvd:tsaf=yes
  164. vf=scale=720:-2,expand=720:576,harddup
  165. ofps=25
  166. srate=48000
  167. af=lavcresample=48000
  168. oac=lavc=yes
  169. [dvd-16_9]
  170. profile-desc="MPEG2 (PAL DVD 16/9) video AC3 audio"
  171. ovc=lavc=yes
  172. lavcopts=vcodec=mpeg2video:vrc_buf_size=1835:vrc_maxrate=9800:vbitrate=5000:keyint=15:trell=yes:mbd=2:vstrict=0:acodec=ac3:abitrate=192:aspect=16/9
  173. of=mpeg=yes
  174. mpegopts=format=dvd:tsaf=yes
  175. vf=scale=720:576,harddup
  176. ofps=25
  177. srate=48000
  178. af=lavcresample=48000
  179. oac=lavc=yes
  180. [webcam]
  181. profile-desc="Webcam capture with MJPEG/nosound"
  182. oac=pcm=1
  183. ovc=lavc=1
  184. lavcopts=vcodec=mjpeg
  185. tv=driver=v4l:input=0:width=320:height=240:device=/dev/video0:outfmt=uyvy:fps=24
  186. vf=pp=hb:a/vb:a,hqdn3d,mirror
  187. nosound=1
  188. [webcam-v4l2]
  189. profile-desc="Webcam capture with MJPEG/nosound (V4L2)"
  190. oac=pcm=1
  191. ovc=lavc=1
  192. lavcopts=vcodec=mjpeg
  193. tv=driver=v4l2:input=0:width=320:height=240:device=/dev/video0:outfmt=uyvy:fps=24
  194. vf=pp=hb:a/vb:a,hqdn3d,mirror
  195. nosound=1
  196. [tv]
  197. profile-desc="TV capture with MP3 audio"
  198. tv=driver=v4l:normid=4:width=640:height=480:chanlist=europe-west
  199. tv=alsa=yes:adevice=hw.1,1:audiorate=32000
  200. srate=32000
  201. vf=crop=624:464:0:8,pp=lb,denoise3d,decimate
  202. oac=mp3lame=1
  203. ovc=lavc=1
  204. lavcopts=vqscale=5
  205. lameopts=q=6
  206. [tv-v4l2]
  207. profile-desc="TV capture with MP3 audio (V4L2)"
  208. tv=driver=v4l2:normid=4:width=640:height=480:chanlist=europe-west
  209. tv=alsa=yes:adevice=hw.1,1:audiorate=32000
  210. srate=32000
  211. vf=crop=624:464:0:8,pp=lb,denoise3d,decimate
  212. oac=mp3lame=1
  213. ovc=lavc=1
  214. lavcopts=vqscale=5
  215. lameopts=q=6
  216. [psp]
  217. profile-desc="PSP H264/AAC (AVC/AAC)"
  218. sws=9
  219. vf=pullup,softskip,scale=368:208,harddup,unsharp=l3x3:0.7
  220. ofps=30000/1001
  221. ovc=x264=1
  222. x264encopts=bitrate=650:global_header:partitions=all:trellis=1:vbv_maxrate=768:vbv_bufsize=2000:level_idc=30
  223. oac=faac=1
  224. faacopts=br=128:mpeg=4:object=2:raw=yes
  225. of=lavf=1
  226. lavfopts=format=psp
  227. [psp-lavc]
  228. profile-desc="PSP H264/AAC (AVC/AAC) with FFmpeg"
  229. vf=hqdn3d,scale=368:208
  230. af=lavcresample=48000
  231. ofps=30000/1001
  232. ovc=lavc=1
  233. oac=lavc=1
  234. lavcopts=aglobal=1:vglobal=1:vcodec=libx264:acodec=libfaac:vbitrate=320:abitrate=97:coder=1
  235. of=lavf=1
  236. lavfopts=format=psp
  237. [psp-fast]
  238. profile-desc="PSP MPEG4/AAC Medium Quality"
  239. lavdopts=threads=2
  240. vf=pp=md,scale=368:208,harddup
  241. af=lavcresample=24000
  242. ofps=30000/1001
  243. ovc=lavc=1
  244. oac=lavc=1
  245. lavcopts=aglobal=1:vglobal=1:vcodec=mpeg4:acodec=libfaac:vbitrate=500
  246. of=lavf=1
  247. lavfopts=format=psp
  248. [youtube]
  249. profile-desc="YouTube output"
  250. ovc=lavc=1
  251. oac=lavc=1
  252. vf-add=scale=320:200
  253. vf-add=expand=320:240
  254. lavcopts=vhq=yes:vcodec=mpeg4:vrc_buf_size=1835:vrc_maxrate=350:vbitrate=350:v4mv=yes:aspect=4/3:trell=yes:cbp=yes
  255. ffourcc=XVID
  256. [pda-z-napisami]
  257. profile-desc="PDA"
  258. ovc=lavc=1
  259. lavcopts=vcodec=mpeg4:vbitrate=300
  260. oac=mp3lame=1
  261. lameopts=preset=112
  262. vf=scale=320:-3
  263. af=resample=44100:0:0
  264. [mswin]
  265. profile-desc="MS Win compatible MPEG1 video MPEG2 audio"
  266. of=mpeg=1
  267. mpegopts=format=mpeg1:tsaf=1
  268. oac=lavc=1
  269. lavcopts=acodec=mp2:abitrate=192
  270. ovc=lavc=1
  271. lavcopts=vcodec=mpeg1video:trell=1:autoaspect=1
  272. vf=hqdn3d=2:1:2
  273. [treo650]
  274. profile-desc="Treo 650 compatible"
  275. aspect=4:3
  276. ovc=lavc=1
  277. lavcopts=vcodec=mpeg4:mbd=2:turbo=yes:vbitrate=300:aspect=4/3:acodec=libmp3lame:abitrate=96
  278. oac=lavc=1
  279. vf-pre=pp=lb
  280. vf=scale=320:200
  281. af=volnorm=1