SWFPut is a video plugin for WordPress that can be used in posts and pages and the widget areas (sidebar, etc.).


The first sample is a small clip of Sita Sings the Blues, a public domain work. The clip is served from this host, but the whole feature length animation is available at Archive.org. There are several formats available, including a prepared DVD Video filesystem ready to burn on a single layer blank.

Sita Sings the Blues (2008) one minute clip

The clip here was encoded at a low bitrate to reduce data transfer, and some compression artifacts are visible. Be assured that those artifacts are not present in the original available at Archive.org. Video to be displayed with SWFPut doesn’t need to be hosted on the same machine as the WordPress site. You can use an off-site URL (provided, of course, that it is your privilege to link to the material).

Duffy the Mascot at Archive.org

The second sample is a short stop-animation film served from Archive.org. The animation is done very well, and the film is amusing. And cute too. Watch the detail.

6 thoughts on “SWFPut

  1. Hi!
    When I publish a FLV-movie the movie is just black when I run it from the website. When I run it from the computer it looks as it should do.

    [putswf_video url="http://goldwing.ddns.me/wp-content/uploads/2014/12/anim01.flv" width="360" height="360" align="center" preload="image"][/putswf_video]

    What is wrong?

    Best regards,
    /Thomas Andersson

    1. Hi,

      I checked the .flv from your link. It is unusual: it has only 8 11 frames, and also uses the sorenson codec (the h264 codec is common in newer flv files).

      I confirmed that your .flv does not play, but after conversion to .flv with the h264 codec it is fine. This is most likely caused by the Adobe flash plugin itself; in any case, I cannot think of anything in my video player flash program that would behave differently depending on the codec used in an .flv file.

      Moreover, conversion to .mp4 format is fine, and this has the advantage of making the HTML5 video player available. That’s good because the Adobe flash plugin has fallen out of favor on some platforms.

      So the easiest solution is to convert the file to modern .flv with h264 codec, or preferably .mp4. And if you have video conversion software handy, I would also suggest providing .ogv and .webm types as well.

      UPDATE: I had suggested an .ogv type, but I find the software I use (ffmpeg) does not make a working .ogv video. The small number of frames is probably a problem for some codecs. Conversions to .mp4, .webm, and h264/.flv do work.

      – Ed

  2. Thanks for the plugin, I’m using to replace flvplayer. I’ve tried to insert an flv that’s loaded via filemanager as wordpress seems to be blcoking the load of flv. Anyway, the file is created from screenflow on a mac and then saved as an flv. I can see the file from various of the plug in drop downs, but never managed to get it to play. I found the code from this page and I can now get the file to play, but everytime I set loop and autoload options they have no effect and the settings disappear each time I reload the page in edit mode – see http://www.christchurchtonbridge.com/powerpoint2 – Looking at a couple of pages I wondered if mp4 files would autoplay better, so I then exported it as an mp4 and tried again. This time I could upload the media using standard wordpress and the file would play. http://www.christchurchtonbridge.com/powerpoint . However, I still can’t get it to loop or autoload. What am I doing wrong? Any advice greatfully recieved.

    1. I’ll be glad to help if I can. I’ll address your points, but out the of order they were stated in.

      • “[…] everytime I set loop and autoload options they have no effect and the settings disappear each time I reload the page […]”
        To edit an SWFPut video after it has been inserted, click the button “Fill from post”. If there is more than one video then repeated clicks will cycle throught all. When the video you want to change is current in the SWFPut form (evident from the form fields), make any changes (such as loop and autoload) and then click the “Replace current in post” button (that button places the modified data in the editor, and without it changes are lost). Also, be sure to click the “Update” button in the Publish metabox to send the changes back to the WordPress database.
      • “[…] an flv that’s loaded via filemanager as wordpress seems to be blcoking the load of flv.” I’m not sure I understand, but it might be the limit on the size of file uploads. Upload size limits are imposed by both PHP (the language) and WordPress. Adjusting the limit is complicated, and might require permission and help from your site hosting provider, but an alternative is to upload large video files with ssh (Secure Shell) or ftp. Place the files under the the wp-content/uploads directory (or preferably a subdirectory under wp-content/uploads) and the files should be available from the SWFPut form, provided they have a suffix associated with a supported video format (.flv, .mp4, .ogg, .ogv, .webm).
      • Regarding .mp4: “This time I could upload the media using standard wordpress and the file would play.” Maybe the file was just slightly smaller than the .flv; enough to fit under the limit. In any case, .mp4 is preferable for a number of reasons. The best practice, if you have the means, is to provide the video in conversions to all supported formats. That will be the most reliable among the several web browsers and the various platforms they run on.

      Note that when you are on the post/page editor page, at the top right corner there is a “Help” button. That will drop down a help text area with tabs for topics on the left. There is a tab for SWFPut, and the discussion there might be helpful.

      Feel free to ask more questions.

  3. Having posted the question, I managed to track down part of the answer – at least for wmv and mp4 files. The “text” in wordpress should be something like this [video width="1040" height="720" wmv="http://mywebsite.com/wp-content/uploads/myfile.wmv" autoplay="y" loop="on"][/video] – hope that helps someone else.

    1. Well, using [video][/video] is not using SWFPut; that will use the video player included with WordPress. That might or might not be suitable. I have not checked with the latest WordPress version 4.1, but in previous versions the default video player did not handle size very well on small devices or simply small browser window sizes.

      SWFPut uses JavaScript to adjust the displayed size according to available space and the surrounding page elements. After much testing, I believe it adjusts well to various screens, and handles interactive window resizing well too.

      In any case, you certainly want to avoid the .wmv video format, unless you only want users of Microsoft Windows to see your videos — and even then probably only those using Internet Explorer. Regardless of whether you use SWFPut or the WordPress default video player, your best single choice for a video format (presently) is probably .mp4 if you want the best chance that the video will work for most of your site visitors using any browser or platform.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>