Problems with video conversions through the web (local host)

Posted by ron-d on Stack Overflow See other posts from Stack Overflow or by ron-d
Published on 2010-06-01T13:18:29Z Indexed on 2010/06/01 13:23 UTC
Read the original article Hit count: 230

Hello,

I get the following errors when I attempt video format conversions called from the local host:

“An invalid media type was specified” for M4V to WMV conversions. “One or more arguments are invalid” for MP4 to WMV conversions.

Here are the details of the problems:

I’ve written a dll in C# that accepts videos in the formats AVI, WMV, M4V and MP4 and performs the following actions:

  1. Creates a copy of the input video in WMV format .
  2. Creates a WAV file of the input video audio portion.
  3. Creates a JPG image from a frame of the input video.

I attached the dll to an ASP.NET web project that performs the dll actions. When tested through the developer studio, the actions are performed as intended for all formats. When I place the web project in place to be read when the local host is called through the web browser, the following behavior takes place:

WMV format: All actions performed as intended.

AVI format: Creates WMV file – OK Creates JPG image – OK Creates empty WAV file – problem.

M4V format: Creates empty WAV file – problem. Does not create WMV file -problem Does not create JPG file –problem Throws me the error “An invalid media type was specified”

MP4 format: Creates empty WAV file – problem. Does not create WMV file -problem Does not create JPG file –problem Throws me the error “One or more arguments are invalid”

When I check their security property, all the files have the same permission access parameters (when I check their security property.

Can anyone guide me as to how to solve these problems when the web project is called from the local host?

Thank you.

© Stack Overflow or respective owner

Related posts about conversion

Related posts about localhost