VideoHelp Forum

Our website is made possible by displaying online advertisements to our visitors.
Please consider supporting us by disabling your ad blocker or buy PlayOn and record Netflix! :)
+ Reply to Thread
Results 1 to 4 of 4
  1. Member
    Join Date
    Oct 2008
    Search Comp PM
    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
    --enable-avisynth --enable-pthreads
    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?
    Quote Quote  
  2. Member
    Join Date
    Dec 2008
    Search Comp PM
    I have the same problem. Do you found a solution?

    best regards.
    Quote Quote  
  3. VH Wanderer Ai Haibara's Avatar
    Join Date
    Jan 2006
    Somewhere on VideoHelp...
    Search Comp PM
    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?
    Quote Quote  
  4. Member tmw's Avatar
    Join Date
    Jan 2004
    United States
    Search Comp PM
    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.
    Quote Quote  

Similar Threads