Converting SWF file to FLV with FFMPEG and getting "could not find codec options" error
Hi I am trying to convert SWF file to FLV but I am getting the same eror
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
Please resolve this problem, what am I doing wrong ??
+2
a source to share
2 answers
SWF is not a media container like MP4 or AVI. It has many things more like vector data for graphics, ActionScript code, and so on. It can also embed FLV files as resources.
So, there is no point in trying to convert SWF to FLV directly with FFMPEG. You can try to extract resources using a tool like SWF Extractor to get the FLV file and then use FFMPEG to convert it to another format like AVI or MP4.
+2
a source to share