1)FFmpeg转码错误
Cannot load libcuda.so.1,
解决办法安装x264库
2)ffmpeg转码错误
[h264_v4l2m2m @ 0x16e233d0] Could not find a valid device
[h264_v4l2m2m @ 0x16e233d0] can't configure encoder
Error initializing output stream 0:0 -- Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height
解决办法,安装x264
Linux下安装x264库
1)下载x264
git clone http://git.videolan.org/git/x264.git
2)安装
cd x264
sudo ./configure --enable-shared --disable-asm
sudo make && make install
3)添加环境变量
export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:$PKG_CONFIG_PATH
echo $PKG_CONFIG_PATH
注意:解决警告(WARNING: using libx264 without pkg-config)
4)重新编译ffmpeg
sudo ./configure --disable-yasm --enable-libx264 --enable-swscale --enable-avresample --enable-gpl --enable-sharedsudo make && make install