Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 02-10-2012, 10:11 PM   PM User | #1
mccdaddy
New Coder

 
Join Date: Dec 2005
Posts: 64
Thanks: 2
Thanked 0 Times in 0 Posts
mccdaddy is an unknown quantity at this point
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?
mccdaddy is offline   Reply With Quote
Old 02-11-2012, 05:43 AM   PM User | #2
Arbitrator
Senior Coder

 
Arbitrator's Avatar
 
Join Date: Mar 2006
Location: Splendora, Texas, United States of America
Posts: 2,931
Thanks: 6
Thanked 194 Times in 191 Posts
Arbitrator is on a distinguished road
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).
__________________
Please for the love of god stop making IE. You current "browser"s cause me to cry every day. —Phil *
Arbitrator is offline   Reply With Quote
Old 02-11-2012, 06:00 PM   PM User | #3
mccdaddy
New Coder

 
Join Date: Dec 2005
Posts: 64
Thanks: 2
Thanked 0 Times in 0 Posts
mccdaddy is an unknown quantity at this point
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?
mccdaddy is offline   Reply With Quote
Old 02-11-2012, 06:56 PM   PM User | #4
mccdaddy
New Coder

 
Join Date: Dec 2005
Posts: 64
Thanks: 2
Thanked 0 Times in 0 Posts
mccdaddy is an unknown quantity at this point
I found a great little program, Freemake Video Converter, that does the job. Thanks for pointing me in the right direction.

mccd
mccdaddy is offline   Reply With Quote
Old 02-12-2012, 05:52 AM   PM User | #5
Arbitrator
Senior Coder

 
Arbitrator's Avatar
 
Join Date: Mar 2006
Location: Splendora, Texas, United States of America
Posts: 2,931
Thanks: 6
Thanked 194 Times in 191 Posts
Arbitrator is on a distinguished road
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.
__________________
Please for the love of god stop making IE. You current "browser"s cause me to cry every day. —Phil *
Arbitrator is offline   Reply With Quote
Users who have thanked Arbitrator for this post:
mccdaddy (02-13-2012)
Old 02-13-2012, 03:21 AM   PM User | #6
mccdaddy
New Coder

 
Join Date: Dec 2005
Posts: 64
Thanks: 2
Thanked 0 Times in 0 Posts
mccdaddy is an unknown quantity at this point
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
mccdaddy is offline   Reply With Quote
Reply

Bookmarks

Tags
converted, html5, mp4, video

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 03:51 PM.


Advertisement
Log in to turn off these ads.