SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    SitePoint Addict
    Join Date
    Jun 2006
    Posts
    250
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    How to play AVI files?

    I'm trying to browse to an .avi file on my server, but keep getting a 404 error.

    Does anyone know the correct mime type you need to use for an AVI? (assuming its that whats causing the problem)

    I've tried the following with no joy:

    video/avi
    video/msvideo
    video/x-msvideo

    Many thanks

  2. #2
    om nom nom nom Stomme poes's Avatar
    Join Date
    Aug 2007
    Location
    Netherlands
    Posts
    10,233
    Mentioned
    47 Post(s)
    Tagged
    1 Thread(s)
    I have no idea, but do your server logs show all the requests to the page and show that it really is a Not Found?

  3. #3
    Foozle Reducer ServerStorm's Avatar
    Join Date
    Feb 2005
    Location
    Burlington, Canada
    Posts
    2,699
    Mentioned
    89 Post(s)
    Tagged
    2 Thread(s)
    Quote Originally Posted by mattastic View Post
    I'm trying to browse to an .avi file on my server, but keep getting a 404 error.

    Does anyone know the correct mime type you need to use for an AVI? (assuming its that whats causing the problem)

    I've tried the following with no joy:

    video/avi
    video/msvideo
    video/x-msvideo

    Many thanks
    The correct mime type is vide/avi. As @Stomme poes says you should check you logs.

    One common error is that the web-server does not have permissions to run the video so instead it returns 404 (on some servers). You should check that the video has permissions that are readable by you web server.

    How are you setting the mime types? Do you have a .htaccess file or any rewriting code that may be running this afoul?
    ictus==""

  4. #4
    SitePoint Member
    Join Date
    May 2013
    Posts
    9
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Perhaps the video has not been encoded properly to play that format on that particular device? Just a thought...

  5. #5
    Barefoot on the Moon! silver trophy
    Force Flow's Avatar
    Join Date
    Jul 2003
    Location
    Northeastern USA
    Posts
    4,524
    Mentioned
    51 Post(s)
    Tagged
    1 Thread(s)
    Quote Originally Posted by G-box TV View Post
    Perhaps the video has not been encoded properly to play that format on that particular device? Just a thought...
    If the browser doesn't support playback of a particular media file, the user will be prompted to download it instead.
    Visit The Blog | Follow On Twitter
    301tool 1.1.5 - URL redirector & shortener (PHP/MySQL)
    Can be hosted on and utilize your own domain


Bookmarks

Posting Permissions

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