使用命令行选项在mplayer中播放视频的特定间隔 [英] playing a specific interval of a video in mplayer using command line option

查看:267
本文介绍了使用命令行选项在mplayer中播放视频的特定间隔的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用mplayer播放视频...我想知道是否有命令行选项可以在mplayer中播放特定间隔的视频? 例如,如果我想以56秒的时间播放3秒的视频文件,那么命令行选项是什么? 我知道将寻求特定位置的-ss选项,但是如何指定我要玩的持续时间呢? 具体来说,如果我想要一个命令,该命令从第56秒的开头开始播放视频文件,并播放3秒的视频(即,直到第59秒的开始,或者等效地,是第58秒的结尾),该命令是什么样的?

I am using mplayer to play videos... I wanted to know if there are command line options to play a specific interval of a video in mplayer? For example, if I want to play a video file from 56 secs for a duration of 3 secs, then what would the command line options be? I know about the -ss option that will seek to a specific position, but how do I specify the duration that I want to play? Concretely, if I want a command that plays a video file starting at the beginning of the 56th second and plays 3 seconds of the video (i.e., until the beginning of the 59th sec, or equivalently, the end of the 58th sec.), what would the command look like?

我一直在查看手册页,但目前还没有成功.也许我想念一些东西. 非常感谢您的帮助!

I have been looking at the man page, but no success as yet. Maybe I am missing something. I really appreciate your help!

推荐答案

man mplayer

显示:

-ss <time>: Seek to given time position
-endpos <[[hh:]mm:]ss[.ms]|size[b|kb|mb]>: Stop at given time or byte position

因此,您应该可以通过以下简单的操作来完成所需的操作:

so you should be able to do what you want by simple using:

mplayer -ss 56 -endpos 3

这篇关于使用命令行选项在mplayer中播放视频的特定间隔的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆