将USB摄像头流转换并重定向到多播ip时,我面临以下错误。
ffmpeg -f v4l2 -i / dev / video1 -s 720x480 -pix_fmt yuv420p -c:v mpeg2video -aspect 4:3 -r 30 -g 15 -ar 0 -streamid 0:48 -bf 2 - b:v 100k -bufsize 400k -maxrate 3825k -f rtp_mpegts rtp://239.0.2.2:5001
ffmpeg版本3.2.4-static http://johnvansickle.com/ffmpeg/版权所有(c)2000-2017 FFmpeg开发人员 用gcc 5.4.1(Debian 5.4.1-5)20170205构建 配置: - enable-gpl --enable-version3 --enable-static --disable-debug --disable -ffplay --disable-indev = sndio --disable-outdev = sndio --cc = gcc-5 - enable-fontconfig --enable-frei0r --enable-gnutls --enable-grey --enable-libass --enable-libfreetype --enable-libfribidi --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore -amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libvidstab --enable-libvo-amrwbenc --enable-libvorbis - -enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --enable-libzimg libavutil 55. 34.101 / 55. 34.101 libavcodec 57. 64.101 / 57. 64.101 libavformat 57. 56.101 / 57. 56.101 libavdevice 57. 1.100 / 57. 1.100 libavfilter 6. 65.100 / 6. 65.100 libswscale 4. 2.100 / 4. 2.100 libswresample 2. 3.100 / 2. 3.100 libpostproc 54. 1.100 / 54. 1.100
[video4linux2,v4l2 @ 0xb982f80] ioctl(VIDIOC_STREAMON):设备上没有剩余空间 / dev / video1:设备上没有剩余空间
以下是top和free -m命令输出
top - 20:10:13 up 16 min,4位用户,平均负载:0.49,0.37,0.28 任务:总计257,正在运行,256睡眠,0停止,0僵尸 %Cpu(s):3.4 us,0.2 sy,0.0 ni,95.9 id,0.5 wa,0.0 hi,0.0 si,0.0 st KiB Mem:13457292总计,12299768免费,650672使用,506852 buff /缓存 KiB互换:总计3670012,免费3670012,使用0。 12710776使用Mem
PID用户PR NI VIRT RES SHR S%CPU%MEM TIME + COMMAND
4095 root 20 0 333376 153296 138660 S 25.9 1.1 1:09.41 ffmpeg
1551 root 20 0 84804 40076 17756 S 0.7 0.3 0:24.00 Xorg.bin
2574用户20 0 66900 27436 21268 S 0.7 0.2 0:11.30 gnome-terminal-
4373 root 20 0 7800 3852 3196 R 0.7 0.0 0:00.03 top
610 root 20 0 0 0 0 S 0.3 0.0 0:00.03 kworker / 4:2
3762用户20 0 816928 217120 75100 S 0.3 1.6 0:56.34 firefox
4240 root 20 0 0 0 0 S 0.3 0.0 0:02.24 kworker / 0:2
1根20 0 27464 7508 5044 S 0.0 0.1 0:01.95 systemd
2根20 0 0 0 0 S 0.0 0.0 0:00.00 kthreadd
3 root 20 0 0 0 0 S 0.0 0.0 0:00.00 ksoftirqd / 0
5 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 kworker / 0:0H
7 root 20 0 0 0 0 S 0.0 0.0 0:01.29 rcu_sched
total used free shared buff/cache available
记忆:13141 621 12025 2 495 12426 交换:3583 0 3583
VmallocTotal:524288 kB VmallocUsed:204736 kB VmallocChunk:316560 kB
P.S :: / dev / video0上的机器上已经运行了一个ffmpeg实例。
非常感谢任何解决问题的帮助