FFMPEG、像素化帧和 webm 格式

标签 ffmpeg webm

似乎每次我分割 .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/

相关文章:

java - 使用 Android MediaRecorder 录制 webm

FFmpeg:在 MP4 容器中创建数据流

ffmpeg - 如何使用 libavcodec 强制将当前帧编码为帧内

unix - 命令行工具从音轨开头修剪空白?

c# - 将原始帧转换为 webm 实时流

html - EDGE 浏览器中的 VP9 WEBM 视频支持

php - 获取托管在 Amazon S3 上的文件的视频持续时间

javascript - 使用 fluent-ffmpeg 将 ffprobe 元数据返回到另一个函数

c - 使用 libavcodec 保存 H.264 编码图像

html - WebM 与 Ogg 理论