Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 6 of 6
  1. #1
    New Coder
    Join Date
    Dec 2005
    Posts
    65
    Thanks
    2
    Thanked 0 Times in 0 Posts

    I can't get converted video to work in HTML5...

    Hi. I love the straight-forward, Flash-free coding for video in HTML5. I'm able to embed .mp4 onto my website but, strangely, if I convert an .avi or .3gp file to .mp4 (using Format Factory) it will not play with the video tag.

    Has anyone else encountered this?

  • #2
    Senior Coder Arbitrator's Avatar
    Join Date
    Mar 2006
    Location
    Splendora, Texas, United States of America
    Posts
    3,305
    Thanks
    28
    Thanked 276 Times in 270 Posts
    Quote Originally Posted by mccdaddy View Post
    I'm able to embed .mp4 onto my website but, strangely, if I convert an .avi or .3gp file to .mp4 (using Format Factory) it will not play with the video tag.
    Which codec is used to encode your video? MP4 is just a container. If the container doesn't contain a format that your browser supports, nothing is going to play.

    As far as I'm aware, the supported formats/containers are Theora (Ogg), H.264 (MP4), and VP8 (WebM).
    For every complex problem, there is an answer that is clear, simple, and wrong.

  • #3
    New Coder
    Join Date
    Dec 2005
    Posts
    65
    Thanks
    2
    Thanked 0 Times in 0 Posts
    That's what I was afraid of; I know nothing about codecs.

    I went to wikipedia and did some reading on codecs but I still don't have a real clear grasp. I did download a Codec Identification Tool and analyzed the .mp4 that did play vs the converted one. The first one showed: "Codec- avc1, Name- H.264/MPEG-4 AVC" while the converted .mp4 was "Codec- mp4v, Name- MPEG-4 Video", so I see your point about the H.264 format.

    Any idea if there is a way to convert .avi, .3gp, .wmv, etc. to the proper codec for use with the HTML5 video tag?

  • #4
    New Coder
    Join Date
    Dec 2005
    Posts
    65
    Thanks
    2
    Thanked 0 Times in 0 Posts
    I found a great little program, Freemake Video Converter, that does the job. Thanks for pointing me in the right direction.

    mccd

  • #5
    Senior Coder Arbitrator's Avatar
    Join Date
    Mar 2006
    Location
    Splendora, Texas, United States of America
    Posts
    3,305
    Thanks
    28
    Thanked 276 Times in 270 Posts
    If you're using H.264/MP4, I'd keep in mind that Chrome, Firefox, and Opera don't support that format natively; they support the Theora/Ogg and VP8/WebM formats. There's a support listing at Wikipedia.
    For every complex problem, there is an answer that is clear, simple, and wrong.

  • Users who have thanked Arbitrator for this post:

    mccdaddy (02-13-2012)

  • #6
    New Coder
    Join Date
    Dec 2005
    Posts
    65
    Thanks
    2
    Thanked 0 Times in 0 Posts
    Thanks for the heads-up, Arbitrator. It might be a bit trickier finding a converter for Ogg and WebM video codecs.

    Perhaps I'll encourage my visitors to only use IE

    mccd


  •  

    Tags for this Thread

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •