comparison DOCS/man/en/mplayer.1 @ 17309:af441715a83c

Expand the configuration file section to include MEncoder examples.
author diego
date Wed, 04 Jan 2006 15:01:30 +0000
parents 1c4be3f80a09
children 25fdd83982a4
comparison
equal deleted inserted replaced
17308:59452efe579c 17309:af441715a83c
435 .RE 435 .RE
436 .PD 1 436 .PD 1
437 . 437 .
438 . 438 .
439 .\" -------------------------------------------------------------------------- 439 .\" --------------------------------------------------------------------------
440 .\" Options 440 .\" Usage
441 .\" -------------------------------------------------------------------------- 441 .\" --------------------------------------------------------------------------
442 . 442 .
443 .SH "USAGE" 443 .SH "USAGE"
444 Every 'flag' option has a 'noflag' counterpart, e.g.\& the opposite of the 444 Every 'flag' option has a 'noflag' counterpart, e.g.\& the opposite of the
445 \-fs option is \-nofs. 445 \-fs option is \-nofs.
461 .br 461 .br
462 Or in a script: 462 Or in a script:
463 .br 463 .br
464 mplayer -ao pcm:file=%`expr length "$NAME"`%"$NAME" test.avi 464 mplayer -ao pcm:file=%`expr length "$NAME"`%"$NAME" test.avi
465 .PP 465 .PP
466 .
467 .\" --------------------------------------------------------------------------
468 .\" Configuration files
469 .\" --------------------------------------------------------------------------
470 .
471 .SH "CONFIGURATION FILES"
466 You can put all of the options in configuration files which will be read 472 You can put all of the options in configuration files which will be read
467 every time MPlayer/MEncoder is run. 473 every time MPlayer/MEncoder is run.
468 The system-wide configuration file 'mplayer.conf' is in your configuration 474 The system-wide configuration file 'mplayer.conf' is in your configuration
469 directory (e.g.\& /etc/\:mplayer or /usr/\:local/\:etc/\:mplayer), the user 475 directory (e.g.\& /etc/\:mplayer or /usr/\:local/\:etc/\:mplayer), the user
470 specific one is '~/\:.mplayer/\:config'. 476 specific one is '~/\:.mplayer/\:config'.
477 a '#' is considered a comment. 483 a '#' is considered a comment.
478 Options that work without values can be enabled by setting them to 'yes' 484 Options that work without values can be enabled by setting them to 'yes'
479 or '1' or 'true' and disabled by setting them to 'no' or '0' or 'false'. 485 or '1' or 'true' and disabled by setting them to 'no' or '0' or 'false'.
480 Even suboptions can be specified in this way. 486 Even suboptions can be specified in this way.
481 .PP 487 .PP
482 .I EXAMPLE: 488 .I EXAMPLE MPLAYER CONFIGURATION FILE:
489 .sp 1
483 .nf 490 .nf
484 # Use Matrox driver by default. 491 # Use Matrox driver by default.
485 vo=xmga 492 vo=xmga
486 # I love practicing handstands while watching videos. 493 # I love practicing handstands while watching videos.
487 flip=yes 494 flip=yes
488 # Decode/\:encode multiple files from png, 495 # Decode/\:encode multiple files from png,
489 # start with mf://filemask 496 # start with mf://filemask
490 mf=type=png:fps=25 497 mf=type=png:fps=25
491 # Eerie negative images are cool. 498 # Eerie negative images are cool.
492 vf=eq2=1.0:-0.8 499 vf=eq2=1.0:-0.8
493 # I want MEncoder to output to this filename by default. 500 .fi
501 .PP
502 .I "EXAMPLE MENCODER CONFIGURATION FILE:"
503 .sp 1
504 .nf
505 # Make MEncoder output to a default filename.
494 o=encoded.avi 506 o=encoded.avi
507 # The next 4 lines allow mencoder tv:// to start capturing immediately.
508 oac=pcm=yes
509 ovc=lavc=yes
510 lavcopts=vcodec=mjpeg
511 tv=driver=v4l2:input=1:width=768:height=576:device=/dev/video0:audiorate=48000
512 # more complex default encoding option set
513 lavcopts=vcodec=mpeg4:autoaspect=1
514 lameopts=aq=2:vbr=4
515 ovc=lavc=1
516 oac=lavc=1
517 passlogfile=pass1stats.log
518 noautoexpand=1
519 subfont-autoscale=3
520 subfont-osd-scale=6
521 subfont-text-scale=4
522 subalign=2
523 subpos=96
524 spuaa=20
495 .fi 525 .fi
496 .PP 526 .PP
497 You can also write file-specific configuration files. 527 You can also write file-specific configuration files.
498 If you wish to have a configuration file for a file called 'movie.avi', create a file 528 If you wish to have a configuration file for a file called 'movie.avi', create a file
499 named 'movie.avi.conf' with the file-specific options in it and put it in 529 named 'movie.avi.conf' with the file-specific options in it and put it in
500 ~/.mplayer/ or in the same directory as the file. 530 ~/.mplayer/ or in the same directory as the file.
501 . 531 .
502 . 532 .\" --------------------------------------------------------------------------
533 .\" Options
534 .\" --------------------------------------------------------------------------
503 . 535 .
504 .SH "GENERAL OPTIONS" 536 .SH "GENERAL OPTIONS"
505 . 537 .
506 .TP 538 .TP
507 .B \-codecs-file <filename> (also see \-afm, \-ac, \-vfm, \-vc) 539 .B \-codecs-file <filename> (also see \-afm, \-ac, \-vfm, \-vc)