Feb 6 2009

posting a flash video in wordpress

after a 4 hours of struggling I managed to put videos into wordpress posts.

seen at Lucka’s pages. of course, the videos concern Bohdana. the first one sketches Bohdana’s first non-breast-feeding experience, the second is just a short clip of Bohdana’s ordinary afternoons games (means buzzing on the floor cracking everything around…)

now, how I made all the things do.

  1. find and install the flowplayer plugin. found here
  2. install the flowplayer plugin according to its instructions
  3. whenever you need a video, just put a ”


    )” string

that’s simply it. now how to get the right video format so that the video is visible after loading the page.

here the 4 hours came of trial-error experiments. after these 4 hours I more or less by accident came across the magic commands. here we are. I hope this will be helpful.

I converted MOV files from panasonic LSXXX.note the double call of a mencoder and then a

mencoder -oac mp3lame -ovc lavc -lavcopts vcodec=mpeg4:mbd=2:trell -of avi
<file.mov> -o output.temp.avi -srate 8000

ffmpeg -i output.temp.avi -vcodec flv -s 412x240 -acodec libmp3lame -r 24
-y -ac 1 -ar 22050 <file.flv>

this way encoded, the <file.flv> should be visible in the web-page in a flowplayer window.

further improvements will be reported.