每秒更改VLC流的帧数 [英] Change Frames Per Second for VLC Stream

查看:777
本文介绍了每秒更改VLC流的帧数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们目前正在尝试使用VLC流式传输连接到我们Linux服务器之一(Ubuntu 12.04)的网络摄像头,尽管我们能够成功地流式传输视频并进行远程观看,但我们需要更改每秒的帧数(默认为24).我们目前正在使用以下命令来创建流:

We are currently experimenting with streaming a webcam attached to one of our Linux servers (Ubuntu 12.04) using VLC, and although we are able to successfully stream the video and view it remotely, we need to change the number of frames per second (which is defaulting to 24). We are currently using the following command to create the stream:

vlc v4l2:// :v4l2-dev=/dev/video0 \
            :v4l2-width=640 \
            :v4l2-height=480 -- \
            sout="#transcode{vcodec=theo,vb=256}:standard{access=http,mux=ogg,dst=:8090}" \
            -I dummy

有人可以向我们展示如何修改它以更改每秒的帧数吗?我们已经在线搜索并通过VLC文档进行了拖网,但找不到解决方案.

Would someone be able to show us how to modify this to change the number of frames per second? We have searched online and trawled through the VLC documentation and have been unable to find a solution.

更新

已向我们指出了fps参数,但可悲的是,这并不能解决问题-运行下面所示命令的输出(那里还有一些其他错误,但是尽管有这些错误,流仍可以正常运行,我们暂时只关注更改帧速率.

The fps parameter was pointed out to us but sadly this didn't fix the issue - output from running the command shown below (there are some other errors in there, but the stream is running fine despite those, we are just focused on changing the frame rate for now).

$ vlc -v v4l2:// :v4l2-dev=/dev/video0 :v4l2-width=640 :v4l2-height=480 --sout="#transcode{vcodec=theo,vb=256,fps=1}:standard{access=http,mux=ogg,dst=:8090}" -I dummy
VLC media player 2.0.8 Twoflower (revision 2.0.8a-0-g68cf50b)
[0x14d0758] inhibit interface error: Failed to connect to the D-Bus session daemon: Unable to autolaunch a dbus-daemon without a $DISPLAY for X11
[0x14d0758] main interface error: no suitable interface module
[0x14d0758] main interface error: no suitable interface module
[0x13f3108] main libvlc error: interface "globalhotkeys,none" initialization failed
[0x14d0758] dummy interface: using the dummy interface module...
[0x7f9f6c005518] mux_ogg mux: Open
[0x7f9f6c4d1a58] rawvideo decoder warning: invalid frame rate 0/1000000, using 25 fps instead
[0x7f9f640009c8] rawvideo generic warning: invalid frame rate 0/1000000, using 25 fps instead

推荐答案

在转码部分添加'fps ='应该设置帧率:#transcode {vcodec = theo,vb = 256,fps = 10}

Adding 'fps=' to the transcode part should set the framerate: #transcode{vcodec=theo,vb=256,fps=10}

这篇关于每秒更改VLC流的帧数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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