• Resolved dbernste88

    (@dbernste88)


    I have modified the plugin to automatically convert most different video types to .mp4. However, when I upload a test.avi video it seems to bypass the “video embed thumbnail generator” completely (the plugin options are not showing on the right hand sidebar of the media upload window, where they should be). Instead, it only lets me upload a link to the video.

    Where in the plugin code can I modify the PHP or Javascript it so it bypasses the normal filter, and allows .AVI files to upload just like other file types? My custom code will take care of it form there, I just need to have it embed normally, like [KGVID ]http://www.sdwebsitedemo.com/wp-content/uploads/2013/08/test.avi[/KGVID]

    http://wordpress.org/plugins/video-embed-thumbnail-generator/

Viewing 8 replies - 1 through 8 (of 8 total)
  • Thread Starter dbernste88

    (@dbernste88)

    Also having the same issue with .WMV files. Please advise, thank you.

    Plugin Author Kyle Gilman

    (@kylegilman)

    The player can’t handle AVI or WMV files because those formats aren’t compatible with HTML5 or the Flash fallback player. However, you should be able to encode MP4, OGV, or WEBM versions of those files and really you should be able to insert the shortcode for any video file even if it won’t end up being able to play it.

    On your server what MIME types are AVI and WMV configured as?

    Thread Starter dbernste88

    (@dbernste88)

    Here are the MIME types my wmv and avi are configured as:

    $existing_mimes[‘wmv’] = ‘x-ms-wmv’;
    $existing_mimes[‘avi’] = ‘x-msvideo’;

    I’m actually don’t need the plugin to convert or do anything with the AVI and WMV files. I just need it to treat them as if they were an accepted file type (mp4 for example), so I can use the standard embed code to embed them. At the moment, WordPress seems to bypass the plugin when it recognizes an .AVI or .WMV file, so I can’t embed it with the plugin’s shortcode. Is there a configuration file somewhere where I can manually add .AVI and .WMV as accepted file types for embedding?

    I understand embedding them wouldn’t work by default, but I wrote some custom code to automatically convert the .AVI file to a .MP4 file in the back-end, and then it changes the shortcode to reflect the .MP4 extension.

    Plugin Author Kyle Gilman

    (@kylegilman)

    The plugin looks for any MIME type that starts with “video” which is what WMV and AVI files should be configured as. Rather than x-ms-wmv WMV should be video/x-ms-wmv

    Thread Starter dbernste88

    (@dbernste88)

    Perfect, that worked thanks!

    nofski

    (@nofski)

    don’t suppose you can post the code you used to amend this plugin could you. I have a bit of kit that only records in avi an I need to put these short clips online, in line with my work. I don’t want the extra work of having to convert them to another format first.

    Kind regards

    Mark

    Thread Starter dbernste88

    (@dbernste88)

    Hi Mark, please email me at dan@swssupport.com

    Thread Starter dbernste88

    (@dbernste88)

    Hi Mark, pleaseemail me at dan@swssupport.com

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Allow the player to handle .AVI video format’ is closed to new replies.