Support » Plugin: Video Embed & Thumbnail Generator » [Plugin: Video Embed & Thumbnail Generator] Support for encoding WMV files

  • Hi, just installed the plugin, I see no mention of .WMV files, but many of the videos I’m going to want to encode will be in WMV format. I can of course encode on my local machine to MP4 before uploading, but it’s less than optimal and lossy to encode twice.

    I run a Drupal site with the Video module for Drupal and it’s able to convert to x264 from all formats without trouble using FFMpeg, using the same command line.

    The command I’m using is:

    !cmd_path -y -i !videofile -f flv -crf 24 -vcodec libx264 -vpre slow -threads 0 -acodec libfaac -ar 44100 -ab 192 -s !widthx!height -qscale 1 !convertfile’

    It also uses QT-Faststart for mpv/mp4 videos.

    Anyways please advise how this plugin handles WMV files and what my best option is right now. Thanks for the wonderful plugin, looks like it’s very close to what I’m after.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Oh one more small suggestion would be to allow ffmpeg to run with the nice command on unix machines, so it doesn’t eat up all your resources and get priority over say apache and mysql while a video is encoding. I believe it’s as simple as running the command with a “nice” prefix. It wouldn’t work in Windows, though.

    Alright so I’ve tried uploading a WMV, MP4, FLV, and all of them will generate thumbnails, but none of them will encode (clicking the encode button the progress bar starts to load, but nothing happens, and “top” on my web server shows that ffmpeg isn’t being launched).

    When I click insert into post and save the post, it saves, but when I view the post I just see the [FMP] embed code as text.

    What am I not understanding?

    Plugin Author Kyle Gilman


    Starting with version 2.0 of the plugin (released on Monday night) you can upload any format FFMPEG can read (including WMVs) and you can then choose to embed one of the transcoded files instead of the original video, but that’s only if the Encode button works.

    You have two problems. One is that the encoding doesn’t work, and the other is that something in your WordPress settings or template is preventing the shortcode from being replaced by the appropriate Javascript and <video> tags when the page is rendered in a browser.

    I’d be surprised if the shortcode problem was unique to my plugin. Try changing your theme to something like Twenty Eleven and see if you still have that problem. If you do, then your theme is not pulling the content correctly. It’s probably using get_the_content in the loop instead of the_content

    The encoding issue is almost definitely related to my plugin. When it works it’s not running using nice, but I’m limiting the threads and in my experience it does run nicely, without tying up the server. I’ll try using nice though, it’s a good idea since I’m pretty much giving up on getting anything to work well in Windows.

    I can’t tell yet what’s causing your encoding problems. The first step is to turn on debugging in WordPress. Add the following lines to your wp-config.php file, then try to encode something and check the debug.log file in the wp-content folder.

    * This will log all error notices and warnings to a file called debug.log in
    * wp-content (if Apache does not have write permission, you may need to create
    * the file first and set the appropriate permissions (i.e. use 666) )
    define(‘WP_DEBUG’, true);
    define(‘WP_DEBUG_LOG’, true);
    define(‘WP_DEBUG_DISPLAY’, false);

    Thanks for the quick response! I’ll give the debugging a go. I tried switching to Twenty Eleven and the post looks the same, it just prints the entire code as text. I’m using Atahualpa as my main theme.

    This is a pretty fresh install I just registered the domain and set it up yesterday. Not sure what could be interfering, but I guess something is. I haven’t installed anything text or editing related.

    I’d be happy to send you the URL if you’re interested, it’s adult related so I don’t think I should post it here. If you wish, and I’ll respond. Also you could poke around my Drupal install for ideas on how they do things there if you like.

    Thanks, I’ll keep messing with it, looks promising!

    Hello ,

    I have to use wmv video files for my website ,can anyone help me? Is there any plugin for this?

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘[Plugin: Video Embed & Thumbnail Generator] Support for encoding WMV files’ is closed to new replies.