![9gag 中的 AV1 视频转换](https://linux22.com/image/1170309/9gag%20%E4%B8%AD%E7%9A%84%20AV1%20%E8%A7%86%E9%A2%91%E8%BD%AC%E6%8D%A2.png)
播放器无法播放,FFmpeg 无法转换
可变速率控制器(VLC):
Codec not supported:
VLC could not decode the format "av01" (AOMedia's AV1 Video)
视频:
video/x-gst-fourcc-av01 decoder is requiered to play the file, but not installed
FFmpeg:
admin@admin-ThinkPad-Twist:~$ ffmpeg -i "awo1DPQ_460svav1.mp4" -c:v rawvideo "awo1DPQ_460svav1-s.mp4"
ffmpeg version 3.4.6-0ubuntu0.18.04.1 Copyright (c) 2000-2019 the FFmpeg developers
built with gcc 7 (Ubuntu 7.3.0-16ubuntu3)
configuration: --prefix=/usr --extra-version=0ubuntu0.18.04.1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --enable-gpl --disable-stripping --enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librubberband --enable-librsvg --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-omx --enable-openal --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libopencv --enable-libx264 --enable-shared
WARNING: library configuration mismatch
avcodec configuration: --prefix=/usr --extra-version=0ubuntu0.18.04.1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --enable-gpl --disable-stripping --enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librubberband --enable-librsvg --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-omx --enable-openal --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libopencv --enable-libx264 --enable-shared --enable-version3 --disable-doc --disable-programs --enable-libopencore_amrnb --enable-libopencore_amrwb --enable-libtesseract --enable-libvo_amrwbenc
libavutil 55. 78.100 / 55. 78.100
libavcodec 57.107.100 / 57.107.100
libavformat 57. 83.100 / 57. 83.100
libavdevice 57. 10.100 / 57. 10.100
libavfilter 6.107.100 / 6.107.100
libavresample 3. 7. 0 / 3. 7. 0
libswscale 4. 8.100 / 4. 8.100
libswresample 2. 9.100 / 2. 9.100
libpostproc 54. 7.100 / 54. 7.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'awo1DPQ_460svav1.mp4':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2mp41
encoder : Lavf58.35.101
Duration: 00:00:31.50, start: 0.000000, bitrate: 88 kb/s
Stream #0:0(und): Video: av1 (av01 / 0x31307661), none(progressive), 460x470, 88 kb/s, SAR 1:1 DAR 46:47, 10 fps, 10 tbr, 10240 tbn, 10240 tbc (default)
Metadata:
handler_name : VideoHandler
File 'awo1DPQ_460svav1-s.mp4' already exists. Overwrite ? [y/N] y
Stream mapping:
Stream #0:0 -> #0:0 (? (?) -> rawvideo (native))
Decoder (codec av1) not found for input stream #0:0
我该怎么办?
答案1
好消息是,在 Ubuntu 18.04 下使用 AV1 进行播放和编码相对容易:
回放:存储库 vlc 不会播放 AV1 文件,但如果你安装snap 版本您将拥有该功能。从终端运行以下命令:
sudo snap install vlc
目前这将为您提供具有 AV1 播放功能的 vlc 3.0.8。
编码: 有Ask Ubuntu 上的指南它将为最新版本的 FFmpeg 配备编码和解码 AV1 文件的能力。这是我的指南,我刚刚又测试了一遍全面地现在它运行良好:)
这将在 Ubuntu 18.04 上提供最新的 AV1 功能,我在自己的 18.04 系统上添加了带有 AV1 播放的 vlc 的屏幕截图(该视频是我根据上面第 2 点中的“编码”指南自己创建的):
它在我的系统上运行良好,在你的系统上也应该如此:)