我有罗技C310相机宣布720 p 30 the的特性。
如果你把相机连接到窗户上,录音就完全符合规定的720 p 30 the -画面是清晰的。
目前的挑战是将同一台摄像机连接到OrangePI (服务器阿尔比安)上,并在其上保存视频文件。
摄像机显示为/dev/video0 0。
sudo ffmpeg -f v4l2 -s 1280x720 -i /dev/video0 output.wmv因此,我得到了一个频率为5 fps的粗糙图片。
也许我用得不对?请帮助我谁有在Linux上使用网络相机的经验..。提前谢谢。
USB摄像头配置:
v4l2-ctl --all --device=/dev/video0
Driver Info (not using libv4l2):
Driver name : uvcvideo
Card type : UVC Camera (046d:081b)
Bus info : usb-1c1c000.usb-1
Driver version: 4.14.18
Capabilities : 0x84200001
Video Capture
Streaming
Extended Pix Format
Device Capabilities
Device Caps : 0x04200001
Video Capture
Streaming
Extended Pix Format
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
Width/Height : 1280/720
Pixel Format : 'YUYV'
Field : None
Bytes per Line : 2560
Size Image : 1843200
Colorspace : sRGB
Transfer Function : Default
YCbCr/HSV Encoding: Default
Quantization : Default
Flags :
Crop Capability Video Capture:
Bounds : Left 0, Top 0, Width 1280, Height 720
Default : Left 0, Top 0, Width 1280, Height 720
Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 1280, Height 720
Selection: crop_bounds, Left 0, Top 0, Width 1280, Height 720
Streaming Parameters Video Capture:
Capabilities : timeperframe
Frames per second: 5.000 (5/1)
Read buffers : 0
brightness (int) : min=0 max=255 step=1 default=128 value=128
contrast (int) : min=0 max=255 step=1 default=32 value=32
saturation (int) : min=0 max=255 step=1 default=32 value=32
white_balance_temperature_auto (bool) : default=1 value=1
gain (int) : min=0 max=255 step=1 default=64 value=192
power_line_frequency (menu) : min=0 max=2 default=2 value=2
white_balance_temperature (int) : min=0 max=10000 step=10 default=4000 value=4610 flags=inactive
sharpness (int) : min=0 max=255 step=1 default=24 value=24
backlight_compensation (int) : min=0 max=1 step=1 default=0 value=0
exposure_auto (menu) : min=0 max=3 default=3 value=3
exposure_absolute (int) : min=1 max=10000 step=1 default=166 value=249 flags=inactive
exposure_auto_priority (bool) : default=0 value=1
led1_mode (menu) : min=0 max=3 default=3 value=3
led1_frequency (int) : min=0 max=131 step=1 default=0 value=0发布于 2018-05-22 07:12:34
我在Raspberry Pi Raspbian上运行一个网络摄像头,这是我用来捕获视频的代码(运行25 fps很好):
var args = [
"-i",
"/dev/video0",
"-r",
"25",
"-qscale",
"1",
"out.avi"
];
var process = spawn("avconv", args);"avconv“和ffmpeg差不多,我不知道区别的具体内容,但这可能对你有用。非常基本的例子,这只是为了测试相机。-r指定fps,-qscale是高质量的(有替代命令)。
https://stackoverflow.com/questions/50461627
复制相似问题