comparison DOCS/man/en/mplayer.1 @ 17331:7a718d3fd1fd

Reformat examples to prevent linebreaks and hyphenation. When occurring at the wrong spot they can be extremely confusing for novices.
author diego
date Fri, 06 Jan 2006 14:03:51 +0000
parents 01e169aaaa61
children 88adbc28f60b
comparison
equal deleted inserted replaced
17330:a31be8f40fc2 17331:7a718d3fd1fd
9436 .\" Examples 9436 .\" Examples
9437 .\" -------------------------------------------------------------------------- 9437 .\" --------------------------------------------------------------------------
9438 . 9438 .
9439 .SH EXAMPLES OF MPLAYER USAGE 9439 .SH EXAMPLES OF MPLAYER USAGE
9440 . 9440 .
9441 .TP 9441 .PP
9442 .B Quickstart DVD playing: 9442 .B Quickstart DVD playing:
9443 .nf
9443 mplayer dvd://1 9444 mplayer dvd://1
9444 . 9445 .fi
9445 .TP 9446 .
9447 .PP
9446 .B Play in Japanese with English subtitles: 9448 .B Play in Japanese with English subtitles:
9449 .nf
9447 mplayer dvd://1 \-alang ja \-slang en 9450 mplayer dvd://1 \-alang ja \-slang en
9448 . 9451 .fi
9449 .TP 9452 .
9453 .PP
9450 .B Play only chapters 5, 6, 7: 9454 .B Play only chapters 5, 6, 7:
9455 .nf
9451 mplayer dvd://1 \-chapter 5-7 9456 mplayer dvd://1 \-chapter 5-7
9452 . 9457 .fi
9453 .TP 9458 .
9459 .PP
9454 .B Play only titles 5, 6, 7: 9460 .B Play only titles 5, 6, 7:
9461 .nf
9455 mplayer dvd://5-7 9462 mplayer dvd://5-7
9456 . 9463 .fi
9457 .TP 9464 .
9465 .PP
9458 .B Play a multiangle DVD: 9466 .B Play a multiangle DVD:
9467 .nf
9459 mplayer dvd://1 \-dvdangle 2 9468 mplayer dvd://1 \-dvdangle 2
9460 . 9469 .fi
9461 .TP 9470 .
9471 .PP
9462 .B Play from a different DVD device: 9472 .B Play from a different DVD device:
9473 .nf
9463 mplayer dvd://1 \-dvd-device /dev/\:dvd2 9474 mplayer dvd://1 \-dvd-device /dev/\:dvd2
9464 . 9475 .fi
9465 .TP 9476 .
9477 .PP
9466 .B Play DVD video from a directory with VOB files: 9478 .B Play DVD video from a directory with VOB files:
9479 .nf
9467 mplayer dvd://1 \-dvd-device /path/\:to/\:directory/ 9480 mplayer dvd://1 \-dvd-device /path/\:to/\:directory/
9468 . 9481 .fi
9469 .TP 9482 .
9483 .PP
9470 .B Copy a DVD title to hard disk, saving to file "title1.vob": 9484 .B Copy a DVD title to hard disk, saving to file "title1.vob":
9485 .nf
9471 mplayer dvd://1 \-dumpstream \-dumpfile title1.vob 9486 mplayer dvd://1 \-dumpstream \-dumpfile title1.vob
9472 . 9487 .fi
9473 .TP 9488 .
9489 .PP
9474 .B Stream from HTTP: 9490 .B Stream from HTTP:
9491 .nf
9475 mplayer http://mplayer.hq/\:example.avi 9492 mplayer http://mplayer.hq/\:example.avi
9476 . 9493 .fi
9477 .TP 9494 .
9495 .PP
9478 .B Stream using RTSP: 9496 .B Stream using RTSP:
9497 .nf
9479 mplayer rtsp://server.example.com/\:streamName 9498 mplayer rtsp://server.example.com/\:streamName
9480 . 9499 .fi
9481 .TP 9500 .
9501 .PP
9482 .B Convert subtitles to MPsub format: 9502 .B Convert subtitles to MPsub format:
9503 .nf
9483 mplayer dummy.avi \-sub source.sub \-dumpmpsub 9504 mplayer dummy.avi \-sub source.sub \-dumpmpsub
9484 . 9505 .fi
9485 .TP 9506 .
9507 .PP
9486 .B Convert subtitles to MPsub format without watching the movie: 9508 .B Convert subtitles to MPsub format without watching the movie:
9487 mplayer /dev/\:zero \-rawvideo pal:fps=xx -demuxer rawvideo \-vc null \-vo null \-noframedrop 9509 .nf
9488 \-benchmark \-sub source.sub \-dumpmpsub 9510 mplayer /dev/\:zero \-rawvideo pal:fps=xx -demuxer rawvideo \-vc null \-vo null \-noframedrop \-benchmark \-sub source.sub \-dumpmpsub
9489 . 9511 .fi
9490 .TP 9512 .
9513 .PP
9491 .B input from standard V4L: 9514 .B input from standard V4L:
9492 mplayer tv:// \-tv driver=v4l:width=640:height=480:outfmt=i420 \-vc rawi420 9515 .nf
9493 \-vo xv 9516 mplayer tv:// \-tv driver=v4l:width=640:height=480:outfmt=i420 \-vc rawi420 \-vo xv
9494 . 9517 .fi
9495 .TP 9518 .
9519 .PP
9496 .B Playback on Zoran cards (old style, deprecated): 9520 .B Playback on Zoran cards (old style, deprecated):
9521 .nf
9497 mplayer \-vo zr \-vf scale=352:288 file.avi 9522 mplayer \-vo zr \-vf scale=352:288 file.avi
9498 . 9523 .fi
9499 .TP 9524 .
9525 .PP
9500 .B Playback on Zoran cards (new style): 9526 .B Playback on Zoran cards (new style):
9527 .nf
9501 mplayer \-vo zr2 \-vf scale=352:288,zrmjpeg file.avi 9528 mplayer \-vo zr2 \-vf scale=352:288,zrmjpeg file.avi
9502 . 9529 .fi
9503 .TP 9530 .
9531 .PP
9504 .B Play a 6-channel AAC file with only two speakers: 9532 .B Play a 6-channel AAC file with only two speakers:
9533 .nf
9505 mplayer \-rawaudio format=0xff \-demuxer rawaudio \-af pan=2:.32:.32:.39:.06:.06:.39:.17:-.17:-.17:.17:.33:.33 adts_he-aac160_51.aac 9534 mplayer \-rawaudio format=0xff \-demuxer rawaudio \-af pan=2:.32:.32:.39:.06:.06:.39:.17:-.17:-.17:.17:.33:.33 adts_he-aac160_51.aac
9535 .fi
9506 .br 9536 .br
9507 You might want to play a bit with the pan values (e.g multiply with a value) to 9537 You might want to play a bit with the pan values (e.g multiply with a value) to
9508 increase volume or avoid clipping. 9538 increase volume or avoid clipping.
9509 . 9539 .
9510 .SH EXAMPLES OF MENCODER USAGE 9540 .SH EXAMPLES OF MENCODER USAGE
9511 . 9541 .
9512 .TP 9542 .PP
9513 .B Encode DVD title #2, only selected chapters: 9543 .B Encode DVD title #2, only selected chapters:
9544 .nf
9514 mencoder dvd://2 \-chapter 10-15 \-o title2.avi \-oac copy \-ovc lavc \-lavcopts vcodec=mpeg4 9545 mencoder dvd://2 \-chapter 10-15 \-o title2.avi \-oac copy \-ovc lavc \-lavcopts vcodec=mpeg4
9515 . 9546 .fi
9516 .TP 9547 .
9548 .PP
9517 .B Encode DVD title #2, resizing to 640x480: 9549 .B Encode DVD title #2, resizing to 640x480:
9550 .nf
9518 mencoder dvd://2 \-vf scale=640:480 \-o title2.avi \-oac copy \-ovc lavc \-lavcopts vcodec=mpeg4 9551 mencoder dvd://2 \-vf scale=640:480 \-o title2.avi \-oac copy \-ovc lavc \-lavcopts vcodec=mpeg4
9519 . 9552 .fi
9520 .TP 9553 .
9554 .PP
9521 .B Encode DVD title #2, resizing to 512xHHH (keep aspect ratio): 9555 .B Encode DVD title #2, resizing to 512xHHH (keep aspect ratio):
9522 mencoder dvd://2 \-vf scale \-zoom \-xy 512 \-o title2.avi \-oac copy 9556 .nf
9523 \-ovc lavc \-lavcopts vcodec=mpeg4 9557 mencoder dvd://2 \-vf scale \-zoom \-xy 512 \-o title2.avi \-oac copy \-ovc lavc \-lavcopts vcodec=mpeg4
9524 . 9558 .fi
9525 .TP 9559 .
9560 .PP
9526 .B The same, but with bitrate set to 1800kbit and optimized macroblocks: 9561 .B The same, but with bitrate set to 1800kbit and optimized macroblocks:
9527 mencoder dvd://2 \-o title2.avi \-oac copy \-ovc lavc 9562 .nf
9528 \-lavcopts vcodec=mpeg4:mbd=1:vbitrate=1800 9563 mencoder dvd://2 \-o title2.avi \-oac copy \-ovc lavc \-lavcopts vcodec=mpeg4:mbd=1:vbitrate=1800
9529 . 9564 .fi
9530 .TP 9565 .
9566 .PP
9531 .B The same, but with MJPEG compression: 9567 .B The same, but with MJPEG compression:
9532 mencoder dvd://2 \-o title2.avi \-oac copy \-ovc lavc 9568 .nf
9533 \-lavcopts vcodec=mjpeg:mbd=1:vbitrate=1800 9569 mencoder dvd://2 \-o title2.avi \-oac copy \-ovc lavc \-lavcopts vcodec=mjpeg:mbd=1:vbitrate=1800
9534 . 9570 .fi
9535 .TP 9571 .
9572 .PP
9536 .B Encode all *.jpg files in the current directory: 9573 .B Encode all *.jpg files in the current directory:
9574 .nf
9537 mencoder "mf://*.jpg" \-mf fps=25 \-o output.avi \-ovc lavc \-lavcopts vcodec=mpeg4 9575 mencoder "mf://*.jpg" \-mf fps=25 \-o output.avi \-ovc lavc \-lavcopts vcodec=mpeg4
9538 . 9576 .fi
9539 .TP 9577 .
9578 .PP
9540 .B Encode from a tuner (specify a format with \-vf format): 9579 .B Encode from a tuner (specify a format with \-vf format):
9580 .nf
9541 mencoder \-tv driver=v4l:width=640:height=480 tv:// \-o tv.avi \-ovc raw 9581 mencoder \-tv driver=v4l:width=640:height=480 tv:// \-o tv.avi \-ovc raw
9542 . 9582 .fi
9543 .TP 9583 .
9584 .PP
9544 .B Encode from a pipe: 9585 .B Encode from a pipe:
9586 .nf
9545 rar p test-SVCD.rar | mencoder \-ovc lavc \-lavcopts vcodec=mpeg4:vbitrate=800 \-ofps 24 \- 9587 rar p test-SVCD.rar | mencoder \-ovc lavc \-lavcopts vcodec=mpeg4:vbitrate=800 \-ofps 24 \-
9588 .fi
9546 . 9589 .
9547 . 9590 .
9548 .\" -------------------------------------------------------------------------- 9591 .\" --------------------------------------------------------------------------
9549 .\" Bugs, authors, standard disclaimer 9592 .\" Bugs, authors, standard disclaimer
9550 .\" -------------------------------------------------------------------------- 9593 .\" --------------------------------------------------------------------------