How to Use mplayer

Source: Internet
Author: User
Tags file transfer protocol

1. Recording:
Mplayer MMS: // 202. ***/test. ASF-dumpstream-dumpfile mymovie. ASF

MMS, RTSP. http. FTP .... And save it as a mymovie. ASF file.
2. Convert the files that can be played by mplayer into AVI format:
Mencoder Yourfile. rm-OVC copy-OAC copy-O testout. Avi
3. How to convert an MP3 file:
Mplayer-vo null-ao PCM music. wmv lame-H audiodump.wav music.pdf
4. How to convert all images in a directory into a video file
Mencoder/*. jpg-MF on: FPS = 25-O output. Avi-OVC divx4
5. How can I use wget to watch videos?
Wget ftp://micorsops.com/something.avi-o-| mplayer-
6. use TCP socket for playing RTP with mplayer
-RTSP-stream-over-TCP
7. mplayer playback address with Password
Mplay rtsp :// <Username>: <Password>@ <Hostname>: <Etc.>
8. Why does mplayer fail to play some rm files?
Note that the live555 streaming media libraries do NotSupport RealAudio and/or realvideo streams-even those described by a "rtsp: //" url-because these streams do not use RTP for transport. (Instead, these streams use RealNetworks 'proprietary "RDT" protocol .)
That is to say, the file transfer protocol of Some RTSP addresses uses RDT instead of RTP;
9. Play a DVD
Mplayer DVD: // <titlenumber>
10. Specify the subtitle file.
Mplayer-sub <somesubtitlefile> <somefile>
11. Use Subtitles with language-specific code
Mplayer DVD: // <titlenumber>-slang NL, en
12. Synchronization Solution
Repair efforts
Mplayer-autosync 30-MC 2.0 <somefile>
Not repaired
Mplayer-autosync 0-MC 0 <somefile>
13. Playing on slow CPU
Mplayer-frameddrop <somefile>
14. playlist
Mplayer-playlist <file or URL>
15. mpalyer specifies the cache
Mplayer-Cache 8192-playlist <file or URL>
Mplayer-Cache 8192-Cache-min 50-playlist <file or URL>

Mplayer/tmp/media-Cache 3000 // mplayer starts playing after loading 3 M data
Note that you must set up a slow charge to support small-scale indexes when reading data.
16. mplayer loop playback
Mplayer-loop 3 <somefile>
Always play (0)
Mplayer-loop 0 <somefile>
17. fast or slow
The value 1 is normal,
Less than 1 fast forward,
More than 1 full storage
Mplayer-speed2.0 <somefile>
18. Change the output sampling rate
Mplayer-srate 48000 <somefile>
19. The audio part of the video file is output as a WAV file.
Mplayer-ao PCM <somefile>
This will output the audio file named audiodump.wav. You can also specify the name for the output WAV file:
Mplayer-ao PCM: file = <FILENAME>. wav <somefile>
20. Output a movie as a series of images
Mplayer-vo JPEG <somefile>
21. Adjust the playback Ratio
Mplayer-aspect 16: 9 <somefile>
Mplayer-aspect 4: 3 <somefile>
22. Create a playlist.
Ls $ home/music> music. lst

Echo musicloud> music. lst

Mplayer-playlist music. lst
23. Control hotkeysBasic playback 
→ 10 seconds forward
10 seconds after renewal
60 seconds before renewal
60 seconds after renewal
Pageup advances for 10 minutes
10 minutes after Pagedown
Enter full screen switch
Space pause Switch
Exit ESC
Q exit

Volume 
9. decrease the volume
0. Increase the volume.
/Decrease the volume
* Increase the volume.
A. Channel switching: if there are audio tracks in multiple languages, switch between multiple audio tracks;
Otherwise, switch between the left-right and stereo channels;

Subtitle 
O switch the screen display keyboard control (such as volume) and time format
V Switch whether to display subtitles
J. Switch between subtitles in different languages
Z subtitle display delayed by 0.1 seconds
X subtitle display 0.1 seconds in advance
{Subtitle display 1 second in advance
} Subtitle display 10 seconds in advance
R subtitle position up 1%
T subtitle position down 1%

Image 
1. contrast reduction
2. Contrast Addition
3. brightness reduction
4. brightness plus
7 saturation reduction, black and white at last
8 saturation Addition
D. Switch whether to reduce the number of audio and video files, and use the video card when it cannot keep up. This avoids audio and video synchronization.
S screenshot. The captured image (in PNG format) is stored in the folder where the video is located.

Other uncommon controls 
<In the paused state, a rollback operation is performed.
> In the paused status, move forward
F7 slows down playback by 0.25 times
F8 accelerates playback by 0.25 times
F6 reset the playback speed to 1.0 times

Mouse control 

Click pause
Double-click full-screen switch
Right-click switch front-end display-always | during playback | No
Switch OSD by wheel (same as O)
Scroll wheel to adjust volume

Summary from another source:

  • F-when playing a video, switch between full screen and window mode. You can also use the-Fs option in the command line to enable mplayer to start playing in full screen mode.
  • O-switch the OSD (onscreen display) mode when playing a video.
  • P or space-Pause/resume playing.
  • Q or ESC-exit mplayer. In GUI mode, ESC does not exit and only stops playing.
  • /And * or 9 and 0-decrease or increase the volume.
  • M-Mute switch.
  • T (usually SHIFT + T)-top switch of the playback window.
  • B and J-cycle between available subtitles.
  • X and Z-adjust the subtitle delay time.
  • I (SHIFT + I)-display the name of the file that plays the movie.
  • 1 and 2-adjust the contrast.
  • 3 and 4-adjust the brightness.
  • 5 and 6-adjust the color.
  • 7 and 8-adjust the saturation.

Command list for slave:
Mplayer-input cmdlist

Mplayer 1.0rc2-4.1.2 (c) 2000-2007 mplayer team
CPU: SGI MIPS
Creating config file: //. mplayer/config
Seek float [integer]
Edl_mark
Audio_delay float [integer]
Speed_incr float
Speed_mult float
Speed_set float
Quit [integer]
Pause
Frame_step
Pt_step integer [integer]
Pt_up_step integer [integer]
Alt_src_step integer
Loop integer [integer]
Sub_delay float [integer]
Sub_step integer [integer]
OSD [integer]
Osd_show_text string [integer] [integer]
Osd_show_property_te string [integer] [integer]
Volume float [integer]
Balance float [integer]
Use_master
Mute [integer]
Contrast integer [integer]
Gamma integer [integer]
Brightness integer [integer]
Hue integer [integer]
Saturation integer [integer]
Frame_drop [integer]
Sub_pos integer [integer]
Sub_alignment [integer]
Sub_visibility [integer]
Sub_load string
Sub_remove [integer]
Vobsub_lang [integer]
Sub_select [integer]
Sub_log
Sub_scale float [integer]
Get_percent_pos
Get_time_pos
Get_time_length
Get_file_name
Get_video_codec
Get_video_bitrate
Get_video_resolution
Get_audio_codec
Get_audio_bitrate
Get_audio_samples
Get_meta_title
Get_meta_artist
Get_meta_album
Get_meta_year
Get_meta_comment
Get_meta_track
Get_meta_genre
Switch_audio [integer]
TV _start_scan
TV _step_channel integer
TV _step_norm
TV _step_chanlist
TV _set_channel string
TV _last_channel
TV _set_freq float
TV _step_freq float
TV _set_norm string
TV _set_brightness integer [integer]
TV _set_contrast integer [integer]
TV _set_hue integer [integer]
TV _set_saturation integer [integer]
Forced_subs_only [integer]
Dvb_set_channel integer
Switch_ratio [float]
Vo_fullscreen [integer]
Vo_ontop [integer]
File_filter integer
Vo_rootwin [integer]
Vo_border [integer]
Screenshot [integer]
Panscan float [integer]
Switch_vsync [integer]
LoadFile string [integer]
Loadlist string [integer]
Run string
Change_rectangle integer
Get_vo_fullscreen
Get_sub_visibility
Key_down_event integer
Set_property string
Get_property string
Step_property string [float] [integer]
Seek_chapter integer [integer]
Set_mouse_pos integer

Protocol Introduction:
Real-time transport protocol)
Real-Time Transport Control Protocol (RTCP)
RTSP (Real-Time Streaming Protocol)

Protocol description:
Http://zhangjunhd.blog.51cto.com/113473/25481
Http://www.hudong.com/wiki/RTP-%E5% AE %9E%E6%97%B6%E4%BC%A0%E8%BE%93%E5%8D%8F%E8% AE % AE
Http://blog.csdn.net/chenyanxu/archive/2008/07/29/2728427.aspx
Here is the RDP explanation,
Reliable data protocol
Http://www.networkdictionary.cn/protocols/rdp.php
Here is the explanation of RDT, which is the private property of real company:
Http://rockmen1.bokee.com/4961895.html

Reference:
Tool usage:
Http://yowlab.shps.kh.edu.tw/wordpress? P = 598
RTSP client:
Http://www.live555.com/liveMedia/#testProgs
Instructions:
Http://www.live555.com/liveMedia/
Mplayer and RSP support:
Http://www.live555.com/mplayer/
Mplayer optimization:
Http://freshmeat.net/articles/fine-tuning-mplayer

From http://blog.csdn.net/wylhistory/archive/2009/11/16/4816653.aspx

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.