How to change mime-type mapping for mp4 files?

Status
Not open for further replies.

jragsx10

New Member
Messages
12
Reaction score
0
Points
1
I would like to also add, when I test this in IE, and inspect the webpage, I do see that Internet Explorer is picking up the type as "video/mp4"

HTTP GET 206 result.

The HTTP 206 status code occurs if the response is the result of an If-Range request that used a strong cache validator. The response SHOULD NOT include other entity-headers. If the response is the result of an If-Range request that used a weak validator, the response MUST NOT include other entity-headers; this prevents inconsistencies between cached entity-bodies and updated headers.

Can anyone help explain this better? Thanks!


Also see this as well --- MEDIA12899: AUDIO/VIDEO: Unknown MIME type.
 

caftpx10

Well-Known Member
Messages
1,534
Reaction score
114
Points
63
Just to point out something, the web host here uses Linux so it doesn't use IIS services. The web server uses Apache, that uses .htaccess files.
So, in a .htaccess file, it would be something like this:
Code:
AddType video/mp4 .mp4
 

Dead-i

x10Hosting Support Ninja
Community Support
Messages
6,084
Reaction score
368
Points
83
Hi,

I attempted to replicate your issue on xo7, but Chrome reported that it was seeing the correct type.
Content-Type: video/mp4


Please could I have a link to the video that is not playing correctly?

Thank you,
 

jragsx10

New Member
Messages
12
Reaction score
0
Points
1
@caftpx10 - thanks, linux sounds better than IIS. I searched my directory and did not see anything named htaccess files. But yes that is the string I'm looking to probably add somewhere.

I did find this file under /.cpanel/datatstore/SYSTEMMIME , that has a few entries for .mp4. I'm wondering if one of them is getting priority. I tried removing .mp4 = audio/mp4 but it didn't work.

@Dead-i - http://jrags.net/link/ultrasound.html is the webpage, direct vid link = http://jrags.net/vid/ultrasound/ultrasound1.mp4

I'm debating whether its a file issue, because when I download the .mp4 from the website, it plays fine on my PC? http://jrags.net/vid/ultrasound/

Thanks for the fast responses, the community here is awesome!
 

essellar

Community Advocate
Community Support
Messages
3,295
Reaction score
227
Points
63
.htaccess is a dot file (extension only, no file name before) so it's hidden unless you specifically choose to "show hidden files (dot files)". (It's the equivalent of a system file in Windows.) You may need to create one for yourself. Do not modify or attempt to modify server config files; directory-local files (like .htaccess) have priority.

As for the 206, that's out of your control unless you're configuring your own server stack. It's a response that's returned to the browser (or other user agent) that says basically "here's the part of the file that you requested" when you're requesting parts of files (as for streaming or breaking the file up into multiple request streams using a download manager). It's sort of the same as a 200, except it's only for a byte range in a file, not the whole file.
 

jragsx10

New Member
Messages
12
Reaction score
0
Points
1
Thanks essellar.

Maybe I can look into creating the .htaccess file. I do have the show hidden files options selected.

So, I uploaded a completely separate .mp4 video file and the video works in Internet Explorer. At this point its safe to assume its not a x10hosting or cpanel issue. I appreciate the responses. There's probably something wrong with the .mp4 video that I converted.

Please close the thread at your earliest convenience.

Thanks all, -Justin
 

jragsx10

New Member
Messages
12
Reaction score
0
Points
1
I got it working. (once again, not x10host.com or cpanel issue)

The issue was with my .mp4 file. Something must have been missing as essellar suggested or just not loading properly. I used a basic free .mp4 converter to re-do my files.

http://video.online-convert.com/convert-to-mp4

Renamed my video files to .MOV on my desktop, uploaded the .MOV to the website above --> convert to .mp4.
Downloaded the new .mp4 to my desktop, upload to website, and now it works perfectly.

Thank you again!!! -Justin
 

essellar

Community Advocate
Community Support
Messages
3,295
Reaction score
227
Points
63
In case you weren't aware of it, VLC Media Player has a very good format conversion utility, and it's free (both gratis and FOSS); it will transcode just about any (watching) format (not so much the formats that are intended for editing/grading).
 
Status
Not open for further replies.
Top