Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I have a few videos on Ubuntu One cloud web storage and want to play that videos on my blog using html tag without downloading. Because my friend wants to see them withut downloading. When I enter the video URL in Firefox address bar the video stream's and played, but when I use the <video> tag it gives me an error:

contains mime type is not found!

Any body have an idea to play directly Ubuntu One videos in my blog page? thank's

share|improve this question
    
videos are in mp4 format and h.264/aac codec –  user127063 Jan 29 '13 at 16:15
    
Can you add the HTML you used please? –  Seth Jan 29 '13 at 16:19
    
<video width="800" height="600" controls> <source src="ubuntuone.com/2GefkbArwA2wtiZTWahXAy">; </video> –  user127063 Jan 29 '13 at 16:24
    
and <video width="800" height="600" controls> <source src="ubuntuone.com/2GefkbArwA2wtiZTWahXAy" type="video/mp4"></video> –  user127063 Jan 29 '13 at 16:25
    
any idea? please! –  user127063 Jan 29 '13 at 16:34
add comment

1 Answer

up vote 1 down vote accepted

Firefox does not support MP4 for the <video> tag. You will need to convert your video into Ogg or WebM for Firefox to read it. I recommend using WebM as it has the smallest file format.

Install "Ogg Convert":

sudo apt-get install oggconvert  

Make sure you have a local copy of your video.

  1. Open Ogg Convert and select your video file.

enter image description here

2: Make sure "Vido Format" is set to VP8.

3: Click "Advanced" and set "File Format" to WebM

enter image description here

4: Add a name for the file under "File Name" and select a folder to save it too.

5: Click "Convert".

6: Upload the converted file to Ubuntu One.

You're HTML should now look something like this:

<video width="800" height="600" controls>
  <source src="ubuntuone.com/2GefkbArwA2wtiZTWahXAy" type="video/mp4">
  <source src="link_To_Webm_File" type="video/webm">
 </video> 
share|improve this answer
    
thank you for your very helpful answer –  user127063 Jan 29 '13 at 16:45
    
@user127063 If this solved your problem, please accept the answer so this thread gets marked as answered. Thanks! –  Seth Jan 29 '13 at 17:22
    
sorry! but the problem is not sloved :( please go this link with firefox and opera: blog.ma3x.ir/node/9 video will successfully play in chrome but will not play in firefox and opera! what is the problem? thanks –  user127063 Jan 29 '13 at 18:28
    
@user127063 Firefox couldn't decode your video. Are you sure you set "Format" to VP8 and "File Format" to WebM? I suggest trying again. –  Seth Jan 29 '13 at 18:37
    
yes! if you not sure, you can download it by this link: ubuntuone.com/3ObFuwccGuX9iUQ7Igif0a the video codec is: VP8 and audio codec is: Vorbis thank you so moch –  user127063 Jan 29 '13 at 18:41
show 6 more comments

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.