flash - 使用 FFMPEG 将 SWF 文件转换为 FLV 并出现错误 "could not find codec parameters"

标签 flash ffmpeg flv

您好,我正在尝试将 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/

相关文章:

c# - 如何在 C# 中停止 ffmpeg 视频录制?

video - 使用 ffmpeg 编码没有音频的 flv 视频

转换 flv1 (flv) -> h264 (libx264) 时出现 FFMPEG 错误

video - 为什么 ffmpeg 将 FLV 转换为 h264 时会删除 SEI 消息?

android - Twitch 应用程序如何流式传输到 Android?

flash - 本地定时器对象事件处理程序

html - 在 ActionScript 中从 data-in-uri(base64 编码的 PNG)创建图像

flash - 用于在 Flash 中创建示意图(即地铁、地铁 map )的库

C# 将位图转换为 FFmediaToolkits ImageData

FFMPEG:如何将输入的摄像机流保存到具有相同编解码器格式的文件中?