I'm trying to convert swf files to flv's using ffmpeg and can't get it to work.
Other conversions like AVI to FLV are working just fine like:
ffmpeg -i $in_file -sameq -ar 22050 -ab 32 -f flv -s 320x240 $out_file
I tried it on SWF file like
ffmpeg -i c:\tmp\test.swf -vdodec flv c:\tmp\test.flv
but got an error:
FFmpeg version SVN-r15394, Copyright (c) 2000-2008 Fabrice Bellard, et al.
configuration: --enable-memalign-hack --enable-postproc --enable-swscale --enable-gpl --enable-libfaac --enable-libfaad --enable-l
ibgsm --enable-libmp3lame --enable-libvorbis --enable-libtheora --enable-libx264 --enable-libxvid --disable-ffserver --disable-vhook
libavutil 49.10. 0 / 49.10. 0
libavcodec 52. 0. 0 / 52. 0. 0
libavformat 52.22. 1 / 52.22. 1
libavdevice 52. 1. 0 / 52. 1. 0
libswscale 0. 6. 1 / 0. 6. 1
libpostproc 51. 2. 0 / 51. 2. 0
built on Sep 24 2008 15:49:57, gcc: 4.2.4 (TDM-1 for MinGW)
[swf @ 003DAD10]Compressed SWF format not supported
so I've decompressed the swf fo uncompressed format (cws2fws) but now ffmpeg complains that it cannot find the codec
ffmpeg -i c:\tmp\test_FWS.swf -vdodec flv c:\tmp\test.flv
c:\tmp\test_FWS.swf: could not find codec parameters
I'm testing on windows but implementation will be on Unix.
Can someone please tell me how to make it work?
Our website is made possible by displaying online advertisements to our visitors. Consider supporting us by disable your adblocker or try PlayON and record Netflix, HBO, Hulu, etc! :)
+ Reply to Thread
Results 1 to 4 of 4
I have the same problem. Do you found a solution?
Are either of you sure your SWF files contain an embedded FLV/compressed digital video stream, and aren't the original type of SWFs (in other words, the more simple scripted web animations)?
Most digital video converters, like ffmpeg, can only handle FLV streams, as far as I'm aware, and not the original-format SWFs. Your best bet for the latter is probably to use something to capture the audio and video of the SWF while it's playing.If cameras add ten pounds, why would people want to eat them?
I'm no expert, and have never succeeded in this. However, I think you want something to disassemble / decompile the SWF into it's components. There are some programs out there than can do this, but I never succeeded--in part b/c I was using my work computer where I don't have admin rights, and I'm scared of downloading some virus / spyware / bloatware. Hopefully one of the elements when decompiling the SWF will be the FLV file that can be converted with ffmpeg.