Wink : SWF to FLV

I looked around on how to do this (converting Wink‘s SWF output into FLV / other video format), but to no avail.
Apparently, the SWF produced is not really a video file (however, in return, the size is usually much smaller than if saved into a video file). Both mencoder & ffmpeg failed to convert Wink’s SWF file into FLV, both giving error message “No media found in SWF”.

But of course if you’re going to upload them to YouTube or other video sites, you’ll need the Wink screencasts in video format.

There’s a workaround for this.

**WARNING** I don’t claim to be the expert on the topic (video encoding / transcoding) and comments to make this guide better is most welcome. Make backups before proceeding with this short tutorial. Although the steps are safe to my knowledge if you’ve made backups of your original files, I give no warranty whatsoever.

1. In Wink, choose menu File – Export As HTML
2. Save As : /tmp/sss.htm (for example), then on “file type to save images” choose JPEG. click OK.
3. Get mencoder. If you’re using Ubuntu, it’s as simple as “aptitude install mencoder”
4. Now we’re going to convert it. Type mencoder “mf:///tmp/sss_files/*.jpg” -mf fps=2 -o /home/harry/cool.flv -ovc lavc -lavcopts vcodec=mpeg4 (pretty simple eh?)
5. Done !

Notes:

  1. Sharp-eyed reader may noticed the vcodec=mpeg4 parameter and wonder why it’s not vcodec=flv. Reason is because the resulting file can’t be played, with both VLC & Totem confused looking for flv codec. And they both play flv files from YouTube with no problem. Since vcodec=mpeg4 gives a playable file, so I used that.
     
  2. There’s a slight problem where Wink saved the screencast as 1.jpg … 10.jpg … 100.jpg, and so on. As you can imagine, they’re listed as the following :

    (snipped)
    -rw-r–r– 1 helen helen 84658 2007-08-20 11:20 sss09.jpg
    -rw-r–r– 1 helen helen 52921 2007-08-20 11:20 sss100.jpg
    -rw-r–r– 1 helen helen 53043 2007-08-20 11:20 sss101.jpg
    -rw-r–r– 1 helen helen 53345 2007-08-20 11:20 sss102.jpg
    (snipped)
    -rw-r–r– 1 helen helen 53382 2007-08-20 11:20 sss108.jpg
    -rw-r–r– 1 helen helen 98914 2007-08-20 11:20 sss109.jpg
    -rw-r–r– 1 helen helen 84702 2007-08-20 11:20 sss10.jpg
    -rw-r–r– 1 helen helen 98681 2007-08-20 11:20 sss110.jpg

    The naming convention messed up the order of the files, and as the consequences, mencoder’s output also got messed up.

    We’ll need to rename these files so the filenames order will be similar to this :

    (snipped)
    -rw-r–r– 1 helen helen 84658 2007-08-20 11:20 sss07.jpg
    -rw-r–r– 1 helen helen 84658 2007-08-20 11:20 sss08.jpg
    -rw-r–r– 1 helen helen 84658 2007-08-20 11:20 sss09.jpg
    -rw-r–r– 1 helen helen 52921 2007-08-20 11:20 sss10.jpg
    -rw-r–r– 1 helen helen 53043 2007-08-20 11:20 sss11.jpg
    (snipped)

    The easiest way is to use mmv tool. Again in Ubuntu this is as simple as “aptitude install mmv”. Then execute the following commands :

    ## assuming number of files reaching thousands
    mmv -v “sss?.jpg” “sss000#1.jpg”
    mmv -v “sss??.jpg” “sss00#1#2.jpg”
    mmv -v “sss???.jpg” “sss0#1#2#3.jpg”

    That should fix it in a few seconds.

     

  3. There’s a discussion here saying that this (SWF to FLV) can be accomplished with a command as simple as ./edit.py -o cool.flv cool.swf

    However, again VLC unable to play the resulting flv file, complaining about missing “undf” codec.

40 thoughts on “Wink : SWF to FLV

  1. I’m trying to rival slashdot’s dupes here, don’t you know it’s their success’ secret ? Now you know.

  2. if you switch Wink’s output to uncompressed SWF, ffmpeg will convert it to a .flv with no problem.

  3. I ran into problem with the two different file formats on my website. I had someone create a flash file for me and they created it as and SWF file. I tried updating the file but had problems so I had the file recreated in FLV

  4. as for me, i always use iwisoft [url=http://www.swf2flv.net/]swf to flv[/url] converter to do that conversion, the conversion quality is very well, maybe you can try.

  5. as for me, i always use iwisoftswf to flv converter to do that conversion, the conversion quality is very well, maybe you can try.

  6. if you switch Wink’s output to uncompressed SWF, ffmpeg will convert it to a .flv with no problem.

  7. Professional M2TS decoder and popular encoders are built in. The conversion is at unmatched speed with excellent image and sound quality.

  8. QuickTime Converter Mac is an excellent Mac QuickTime converter tool to help you convert QuickTime video to other video formats and converter videos of any format to QuickTime MOV videos on Mac OS.

  9. Hey thanks a lot for such a wonderful information about the SWF and FLV. I was actually looking for these information for quite a long time and i believe i have landed at the right page. I really liked your ways of expressing thoughts. You write too well. Moreover your article contains some worthy information which i guess will help lot of people. Thanks a lot one more time for publishing these nice posts and keep up publishing ones in the future too.

  10. Blu Ray Disc Copy is a professional and practical software which supports Blu ray movies copying as well as DVD copying. You can use this Blu Ray Disc Copy software to copy Bluray disc, Bluray folder, or Blueray ISO file without any quality loss. All the contents can be copied to the target file/disc quickly and perfectly. Blu Ray Disc Copy supports all Blu ray and DVD discs and it can remove AASC, CSS, and region protection from them. So that enjoying your Blu ray discs and DVDs freely and conveniently is no longer a problem for you.....

  11. SWF4Tube Converter is a easy-to-use tool on converting Flash Projector .exe file and flash SWF file to flash video file, such as SWF to FLV, SWF to MP4, Flash Projector .exe file to FLV and MP4 with no problem referring to audio and video asynchronization, audio distort, video choppy and so on.

  12. Firefox is getting slower and slower. I’m using Google chrome instead, because I find Firefox slower and it’s affecting my work as a content writer

  13. I beloved as much as you will receive performed right here. The caricature is attractive, your authored material stylish. nonetheless, you command get got an shakiness over that you would like be turning in the following. ill undoubtedly come more until now once more since exactly the same nearly very often inside of case you defend this hike.

Leave a Reply

Your email address will not be published.