使用停止时间从 vlc 命令行捕获视频 [英] Capture video from vlc command line with a stop time
问题描述
我正在尝试将视频从 RPT 流捕获到我的电脑 (Ubuntu 12-04 LTS).我正在从命令行使用 vlc,如下所示:
I'm trying to capture a video from an RPT stream to my pc (Ubuntu 12-04 LTS). I'm using vlc from command line as below:
cvlc -vvv rtp://address:port --start-time=00 --stop-time=300 --sout file/ts:test.ts
但 vlc 忽略命令 --stop-time
并且它继续下载视频甚至超过指定的 300 秒.
but vlc ignores the command --stop-time
and it continues to download video even more than 300 seconds as specified.
有人知道这是什么原因吗?以及可能的解决方案?
Does anyone know the reason for this? and a possible solution?
谢谢
推荐答案
如果您知道开始时间和结束时间,您就可以计算出记录时间.之后你可以使用 --run-time
选项来获得你想要的,像这样:cvlc --run-time 60 --start-time 1260/Path/to/your/file.ts vlc://quit
If you know the start-time and the end-time you can compute the record time. You can afterward use the --run-time
option to get what you want,
like this:
cvlc --run-time 60 --start-time 1260 /Path/to/your/file.ts vlc://quit
这篇关于使用停止时间从 vlc 命令行捕获视频的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!