MPlayer(1) MPlayer(1) mplayer - mencoder - mplayer [] [|URL||-] mplayer [] 1 [ ] [2] [ ] mplayer [] { " " } [ ] mplayer [dvd|dvdnav]://[|[_]-_][/] [] mplayer vcd://[/] mplayer tv://[][/] [] mplayer radio://[ ][/capture] [] mplayer pvr:// [] mplayer dvb://[_@] [] mplayer mf://[_|@__] [-mf ] [] mplayer [cdda|cddb]://[-._][:][/] [] mplayer cue://[:] [] mplayer [file|mms[t]|http|http_proxy|rt[s]p|ftp|udp|unsv|icyx|noicyx|smb]:// [:@]URL[:] [] mplayer sdp:// [] mplayer mpst://[:]/URL [] mplayer tivo:///[list|llist|fsid] [] gmplayer [] [-skin skin] mencoder [] [|URL|-] [-o | file:// | smb://[:@host]/__] mencoder [] 1 [ ] [2] [ ] mplayer Linux ( , ). MPEG/VOB, AVI, ASF/WMA/WMV, RM, QT/MOV/MP4, Ogg/OGM, MKV, VIVO, FLI, NuppelVideo, yuv4mpeg, FILM RoQ , . VCD, SVCD, DVD, 3ivx, DivX 3/4/5, WMV H.264 . MPlayer . X11, Xv, DGA, OpenGL, SVGAlib, fbdev, AAlib, libcaca, DirectFB, Quartz, Mac OS X CoreVideo, GGI, SDL ( ), VESA ( VESA- , X11), - ( Matrox, 3dfx b ATI) MPEG, Siemens DVB, Hauppauge PVR (IVTV), DXR2 DXR3/Hollywood+. , . MPlayer onscreen display (OSD) , . /ISO8859-1,2 (, , , ..), 12 (MicroDVD, SubRip, OGM, SubViewer, Sami, VPlayer, RT, SSA, AQTitle, JACOsub, PJS : MPsub) DVD (SPU streams, VOBsub Closed Captions). mencoder (MPlayer Media Encoder, MPlayer) , , MPlayer' ( ) , MPlayer' ( ). MPEG-4 (DivX/Xvid), libavcodec PCM/MP3/VBRMP3 1, 2 3 . , , (, , , , , , , RGB/YUV ) . gmplayer MPlayer . , MPlayer. , MPlayer, . HTML MPlayer , , , MPlayer' , , ( LIRC). -input, . <- -> / 10 . up down / 1 . pgup pgdown / 10 . [ ] / 10%. { } / . backspace . < > / . ENTER , . HOME END / INS DEL ( ASX) / . p / SPACE ( ). . . , ( ). q / ESC . U Stop playing (and quit if -idle is not used). ( , -idle). + - +/- 0.1 . / * / . 9 0 / . ( ) , / . m . _ ( MPEG-TS, AVI libavformat) . # ( DVD, MPEG, Matroska, AVI libavformat) . TAB ( MPEG-TS libavformat) . f ( -fs). T ` ` ( -ontop). w e / pan-and-scan. o OSD: / / + / + + . d : / / ( -framedrop -hardframedrop). v . j . y g / . F " ". a : / / . x z +/- 0.1 . r t /. i ( -edlout) EDL . s ( -vf screenshot) . I OSD. ! @ / . D ( -vo xvmc, -vo vdpau, -vf yadif, -vf kerndeint) / . A DVD. ( (xv, (x)vidix, (x)mga, ..), (-vf eq -vf eq2) hue (-vf hue). 1 2 . 3 4 . 5 6 . 7 8 . ( quartz corevideo). command + 0 . command + 1 . command + 2 . command + f ( -fs). command + [ command + ] . ( .) PAUSE . STOP . PREVIOUS NEXT / 1 . ( , MPlayer TV .) h k / . n . u . ( , : TV .) X / . Q W / . button 3 button 4 / 1 . button 5 button 6 / . / 10 . up down / 1 . button 1 button 2 OSD: / / + / + + . button 3 button 4 / . 'flag' 'noflag', -fs -nofs. ( XXX), XXX, XXX. : (, , -ao pcm ) GUI. : %n%__n : mplayer -ao pcm:file=%10%C:test.wav test.avi : mplayer -ao pcm:file=%`expr length "$NAME"`%"$NAME" test.avi , MPlayer/MEncoder . 'mplayer.conf' ( /etc/mplayer /usr/local/etc/ mplayer), - '~/.mplayer/config'. MEncoder 'mencoder.conf' ( /etc/mplayer /usr/local/etc/ mplayer), - '~/.mplayer/mencoder.conf'. , . : 'option=<>', '#' . , , 'yes','1' 'true' 'no','0' 'false'. . . 'movie.avi', 'movie.avi.conf' ~/.mplayer/. , -use-filedir-conf ( , . MPLAYER: # Use Matrox driver by default. vo=xmga # I love practicing handstands while watching videos. flip=yes # Decode/encode multiple files from PNG, # start with mf://filemask mf=type=png:fps=25 # Eerie negative images are cool. vf=eq2=1.0:-0.8 MENCODER: # Make MEncoder output to a default filename. o=encoded.avi # The next 4 lines allow mencoder tv:// to start capturing immediately. oac=pcm=yes ovc=lavc=yes lavcopts=vcodec=mjpeg tv=driver=v4l2:input=1:width=768:height=576:device=/dev/video0:audiorate=48000 # more complex default encoding option set lavcopts=vcodec=mpeg4:autoaspect=1 lameopts=aq=2:vbr=4 ovc=lavc=1 oac=lavc=1 passlogfile=pass1stats.log noautoexpand=1 subfont-autoscale=3 subfont-osd-scale=6 subfont-text-scale=4 subalign=2 subpos=96 spuaa=20 . , , '[my-profile]'. . ( -profile help) profile-desc. 'default', . MPLAYER: [protocol.dvd] profile-desc=" dvd:// " vf=pp=hb/vb/dr/al/fd alang=en [protocol.dvdnav] profile-desc=" dvdnav:// " profile=protocol.dvd mouse-movements=yes nocache=yes [extension.flv] profile-desc=" .flv " flip=yes [vo.pnm] outdir=/tmp [ao.alsa] device=spdif MENCODER: [mpeg4] profile-desc=" MPEG4" ovc=lacv=yes lavcopts=vcodec=mpeg4:vbitrate=1200 [mpeg4-hq] profile-desc=" HQ MPEG4" profile=mpeg4 lavcopts=mbd=2:trell=yes:v4mv=yes -codecs-file < > ( -afm, -ac, -vfm, -vc) codecs.conf. -include < > , , . -list-options . -msgcharset <> ( : ). , --charset configure. "noconv" ( iconv). : . MPLAYER_CHARSET . -msgcolor , ANSI. -msglevel >:<>=<>:...> . , 'all', , . '-msglevel help' . : , , , , -msglevel . MPLAYER_VERBOSE, . : -1 0 1 2 3 4 5 ( ) 6 7 2 8 3 9 4 -msgmodule . -noconfig <> . : -include -use-filedir-conf, . : all gui ( GUI) GUI system user -quiet ; , .. A: 0.7 V: 0.6 A-V: 0.068 ...). , (.. \r). -priority ( Windows OS/2) MPlayer , Windows OS/2. : idle|belownormal|normal|abovenormal|high|realtime : realtime . -profile <1,2,...> (), -profile help . -really-quiet ( -quiet) , -quiet. GUI . -show-profile <> . -use-filedir-conf . : , . -v -v . ( MPLAYER) -autoq <> ( -vf [s]pp) CPU. , , . . -vf [s]pp , . -autosync A/V . -autosync 0 ( ) , . -autosync 1 , A/V . , -nosound, 1. , -nosound . -autosync 30, , . , A/V , 1 2 . A/V . -benchmark CPU . -nosound -vo null . : MPlayer ( , fps). -colorkey <> colorkey RGB . 0x000000 , 0xffffff - . cvidix, fbdev, svga, vesa, winvidix, xmga, xvidix, xover, xv ( -vo xv:ck), xvmc ( -vo xv:ck) directx . -nocolorkey colorkey. cvidix, fbdev, svga, vesa, winvidix, xmga, xvidix, xover, xv ( -vo xv:ck), xvmc ( -vo xv:ck) directx . -correct-pts () MPlayer , , , . , , -ass , , -correct-pts , , . . -crash-debug ( ) gdb SIGTRAP. --enable-crash-debug. -doubleclick-time ( : 300). 0, , ( -vo directx). : , MOUSE_BTN0_DBL MOUSE_BTN0-MOUSE_BTN0_DBL. -edlout <> (EDL). , 'i', . EDL. http://www.mplayerhq.hu/DOCS/HTML/ru/edl.html. -enqueue ( GUI) , , . -fixed-vo ( () ). . fixed-vo: gl, gl2, mga, svga, x11, xmga, xv, xvidix dfbmga. -framedrop ( -hardframedrop, -nocorrect-pts) A/V . . - . -(no)gui GUI ( ). . . -h, -help, --help . -hardframedrop ( -nocorrect-pts) ( ). ! , , , libmpeg2 , "-vc ffmpeg12,". -heartbeat-cmd , 30 system(), .. . : MPlayer - , ( , , , "." , , Windows). (.. -vo null, -novideo). "" , X API ( -stop-xscreensaver). , X API. xscreensaver: mplayer -heartbeat-cmd "xscreensaver-command -deactivate" file GNOME screensaver: mplayer -heartbeat-cmd "gnome-screensaver-command -p" file -identify -msglevel identify=4 . , . , -msglevel identify=6. DVD, , , ID . -frames 0 . TOOLS/midentify.sh MPlayer () . -idle ( -slave) , MPlayer . , MPlayer . -input <> . ~/.mplayer/. : . : conf=<_> , ~/.mplayer/input.conf. ~/ .mplayer/<_> , . ar-dev=<> Apple ( , Linux). ar-delay (0 ). ar-rate , . (no)default-bindings , MPlayer . keylist , . cmdlist , . js-dev ( : /dev/input/js0). file=<_> . FIFO. : FIFO, MPlayer , 'echo "seek 10" > mp_pipe', . -key-fifo-size <2-65000> FIFO, ( : 7). FIFO n (n-1) . , ( " " ). , MPlayer . , 2 Linux 1024 Windows. -lircconf <_> ( LIRC) LIRC ( : ~/.lircrc). -list-properties . -loop <> . 0 - . -menu ( OSD ) OSD . -menu-cfg <_> ( OSD ) menu.conf. -menu-chroot <> ( OSD ) . : -menu-chroot /home /home (.. / , /home/user ). -menu-keepdir ( OSD ) . -menu-root <> ( OSD ) . -menu-startup ( OSD ) MPlayer. -mouse-movements MPlayer , . DVD . VO, X11 (x11, xv, xvmc, etc.) gl, gl2, direct3d corevideo. -noar Apple (AppleIR). -noconsolecontrols MPlayer. . , -. , , /dev/stdin ( ), stdin stdin loadfile loadlist. -nojoystick . -nolirc LIRC. -nomouseinput / ( mozplayerxp ). -rtc ( RTC) Linux RTC ( - /dev/rtc) . 1/1024 . Linux, , . -playing-msg <> . : ${NAME} NAME. ?(NAME:TEXT) TEXT NAME. ?(!NAME:TEXT) TEXT NAME. -playlist <_> (ASX, Winamp, SMIL, ---- ). : , . FIXME: . -rtc-device <> RTC . -shuffle . -skin <> ( GUI) , , , /usr/local/share/mplayer/skins/ ~/.mplayer/skins/. : -skin fittyfene /usr/local/share/mplayer/ skins/fittyfene ~/.mplayer/skins/ fittyfene. -slave ( -input) , MPlayer . , MPlayer , (\n). : -input cmdlist DOCS/tech/slave.txt. , ; , , -input nodefault-binds:conf=/dev/null. -softsleep , , MPlayer . , RTC. CPU. -sstep <> <> . , . MPlayer , . / -a52drc <> Dynamic Range Compression[ ] AC-3. <> - 0 1, 0 , 1 ( ) ( ). , AC-3 . -aid ( -alang) (MPEG: 0-31, AVI/OGM: 1-99, ASF/RM: 0-127, VOB(AC-3): 128-159, VOB(LPCM): 160-191, MPEG-TS 17-8190). MPlayer ID, (-v). MPEG-TS , MPlayer/MEncoder ( ) . -ausid ( -alang) . 0x55..0x75 MPEG-TS ( libavformat). , , ( ) , . MPlayer ID -identify. -alang < [, ,...]> ( -aid) . . DVD ISO 639-1 , Matroska, MPEG-TS NUT ISO 639-2 , OGM . MPlayer , (-v). : mplayer dvd://1 -alang hu,en DVD , . mplayer -alang jpn example.mkv Matroska . -audio-demuxer <[+]> ( -audiofile) -audiofile. '+' , ! , -audio-demuxer help. ID , libmpdemux/demuxer.h. -audio-demuxer audio -audio-demuxer 17 MP3. -audiofile < > (WAV, MP3 Ogg Vorbis) . -audiofile-cache <> , -audiofile, . -reuse-socket ( udp://) , . -bandwidth <> ( ) ( , ). , . Real RTSP , , . -cache <> ( ) URL. . -nocache . -cache-min <> , <> . -cache-seek-min <> <> , MPlayer ( : 50). -cdda <1:2> ( CDDA) CD Audio. : speed=<> CD. paranoia=<0-2> paranoia. , , , . 0: ( ) 1: 2: generic-dev=<> SCSI . sector-size=<> . overlap=<> <> . toc-bias , 1, TOC, LBA 0. Toshiba, . toc-offset=<> <> , . . (no)skip ( ) . -cdrom-device < > CD-ROM ( : /dev/cdrom). -channels <> ( -af channels) ( : 2). MPlayer . . AC-3 ( DVD). liba52 . , channels. : ( AC-3), (surround) ( OSS). : 2 stereo 4 surround 6 full 5.1 -chapter >[-. >] ( dvd:// dvdnav://) . ( : 1). -cookies ( ) cookie HTTP . -cookies-file <> ( ) HTTP cookie <> ( : ~/.mozilla/ ~/.netscape/) . Netscape. -delay <> ( ) , - . , -audio-delay MEncoder. : MEncoder -ovc copy; -audio-delay. -ignore-start AVI . MPlayer , -audio-delay. MEncoder ; -audio-delay . , Mencoder , . -demuxer <[+]> . '+' , ! -demuxer help. ID , libmpdemux/ demuxer.h. -dumpaudio ( MPlayer) ./stream.dump ( MPEG/AC-3, ). -dumpaudio, -dumpvideo, -dumpstream, . -dumpfile <> ( MPlayer) . -dumpaudio / -dumpvideo / -dumpstream. -dumpstream ( MPlayer) ./stream.dump. DVD . -dumpaudio, -dumpvideo, -dumpstream, . -dumpvideo ( MPlayer) ./stream.dump ( ). -dumpaudio, -dumpvideo, -dumpstream, . -dvbin ( DVB) DVB, : card=<1-4> 1-4 (default: 1). file=<> MPlayer <>. : ~/.mplayer/ channels.conf.{sat,ter,cbl,atsc} ( ) ~/.mplayer/channels.conf. timeout=<1-30> ( : 30). -dvd-device < > ( DVD) DVD .iso ( : /dev/dvd). , , DVD (, vobcopy). -dvd-speed < /> ( DVD) DVD ( : 0, ). DVD 1350/, 8x 10800/. , DVD 2700/ . MPlayer . , 100 1350/, -dvd-speed 8 10800/. : DVD . -dvdangle > ( DVD) DVD , . MPlayer ( : 1). -edl <> (EDL) . / . http://www.mplayerhq.hu/DOCS/HTML/ru/edl.html . -endpos <[[hh:]mm:]ss[.ms]|size[b|kb|mb]> ( -ss -sb) . : MEncoder , . -ss, -endpos -ss . : -endpos 56 56 . -endpos 01:10:00 1 10 . -ss 10 -endpos 56 1 6 . -endpos 100mb 100 . -forceidx . (A/V , ..). , . MEncoder ( ). : , (.. stdin, pipe, ..). -fps < > . , . -frames <> / <> , . -hr-mp3-seek ( MP3) MP3. MP3 , A/V .. , , . -idx ( -forceidx) , , . / . : (.. stdin, pipe, ..). -noidx . MEncoder . -ipv4-only-proxy ( ) IPv6 . - IPv4 . -loadidx < > , -saveidx. , , AVI. MPlayer , AVI , . : , MPlayer OpenDML. -mc </> A-V ( ) -mf <1:2:...> PNG JPEG . : w=<> ( : ) h=<> ( : ) fps=<> fps ( : 25) type=<> (: jpeg, png, tga, sgi) -ni ( AVI) AVI ( AVI ). -nobps ( AVI) / A-V . AVI . -noextbased . , () ( , ), . . -passwd <> ( see -user) ( ) HTTP . -prefer-ipv4 ( ) IPv4 . IPv6. -prefer-ipv6 ( IPv6 ) IPv6 . IPv4. -psprobe < > MPEG-PS MPEG-PES , , MPlayer . EVO VDR , H.264 . -pvr <1:2:...> ( PVR) PVR. MPEG , V4L2. Hauppauge WinTV PVR-150/250/350/500 , IVTV, PVR . , Linux 2.6.18 MPEG V4L2. MPEG MPlayer/MEncoder, 'pvr://' URL . : aspect=<0-3> : 0: 1:1 1: 4:3 ( ) 2: 16:9 3: 2.21:1 arate=<32000-48000> ( : 48000 , : 32000, 44100 48000 ). alayer=<1-5> MPEG[MPEG layer]( : 2). abitrate=<32-448> / ( : 384). amode=<> . : 'stereo', 'joint_stereo', 'dual' 'mono' ( : stereo). vbitrate=<> / ( : 6). vmode=<> : vbr: ( ) cbr: vpeak=<> / ( VBR , : 6.6). fmt=<> MPEG : ps: MPEG-2 ( ) ts: MPEG-2 mpeg1: MPEG-1 vcd: Video CD svcd: Super Video CD dvd: DVD -radio <1:2:...> ( ) . MPlayer 'radio://<>' ( channels) 'radio://< >' ( channels ) URL. , MPlayer '-v'. , 'radio://< >/capture'. capture, line-in . capture , . : device=<> ( : /dev/radio0 Linux /dev/tuner0 *BSD). driver=<> ( : v4l2 , v4l). v4l v4l2. volume=<0..100> ( : 100) freq_min=<> ( *BSD BT848) (-: 87.50) freq_max=<> ( *BSD BT848) ( : 108.00) channels=<>-<>,<>-<>,... . _ ( ;-). OSD, radio_step_channel radio_set_channel ( LIRC). , URL . : radio://1, radio://104.4, radio_set_channel 1 adevice=<> ( ) , . , URL capture. ALSA hw=<>.<>. '=', ALSA, OSS. arate=<> ( ) ( : 44100). : , -rawaudio rate=<> , arate. ( ), arate (, 48000,44100,32000,...). achannels=<> ( ) . -rawaudio <1:2:...> . -demuxer rawaudio. CD, 44 16- . AC-3 -rawaudio format=0x2000 -demuxer rawaudio. : channels=<> rate=<> samplesize=<> bitrate=<> rawaudio format=<> (fourcc) . -rawvideo format=help . -rawvideo <1:2:...> . -demuxer rawaudio. : fps=<> ( : 25.0) sqcif|qcif|cif|4cif|pal|ntsc w=<> h=<> i420|yv12|yuy2|y8 format=<> (fourcc) size=<> : mplayer foreman.qcif -demuxer rawvideo -rawvideo qcif "foreman". mplayer sample-720x576.yuv -demuxer rawvideo -rawvideo w=720:h=576 YUV . -rtsp-port 'rtsp://' URL . , RTSP . -rtsp-destination rtsp://' URL IP . RTSP , RTP . RTSP , -v, , IP MPlayer, . -rtsp-stream-over-tcp ( LIVE555 NEMESI) 'rtsp://' URL , RTP RTCP TCP ( TCP , RTSP). , , UDP ( http://www.live555.com/mplayer/). -saveidx <> <>. AVI . : , MPlayer OpenDML. -sb < > ( -ss) . CD-ROM VOB . -speed <0.01-100> . -oac copy. -srate <> (, ). , resample lavcresample. -af-adv. , , . -ss