Frames per second for VLC stream

We are currently experimenting with streaming a webcam connected to one of our Linux servers (Ubuntu 12.04) using VLC, and although we can successfully transmit video and watch it remotely, we need to change the number of frames per second (which by default is 24). Currently, the following command is used to create a 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 

Can anyone show us how to change this to change the number of frames per second? We searched the Internet and etched through the VLC documentation and could not find a solution.

Update

We were given the fps parameter, but, unfortunately, this did not fix the problem - the conclusion from the execution of the command below (there are other errors there, but the stream is working fine, despite the fact that we are just focused on changing the frame rate at the moment) .

 $ 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 
+4
source share
1 answer

Adding "fps =" to the transcode part should set the frame rate: #transcode {vcodec = theo, vb = 256, fps = 10}

+2
source

Source: https://habr.com/ru/post/1496587/


All Articles