欢迎您访问 最编程 本站为您分享编程语言代码,编程技术文章!
您现在的位置是: 首页

mencoder_Mplayer / Mencoder 实用命令

最编程 2024-03-22 21:40:59
...

mencoder

mplayer/mencoder are powerful tools. This is a list of useful mplayer/mencoder commands.

mplayer / mencoder是功能强大的工具。 这是有用的mplayer / mencoder命令的列表。

提取音频,将其转换为PCM并将生成的波形文件写入audio.wav: (Extract the audio, convert it to PCM and write the resulting wave file to audio.wav:)
mplayer -vo null -hardframedrop -ao pcm:file=audio.wav video.avi
将.wav文件转换为.mp3文件: (Convert .wav file to .mp3 file:)
lame -h out.wav out.mp3
以15fps预览当前文件夹中包含所有jpeg文件的视频: (Preview a video composed of all jpeg files from the current folder at 15fps:)
mplayer "mf://*.jpg" -mf fps=15
从当前文件夹的所有jpeg文件创建15fps视频: (Create a 15fps video from all jpeg files of the current folder:)
mencoder "mf://*.jpg" -mf fps=15 -ovc lavc -o ./output.avi
将视频从秒6剪切到秒206(即200 + 6,output.avi的长度为200秒): (Cut a video from second 6 to second 206 (which is 200+6, the output.avi is 200 seconds long):)
mencoder big-file.avi -ss 6 -endpos 200 -ovc copy -oac copy -o output.avi
将原始视频转换为ISO标准MPEG-4(兼容DivX 5,XVID)的视频: (Convert raw videos into ISO standard MPEG-4 (DivX 5, XVID compatible) videos:)
mencoder source.avi -ovc lavc -oac lavc -ffourcc DX50 -lavcopts 
 vcodec=mpeg4:vbitrate=400:v4mv:mbd=2:trell:autoaspect:dia=2:acodec=mp3:abitrate=32:vpass=1 
 -vf hqdn3d -o output.avi
获取有关视频的信息: (Get informations about a video:)
mplayer -frames 0 -identify ./video.avi
显示所有mplayer过滤器列表: (Show all mplayer filter list:)
mplayer -vf help
通过SSH连接播放音频文件 (Play audio files over ssh connection)
ssh user@example.com "cat audio.mp3" | mplayer -cache 8192 -
从FTP播放文件: (Play files from FTP:)
wget ftp://example.com/file.avi -O - | mplayer -cache 8192 -
重复一个文件多次: (Repeat a file multiple times:)
mplayer file1 -loop 2 file2 -loop 1 file3 -loop 4
记录流: (Record stream:)
mplayer -dumpstream -dumpfile output.rm -cache 4096 rtsp://example.com/file.rm

Update history:
Jun 23, 2010. Correct the errors about vcodec and endpos options.

更新历史:
2010年6月23日。更正有关vcodec和endpos选项的错误。

翻译自: https://www.systutorials.com/useful-mplayermencoder-commands/

mencoder