小编c10*_*0ud的帖子

与 yuvj420p 等效的未知 V4L2 像素格式

我正在尝试将位于 Videos/video.mp4 中的 mp4 视频通过管道传输到位于 /dev/video0 的虚拟网络摄像头设备。

我尝试运行: ffmpeg -re -i Videos/video.mp4 -map 0:v -f v4l2 /dev/video0 并且我不断收到以下错误:

[video4linux2,v4l2 @ 0x5580cf270100] Unknown V4L2 pixel format equivalent for yuvj420p
Could not write header for output file #0 (incorrect codec parameters ?): Invalid argument
Error initializing output stream 0:0 -- 
Conversion failed!
Run Code Online (Sandbox Code Playgroud)

完整日志:

ffmpeg version 4.2.2-1+b1 Copyright (c) 2000-2019 the FFmpeg developers
  built with gcc 9 (Debian 9.2.1-28)
  configuration: --prefix=/usr --extra-version=1+b1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl --disable-stripping --enable-avresample --disable-filter=resample --enable-avisynth --enable-gnutls --enable-ladspa …
Run Code Online (Sandbox Code Playgroud)

linux bash video ffmpeg v4l2loopback

4
推荐指数
1
解决办法
2782
查看次数

标签 统计

bash ×1

ffmpeg ×1

linux ×1

v4l2loopback ×1

video ×1