[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.
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?
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.
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) )
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, email@example.com 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!
- The topic ‘[Plugin: Video Embed & Thumbnail Generator] Support for encoding WMV files’ is closed to new replies.