WordPress.org

Ready to get started?Download WordPress

Forums

Video.js - HTML5 Video Player for WordPress
[Plugin: VideoJS - HTML5 Video Player for WordPress] webm before mp4 (6 posts)

  1. jernstjernst
    Member
    Posted 1 year ago #

    Hello,

    Thanks for your plugin.

    Could you consider moving the webm version before the mp4 version in the source tags because for example chromium defaults to the mp4 file although the mpeg4 codecs aren't installed (tested on Ubuntu Linux).

    Changing the order makes the webm the default version and fixes it.

    Let me know if you need more informations or a patch.

    Best regards.

    http://wordpress.org/extend/plugins/videojs-html5-video-player-for-wordpress/

  2. Dustin Lammiman
    Member
    Plugin Author

    Posted 1 year ago #

    I'm a little torn on what to do here. mp4 tends to provide a slightly higher quality video and has wider browser support than webm, so I'm pretty hesitant to give webm priority over mp4 if both formats are available. I would also imagine that most Ubuntu users who plan on watching video will have ubuntu-restricted-extras installed. I'm open to further discussion on this if anyone else wants to chime in or if you have further thoughts.

  3. jernstjernst
    Member
    Posted 1 year ago #

    >[...] slightly higher quality video
    At the same bitrate, maybe (if you can see it on a web video)... That being said, if you don't want to automatically favour the webm video maybe your could add :

    1) An option in the settings that says "Favour webm over mp4 when both are available" (with an explanation of the pros and cons) ; I would personnaly prefer this box to be checked by default, but it's your project

    OR

    2) Change the short tag parser to take into account the order in which the user specified the streams.

    >[...] has wider browser support than webm
    If you take http://www.w3schools.com/browsers/browsers_stats.asp statistics into account for exampls:

    6.2% of IE9+ (mp4 only)
    43.7% of Chrome (webm and mp4)
    4% Safari (mp4 only)
    ---------------------------------
    ~53.9% mp4 coverage

    43.7% of Chrome (webm and mp4)
    32.8% Firefox (webm only)
    2.2% Opera (webm only)
    ---------------------------------
    ~78.7% webm coverage
    (real average numbers are a little bit more in favour to IE but not so much as to reverse the argument)

    > I would also imagine that most Ubuntu users who plan on watching
    > video

    Making chromium work with mp4 requires installing chromium-codecs-ffmpeg-extra on Ubuntu.

    Thanks for your reply by the way and all the best!

  4. southernprogrammer@gmail.com
    Member
    Posted 1 year ago #

    My vote is for number 2.

  5. skd_sam
    Member
    Posted 1 year ago #

    Just wanted to let you know I had browser issues with viewing the files if I did not add the shortcode and use webm format link before mp4 format link .. With the mp4 format link first it only played in chrome and opera but with the webm format link in shortcode first it played in all browers and on iphone just not tested in firefox.

    Any idea why this is happening?

  6. Dustin Lammiman
    Member
    Plugin Author

    Posted 1 year ago #

    @skd_sam: Sounds like a bad mp4 file to me (possibly not h.264 encoded?). See http://blog.nosecreekweb.ca/wordpress/reliable-html5-video-made-easy/#encoding-videos. Please start a new thread if you would like further support on this.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.