gpt4 book ai didi

FFMPEG 错误 AVI 到 FFV1

转载 作者:行者123 更新时间:2023-12-04 23:30:41 28 4
gpt4 key购买 nike

使用 FFMPEG 进行转码时遇到以下错误。据我所知,我不应该再输入参数或任何东西。我尝试添加标志“-coder 1”,这给了我一个文件,但视频是一个实心的绿色 block 。

这是我的命令:

ffmpeg -i Glueck_Newsreel.avi -vcodec ffv1 -acodec pcm_s16le mp0001.mkv

这是输出
ffmpeg version 0.10.4 Copyright (c) 2000-2012 the FFmpeg developers
built on Jul 21 2012 10:40:08 with gcc 4.4.6 20110731 (Red Hat 4.4.6-3)
configuration: --prefix=/usr --bindir=/usr/bin --datadir=/usr/share/ffmpeg --incdir=/usr/include/ffmpeg --libdir=/usr/lib64 --mandir=/usr/share/man --arch=x86_64 --extra-cflags='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic' --enable-bzlib --disable-crystalhd --enable-gnutls --enable-libass --enable-libcdio --enable-libdc1394 --disable-indev=jack --enable-libfreetype --enable-libgsm --enable-libmp3lame --enable-openal --enable-libopenjpeg --enable-libpulse --enable-librtmp --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-libv4l2 --enable-libx264 --enable-libxvid --enable-x11grab --enable-avfilter --enable-postproc --enable-pthreads --disable-static --enable-shared --enable-gpl --disable-debug --disable-stripping --shlibdir=/usr/lib64 --enable-runtime-cpudetect
libavutil 51. 35.100 / 51. 35.100
libavcodec 53. 61.100 / 53. 61.100
libavformat 53. 32.100 / 53. 32.100
libavdevice 53. 4.100 / 53. 4.100
libavfilter 2. 61.100 / 2. 61.100
libswscale 2. 1.100 / 2. 1.100
libswresample 0. 6.100 / 0. 6.100
libpostproc 52. 0.100 / 52. 0.100
Input #0, avi, from 'Glueck_Newsreel.avi':
Duration: 00:09:45.11, start: 0.000000, bitrate: 226508 kb/s
Stream #0:0: Video: v210 (v210 / 0x30313276), yuv422p10le, 720x486, 29.97 fps, 29.97 tbr, 29.97 tbn, 29.97 tbc
Stream #0:1: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 48000 Hz, 2 channels, s16, 1536 kb/s
File 'mp0001.mkv' already exists. Overwrite ? [y/N] y
w:720 h:486 pixfmt:yuv422p10le tb:1/1000000 sar:0/1 sws_param:
[ffv1 @ 0x13c8340] bits_per_raw_sample of more than 8 needs -coder 1 currently
Output #0, matroska, to 'mp0001.mkv':
Stream #0:0: Video: ffv1, yuv422p10le, 720x486, q=2-31, 200 kb/s, 90k tbn, 29.97 tbc
Stream #0:1: Audio: none, 48000 Hz, 2 channels, s16, 128 kb/s
Stream mapping:
Stream #0:0 -> #0:0 (v210 -> ffv1)
Stream #0:1 -> #0:1 (pcm_s16le -> pcm_s16le)
Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height

最佳答案

感谢您包含控制台输出。重要的信息是:

[ffv1 @ 0x13c8340] bits_per_raw_sample of more than 8 needs -coder 1 currently

这意味着您必须添加 -coder 1作为输出选项。但是,有大量 workupdates最近到 ffv1,所以你可能想使用更新的 ffmpeg。

关于FFMPEG 错误 AVI 到 FFV1,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13710774/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com