Opened 6 years ago

Last modified 6 years ago

#6639 new enhancement

video4linux2 (v4l2) add option to set bitrate for compressed video

Reported by: moritzmhmk Owned by:
Priority: wish Component: avdevice
Version: git-master Keywords: v4l2
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no


While input_format can be set to h264 there is no way to set the bitrate for a webcam.

The bitrate for the camera in question can be set with "v4l2-ctl --set-ctrl video_bitrate=300000"

How to reproduce:

% ffmpeg -f video4linux2 -input_format h264 -video_size 1280x704 -i /dev/video0 ...
ffmpeg version 3.2.5-1
built with gcc 6.3.0 (Raspbian 6.3.0-18+rpi1) 20170516

Change History (1)

comment:1 by Carl Eugen Hoyos, 6 years ago

Keywords: bitrate video4linux2 removed
Priority: normalwish
Version: unspecifiedgit-master
Note: See TracTickets for help on using tickets.