为什么我使用ffmpeg进行视频转换后,转换出来的文件都是0KB。
命令为:D:\ffmpeg-test\ffmpeg -i D:\ffmpeg-test\moon.mp4 -y -ab 56 -ar 22050 -b 500 -r 15 -s 320*240 D:\ffmpeg-test\a.flv
错误提示为:
Error while opening codec for output stream #0.1 - maybe incorrect parameters such as bit_rate,rate,width or height
ch as bit_rate, rate, width or height
关于ffmpeg转换文件为0KB的问题
答案:2 悬赏:50 手机版
解决时间 2021-02-06 19:38
- 提问者网友:遁入空寂
- 2021-02-05 22:47
最佳答案
- 五星知识达人网友:独钓一江月
- 2021-02-05 23:13
输出文件流错误:参数不合法吧
-ab 56 -ar 22050 -b 500 -r 15
改为-ab 56k -ar 22050 -b 500k -r 15
试一试
-ab 56 -ar 22050 -b 500 -r 15
改为-ab 56k -ar 22050 -b 500k -r 15
试一试
全部回答
- 1楼网友:怀裏藏嬌
- 2021-02-05 23:21
ffmpeg版本太旧,用的7年前的版本。支持太少。换新版即可。
我自己编译的版本,为core2以上cpu优化
ffmpeg version n-57940-g1b3d3a9 copyright (c) 2000-2013 the ffmpeg developers
built on nov 6 2013 18:49:29 with gcc 4.7.3 (gcc)
configuration: --prefix=/mingw/i686-w64-mingw32 --enable-version3 --enable-gpl
--enable-nonfree --enable-avisynth --enable-libfaac --enable-libaacplus --enabl
e-libvo-aacenc --enable-libfdk-aac --enable-libmp3lame --enable-libx264 --enable
-librtmp --enable-libvpx --enable-libvorbis --enable-libopus --disable-runtime-c
pudetect --disable-doc --disable-manpages --disable-podpages --disable-txtpages
--enable-cross-compile --target-os=mingw32 --arch=x86 --enable-w32threads --extr
a-cflags='-ofast -mtune=core2 -fomit-frame-pointer' --extra-libs='-lrtmp -lpolar
ssl -lwinmm -lws2_32 -lgdi32'
libavutil 52. 52.100 / 52. 52.100
libavcodec 55. 41.100 / 55. 41.100
libavformat 55. 21.100 / 55. 21.100
libavdevice 55. 5.100 / 55. 5.100
libavfilter 3. 90.102 / 3. 90.102
libswscale 2. 5.101 / 2. 5.101
libswresample 0. 17.104 / 0. 17.104
libpostproc 52. 3.100 / 52. 3.100
我要举报
如以上问答信息为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
大家都在看
推荐资讯