Announcement

Collapse
No announcement yet.

Problem with IIS 6 and mp4 files

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Problem with IIS 6 and mp4 files

    Hi everyone,

    Thank you all in advance for looking at my problem...

    I did not see a specific place in the forums to ask about this kind of issue, buit I hope someone can help me...

    I have what seems to be a unique problem, I am trying to host some mp4 video files on a website for direct download... (not streaming)

    The download links seem to work fine, the file downloads, and the byte count is the same as the original. However, once downloaded it will not play back in quicktime... I get error - 2048. Which implies that there is a problem with the codec, but the original file plays back in quicktime just fine.

    In other words, once it is downloaded through http, it becomes messed up.

    Stranger still is that the downloaded file plays just fine using another media player (vlc), but is still seen as corrupt by quicktime...

    Anybody know what I'm missing, why would the file change or become corrupt when downloaded through http?

  • #2
    Re: Problem with IIS 6 and mp4 files

    Run a MD5 hash on the original file and on the downloaded file to check if the files are still identical.
    Marcel
    Technical Consultant
    Netherlands
    http://www.phetios.com
    http://blog.nessus.nl

    MCITP(EA, SA), MCSA/E 2003:Security, CCNA, SNAF, DCUCI, CCSA/E/E+ (R60), VCP4/5, NCDA, NCIE - SAN, NCIE - BR, EMCPE
    "No matter how secure, there is always the human factor."

    "Enjoy life today, tomorrow may never come."
    "If you're going through hell, keep going. ~Winston Churchill"

    Comment


    • #3
      Re: Problem with IIS 6 and mp4 files

      Thanks for the reply Dumber!

      I created a md5 for the original and for the downloaded copy, ran a comparision and everything checks out fine...

      I am stumpted... I'm gonna run some more tests and some double checks tomorrow...

      Any more thoughts? Thanks again...

      Comment


      • #4
        Re: Problem with IIS 6 and mp4 files

        I just noticed something else strange, I don't know if this helps at all, but, once the file is downloaded... quicktime is unable to determin the dimensions or the duration of the video... I couldn't help it I'm staying late to try and figure this out, so I found this out when testing it on a mac. The error quicktime throws is, "file is not a valid video format".

        If I put in the url straight to the file, it will play the file using the quicktime plugin, and it plays fine. It is only screwed up if it is downloaded to the desktop. Also, I pulled the file down from the server, copying it to the desktop accross the network, and it plays fine.

        I am still quite baffled as to how the file could get screwed up when downloaded through http...


        ?

        Comment


        • #5
          Re: Problem with IIS 6 and mp4 files

          If the files are identical with a MD5 hash, then it's for sure that the files are identical.
          So you have to look at on a other way.
          Try a different player, check out the quicktime settings etcetc.
          Marcel
          Technical Consultant
          Netherlands
          http://www.phetios.com
          http://blog.nessus.nl

          MCITP(EA, SA), MCSA/E 2003:Security, CCNA, SNAF, DCUCI, CCSA/E/E+ (R60), VCP4/5, NCDA, NCIE - SAN, NCIE - BR, EMCPE
          "No matter how secure, there is always the human factor."

          "Enjoy life today, tomorrow may never come."
          "If you're going through hell, keep going. ~Winston Churchill"

          Comment


          • #6
            Re: Problem with IIS 6 and mp4 files

            Thanks again man, I'll be working on this all day I'm sure, hopefully I'll figure out whats going on...

            Comment


            • #7
              Re: Problem with IIS 6 and mp4 files

              Assuming you have this thread in the correct Forum, are you using a Server as a workstation or are you using another app/utility to save the files to the IIS location? Have you tried zipping the files and making them available that way for downloading?
              1 1 was a racehorse.
              2 2 was 1 2.
              1 1 1 1 race 1 day,
              2 2 1 1 2

              Comment


              • #8
                Re: Problem with IIS 6 and mp4 files

                What are you using to download the files? Try different browsers, download managers, etc. Whenever I experience download problems my first reaction is always to try using wget - it's available for Windows.
                Gareth Howells

                BSc (Hons), MBCS, MCP, MCDST, ICCE

                Any advice is given in good faith and without warranty.

                Please give reputation points if somebody has helped you.

                "For by now I could have stretched out my hand and struck you and your people with a plague that would have wiped you off the Earth." (Exodus 9:15) - I could kill you with my thumb.

                "Everything that lives and moves will be food for you." (Genesis 9:3) - For every animal you don't eat, I'm going to eat three.

                Comment


                • #9
                  Re: Problem with IIS 6 and mp4 files

                  @biggles77 and gforceindustries

                  I meant to include this information in my origional post...

                  I'm using windows server 2003 with IIS 6. I need to have download links on the pages that will allow the mp4 files to be downloaded to a users desktop. This is for a commercial/private website so I need it to be transparent to the users. I could put the files in a zip file, and that works, but it is a last resort effort. I haven't tried any other download managers, which might work but I need to support IE, Firefox, and Safari as is, so thats not really an option...

                  Here is what I think is going on... the mp4 files are "multithreaded", having a resource fork and a content fork. Turns out I don't yet know enough about encoding video files, so I may need to re-encode the videos as a "flat" mp4 file... What I still don't understand is why downloading them through http would corupt the files like this. I also found out that creating a md5 hash file doesn't matter, because it ignores the multithreaded metadata...

                  That's what I think is going on, I don't fully understand it yet. Anyway, when I find the solution, I will post it here in case someone else runs into this problem.

                  Thank you all for your helpful suggestions, I really appreciate it, and would appreciate any other thoughts on this problem...

                  Comment


                  • #10
                    Re: Problem with IIS 6 and mp4 files

                    Still don't understand.
                    Do you want the users to click on a link and have the file play or do you want the uses to click on the file and a little window open that says Save, Open (Run) or Cancel?
                    1 1 was a racehorse.
                    2 2 was 1 2.
                    1 1 1 1 race 1 day,
                    2 2 1 1 2

                    Comment


                    • #11
                      Re: Problem with IIS 6 and mp4 files

                      Yeah, there is a download button... when clicked, it prompts the user to open save or cancel. It is set up that way because the videos are specifically designed to be used on an IPOD or PSP. But I want the users to be able to watch them on their computer too...

                      Comment

                      Working...
                      X