1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

embedding avi files

Discussion in 'Graphics & Multimedia' started by lordofthemorning, May 31, 2007.

  1. #1
    Hello,

    I have been trying to make avi files play on a simple html page, but nothing happens?? It just shows the player and sits there.

    Code I am using:

    <object width="500" height="400"
    classid="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95"
    id="mediaplayer1"><param name="Filename" value="Naruto.001"><param name="AutoStart" value="True"><param name="ShowControls" value="True"><param name="ShowStatusBar" value="False"><param name="ShowDisplay" value="False"><param name="AutoRewind" value="True"><embed type="application/x-mplayer2"
    pluginspage="http://www.microsoft.com/Windows/Downloads/Contents/MediaPlayer/"
    width="500" height="400" src="url is here"
    filename="Naruto.001" autostart="True"
    showcontrols="True" showstatusbar="True"
    showdisplay="False" autorewind="True"></embed></object>

    also tried a simpler one:

    <embed height=400 pluginspage=http://quicktime.apple.com/ src="url was here" width=500 loop="true" controller="true" autoplay="true"></embed>

    Neither produced anything? I have checked the source path over and over again. I even checked the permissions on the server!!!

    Any help would be greatly appreciated! Also, Is there a good (maybe free?) video converter out there?

    Thanks!
     
    lordofthemorning, May 31, 2007 IP
  2. Webnauts

    Webnauts Peon

    Messages:
    133
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #2
    You cannot have the embed element in the object element. Try this:

    <object width="500" height="400"
    classid="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95"
    id="mediaplayer1"><param name="Filename" value="Naruto.001"><param name="AutoStart" value="True"><param name="ShowControls" value="True"><param name="ShowStatusBar" value="False"><param name="ShowDisplay" value="False"><param name="AutoRewind" value="True"></object>

    <embed type="application/x-mplayer2"
    pluginspage="http://www.microsoft.com/Windows/Downloads/Contents/MediaPlayer/"
    width="500" height="400" src="url is here"
    filename="Naruto.001" autostart="True"
    showcontrols="True" showstatusbar="True"
    showdisplay="False" autorewind="True"></embed>
     
    Webnauts, May 31, 2007 IP
  3. Paul8368

    Paul8368 Well-Known Member

    Messages:
    614
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    110
    #3
    Interesting thread I'm going to try this myself :)
     
    Paul8368, May 31, 2007 IP
  4. Webnauts

    Webnauts Peon

    Messages:
    133
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Be aware that the <embed> element is not a W3C valid element.

    As a web standards advocate I avoid it, and I come over the whole thing with this sample technique:

    <object data="http://www.youtube.com/v/0klgLsSxGsU" type="application/x-shockwave-flash" width="425" height="350">
    <param name="movie" value="http://www.youtube.com/v/0klgLsSxGsU" /></object>
     
    Webnauts, May 31, 2007 IP
    marioland likes this.
  5. lordofthemorning

    lordofthemorning Well-Known Member

    Messages:
    435
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    115
    #5
    thanks for the help :)

    I would use youtube, but file size is an issue. Can't find a good conversion software.
     
    lordofthemorning, May 31, 2007 IP
  6. lordofthemorning

    lordofthemorning Well-Known Member

    Messages:
    435
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    115
    #6
    update: still getting the connecting forever. Wonder if the file size is to big? 170mb? What is the best format for video's online? Software to convert to that?
     
    lordofthemorning, May 31, 2007 IP
  7. Shawn81

    Shawn81 Peon

    Messages:
    6
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Yes there is no reason why you should be using the .avi format. avi is way to big and uncompressed for the web. Flash can export that as a .swf I believe and probably knock it down to a few MB.
     
    Shawn81, May 31, 2007 IP
  8. lordofthemorning

    lordofthemorning Well-Known Member

    Messages:
    435
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    115
    #8
    thanks, a lot of converting up ahead :)
     
    lordofthemorning, Jun 1, 2007 IP
  9. Paul8368

    Paul8368 Well-Known Member

    Messages:
    614
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    110
    #9
    have you considered .flv? I'm looking at this format at the moment.
     
    Paul8368, Jun 8, 2007 IP
  10. Mirage

    Mirage Active Member

    Messages:
    204
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    58
    #10
    I have used the .flv format on a few occassions. I highly reccomend it. Compression is good and quality is not bad.
     
    Mirage, Jun 8, 2007 IP