似乎每次我分割 .webm 视频时,一半或更多的帧都会被像素化和扭曲。
我的配置如下所示:
FFmpeg version 0.6.6-4:0.6.6-0ubuntu0.11.04.1, Copyright (c) 2000-2010 the Libav developers
built on Jun 12 2012 16:35:16 with gcc 4.5.2
configuration: --extra-version=4:0.6.6-0ubuntu0.11.04.1 --prefix=/usr --enable-avfilter --enable-avfilter-lavf --enable-vdpau --enable-bzlib --enable-libgsm --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-pthreads --enable-zlib --enable-libvpx --disable-stripping --enable-runtime-cpudetect --enable-vaapi --enable-gpl --enable-postproc --enable-swscale --enable-x11grab --enable-libdc1394 --enable-shared --disable-static
有没有人有类似的经验?当我在同一系统上使用标准 ffmpeg 播放器播放相同的视频时,它们看起来还不错。
最佳答案
如果您只是将 .webm 文件拆分为 2 个 .webm 文件,则需要添加 -vcodec copy -acodec copy
到您的命令行,即类似
ffmpeg -i input.webm -vcodec copy -acodec copy -ss 10 -t 10 output.webm
否则 ffmpeg 也会使用默认的低比特率对视频进行转码,这会导致像素化。此外,它使 split 慢得多。
关于FFMPEG、像素化帧和 webm 格式,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12149022/