2010-04-24 135 views
2

你好我想SWF文件转换成FLV,但我得到相同eror转换SWF文件与FFmpeg中和得到错误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 

请解决这个问题,有什么我做错了?

回答

0

两个想法:

  1. 真的确保SWF中有一个嵌入式FLV?
  2. 将SWF反编译为其各个组件。也许它太复杂了,或者有多个FLV,或者其他一些元数据像问题
2

SWF不是像MP4或AVI这样的媒体容器。它有很多东西更像是用于图形的矢量数据,ActionScript代码等等。它还可以将FLV文件作为资源嵌入。

因此,尝试使用FFMPEG直接将SWF转换为FLV毫无意义。您可以尝试使用工具(如SWF Extractor)来获取FLV文件,然后使用FFMPEG将其转换为另一种格式(如AVI或MP4)来提取资源。