Title: Embedding the encoded video
Last modified: August 21, 2016

---

# Embedding the encoded video

 *  Resolved [ppehrson](https://wordpress.org/support/users/ppehrson/)
 * (@ppehrson)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/embedding-the-encoded-video/)
 * Hi Again,
    I have one issue regarding adding the video to a post.
 * When in the post to add the video to, if you choose the **original **video (the
   one you encode with this plugin), it will embed the player fine with the [KGVID][/
   KGVID] shortcode.
 * But, if you choose the **encoded **video and do the same to embed the video, 
   it ends up being a downloadable link.
    In short, it is only possible to embed
   the original video in a player, and then edit the links manually.
 * How is it possible to allow embedding of any other video?
 * For info, this applies to any original video in both WMV and MP4 formats, and
   the encoded videos tested were MP4.
 * I think it’s a problem with the kgmodifyMediaInsert function, or the hook it 
   attaches to.
 * [http://wordpress.org/plugins/video-embed-thumbnail-generator/](http://wordpress.org/plugins/video-embed-thumbnail-generator/)

Viewing 5 replies - 1 through 5 (of 5 total)

 *  Plugin Author [Kyle Gilman](https://wordpress.org/support/users/kylegilman/)
 * (@kylegilman)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/embedding-the-encoded-video/#post-3995468)
 * No matter what the format, the original video is treated as the master file. 
   Any alternate formats you encode from that video are children of the original
   video. If you insert the shortcode for the original video, even if it’s a WMV,
   the plugin will only provide compatible sources (MP4, OGV, WEBM, etc) to the 
   browser.
 * I did it this way to keep things organized. If you could insert child videos 
   then it becomes more difficult to keep track of all the other formats that could
   exist related to that original video. Eventually I think it will make sense to
   take incompatible video formats out of the loop and make the highest-quality 
   MP4 the new master video.
 *  Thread Starter [ppehrson](https://wordpress.org/support/users/ppehrson/)
 * (@ppehrson)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/embedding-the-encoded-video/#post-3995469)
 * Ahh! I had no idea that this is the way it Works.
 * May I suggest you mention this more openly? I imagine others overlook this feature,
   too.
 * I don’t personally find it useful to let the master video “survive”, it will 
   take up too much space on a large site. I suggest an ability to let the encoded
   video take it’s place (possibly by manual control).
 *  [jenkisan](https://wordpress.org/support/users/jenkisan/)
 * (@jenkisan)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/embedding-the-encoded-video/#post-3995497)
 * I’m sure I understand or if its clear.
 * When Kyle says the plugin will offer the correct version of the encoded file (
   if it has been encoded) means it will offer up the webm file for example to firefox
   if it is present.
 * However, if you embed the original file it will attempt to playback the original
   file if it is compatible. So for example, on safari or chrome I embed in kgvid
   tags an m4v file which was also encoded in 480 mp4. The player however shows 
   the original file not the encoded file which is much much lighter and faster 
   to load.
 * So for example, [KGVID poster=”[http://video.mokabox.tv/wp-content/uploads/sites/75/2013/08/GP-Health-Guide_thumb81.jpg”]http://video.mokabox.tv/wp-content/uploads/sites/75/2013/08/GP-Health-Guide.m4v[/KGVID]](http://video.mokabox.tv/wp-content/uploads/sites/75/2013/08/GP-Health-Guide_thumb81.jpg”]http://video.mokabox.tv/wp-content/uploads/sites/75/2013/08/GP-Health-Guide.m4v[/KGVID])
 * will not show the mp4 file but will attempt to play back the m4v is supported
   by the browser.
 *  Plugin Author [Kyle Gilman](https://wordpress.org/support/users/kylegilman/)
 * (@kylegilman)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/embedding-the-encoded-video/#post-3995519)
 * I will definitely document that in the next update. I think there is some stuff
   in the changelog about it, but it’s not in the actual instructions. I always 
   operated under the assumption that users are uploading good video files to begin
   with and that you would like to keep them. I still believe that you are generally
   better off optimally compressing your videos before you upload them. There are
   so many fast, free programs like Handbrake to do it better and with more control.
   However, I can imagine implementing a system where you designate a new master
   video file and take the original out of the loop.
 *  Thread Starter [ppehrson](https://wordpress.org/support/users/ppehrson/)
 * (@ppehrson)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/embedding-the-encoded-video/#post-3995520)
 * In my opinion the upside of letting the server handle this is, you make sure 
   all files are converted the same way. Also it doesn’t require any codecs or software
   installed on the machine of the person who uploads the files. This is basically
   what an online converter is for.
 * So when such a file is converted (successfully) there is no reason to keep the
   original file (unless chosen so)..?

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Embedding the encoded video’ is closed to new replies.

 * ![](https://ps.w.org/video-embed-thumbnail-generator/assets/icon.svg?rev=2965979)
 * [Videopack](https://wordpress.org/plugins/video-embed-thumbnail-generator/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/video-embed-thumbnail-generator/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/video-embed-thumbnail-generator/)
 * [Active Topics](https://wordpress.org/support/plugin/video-embed-thumbnail-generator/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/video-embed-thumbnail-generator/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/video-embed-thumbnail-generator/reviews/)

## Tags

 * [embedding](https://wordpress.org/support/topic-tag/embedding/)
 * [mp4](https://wordpress.org/support/topic-tag/mp4/)
 * [video](https://wordpress.org/support/topic-tag/video/)

 * 5 replies
 * 3 participants
 * Last reply from: [ppehrson](https://wordpress.org/support/users/ppehrson/)
 * Last activity: [12 years, 10 months ago](https://wordpress.org/support/topic/embedding-the-encoded-video/#post-3995520)
 * Status: resolved