![使用 ffmpeg 将 .avi 电影转换为 3GP 时视频转换停止](https://linux22.com/image/1397345/%E4%BD%BF%E7%94%A8%20ffmpeg%20%E5%B0%86%20.avi%20%E7%94%B5%E5%BD%B1%E8%BD%AC%E6%8D%A2%E4%B8%BA%203GP%20%E6%97%B6%E8%A7%86%E9%A2%91%E8%BD%AC%E6%8D%A2%E5%81%9C%E6%AD%A2.png)
..\tools\ffmpeg -y -i FindingNemo(2003)WidescreenDVDripV3nDetta.avi -r 20 -s 352x288 -b 400k -acodec aac -strict experimental -ac 1 -ar 8000 -ab 24k FindingNemo(2003)WidescreenDVDripV3nDetta.3gp
我正在使用上述脚本将电影转换为 3GB。如果视频时长较短,则转换成功。但是当它是电影时,ffmpeg 会在一定数量的帧后停止转换。
C:\Users\Priya\Desktop\PicvieBuilder_Essilor_Version1\builder_latest\WPF_Explore
r_Tree\bin\Debug>.\tools\ffmpeg -y -r 20 -s 352x288 -b 400k -i "E:\priya\Movies\
Finding Nemo (2003) Widescreen DVDrip V3nDetta\FindingNemo(2003)WidescreenDVDrip
V3nDetta.avi" -acodec aac -strict experimental -ac 1 -ar 8000 -ab 24k "E:\priya\
Movies\Finding Nemo (2003) Widescreen DVDrip V3nDetta\FindingNemo(2003)Widescree
nDVDripV3nDetta.3gp"
FFmpeg version SVN-r23607, Copyright (c) 2000-2010 the FFmpeg developers
built on Jun 15 2010 04:09:35 with gcc 4.4.2
configuration: --target-os=mingw32 --enable-runtime-cpudetect --enable-avisynt
h --enable-gpl --enable-version3 --enable-bzlib --enable-libgsm --enable-libfaad
--enable-pthreads --enable-libvorbis --enable-libtheora --enable-libspeex --ena
ble-libmp3lame --enable-libopenjpeg --enable-libxvid --enable-libschroedinger --
enable-libx264 --extra-libs='-lx264 -lpthread' --enable-libopencore_amrwb --enab
le-libopencore_amrnb --enable-librtmp --extra-libs='-lrtmp -lpolarssl -lws2_32 -
lwinmm' --arch=x86 --cross-prefix=i686-mingw32- --cc='ccache i686-mingw32-gcc' -
-enable-memalign-hack
libavutil 50.19. 0 / 50.19. 0
libavcodec 52.76. 0 / 52.76. 0
libavformat 52.68. 0 / 52.68. 0
libavdevice 52. 2. 0 / 52. 2. 0
libavfilter 1.20. 0 / 1.20. 0
libswscale 0.11. 0 / 0.11. 0
[avi @ 016a7270]max_analyze_duration reached
Input #0, avi, from 'E:\priya\Movies\Finding Nemo (2003) Widescreen DVDrip V3nDe
tta\FindingNemo(2003)WidescreenDVDripV3nDetta.avi':
Metadata:
INAM : FINDING_NEMO.Title1.DVDRip
IPRD : FINDING_NEMO
ISFT : Lavf52.78.4
Duration: 01:40:31.90, start: 0.000000, bitrate: 1363 kb/s
Stream #0.0: Video: h264, yuv420p, 640x360, 23.98 fps, 23.98 tbr, 23.98 tbn,
47.95 tbc
Stream #0.1: Audio: ac3, 48000 Hz, 5.1, s16, 448 kb/s
Output #0, 3gp, to 'E:\priya\Movies\Finding Nemo (2003) Widescreen DVDrip V3nDet
ta\FindingNemo(2003)WidescreenDVDripV3nDetta.3gp':
Metadata:
encoder : Lavf52.68.0
Stream #0.0: Video: h263, yuv420p, 640x360, q=2-31, 400 kb/s, 24k tbn, 23.98
tbc
Stream #0.1: Audio: aac, 8000 Hz, 1 channels, s16, 24 kb/s
Stream mapping:
Stream #0.0 -> #0.0
Stream #0.1 -> #0.1
Press [q] to stop encoding
frame= 2509 fps=250 q=17.2 size= 5632kB time=104.45 bitrate= 441.7kbits/s
frame= 2620 fps=249 q=15.9 size= 5844kB time=109.06 bitrate= 439.0kbits/s
frame= 2727 fps=247 q=10.3 size= 6058kB time=113.54 bitrate= 437.1kbits/s
答案1
FFmpeg version SVN-r23607, Copyright (c) 2000-2010 the FFmpeg developers
这显然已经过时了。在此期间,数千个错误已得到修复。您可以在此处下载较新版本的 ffmpeg,然后重试: