您好,我正在尝试将 SWF 文件转换为 FLV,但我遇到了同样的错误
C:\Users\Administrator>C:/ffmpeg/ffmpeg.exe -i C:/xampplite/htdocs/ffmpeg/1.swf \
C:/xampplite/htdocs/ffmpeg/file1.flv
FFmpeg version SVN-r16573, Copyright (c) 2000-2009 Fabrice Bellard, et al.
configuration: --extra-cflags=-fno-common --enable-memalign-hack --enable-pthreads
--enable-libmp3lame --enable-libxvid --enable-libvorbis --enable-libtheora
--enable-libspeex --enable-libfaac --enable-libgsm --enable-libx264
--enable-libschroedinger --enable-avisynth --enable-swscale --enable-gpl
libavutil 49.12. 0 / 49.12. 0
libavcodec 52.10. 0 / 52.10. 0
libavformat 52.23. 1 / 52.23. 1
libavdevice 52. 1. 0 / 52. 1. 0
libswscale 0. 6. 1 / 0. 6. 1
built on Jan 13 2009 02:57:09, gcc: 4.2.4
C:/xampplite/htdocs/ffmpeg/1.swf: could not find codec parameters
请解决这个问题,我做错了什么??
最佳答案
SWF 不像 MP4 或 AVI 那样是媒体容器。它有很多东西,例如图形的矢量数据、ActionScript 代码等。它还可以将 FLV 文件作为资源嵌入。
因此,尝试使用 FFMPEG 将 SWF 直接转换为 FLV 毫无意义。您可以尝试使用工具提取它的资源,例如 SWF Extractor , 获取 FLV 文件,然后使用 FFMPEG 将其转换为另一种格式,如 AVI 或 MP4。
关于flash - 使用 FFMPEG 将 SWF 文件转换为 FLV 并出现错误 "could not find codec parameters",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2703704/