Welcome to Linux Forums! With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.
Find the answer to your Linux question:
New to Linux Forums? Register here for free!
    Linux Forums > GNU Linux Zone > Servers > Problem with mp4 videos.

Forgot Password?
 Servers   Anything server related, Apache, MySQL, Samba, server security, sendmail, exim, etc

Site Navigation
Linux Articles
Linux Forums
Linux Downloads
Linux Hosting
Free Magazines
Job Board
IRC Chat
RSS Feeds


Linux Forum Topics
Linux Forums
Your Distro
Linux Resources
GNU Linux Zone
The Community
Reply
 
Thread Tools Display Modes
Old 3 Weeks Ago   #1 (permalink)
Just Joined!
 
Join Date: Oct 2009
Posts: 4
Problem with mp4 videos.

Hello everybody,



I have a problem with some mp4 videos and the downloads made from cellphones.



I have a plain LAMP server (centos 5, apache 2, php 5), the customers download the videos from a web, mobile section, and play on their cellphones.



The strange thing is that when they opened the video to play it on the cellphone, the video shows itself as a binary, although the extension remains mp4.



Tried moving the same video to another server, and it was played ok without any changes.. so, tested another server and after making this changes, it was able to reproduce the mp4 format:



I changed the Default mime.types from text/plain to application/octet-stream



TypesConfig / etc / mime.types



# DefaultType is the default MIME type the server will use for a document

# If it can not otherwise determine one, such as from filename extensions.

# If your server contains mostly text or HTML documents, "text / plain" isnte

# A good value. If most of your content is binary, such as applications

# Or images, you may want to use "application / octet-stream" instead to

# Keep browsers from trying to display binary files as though they are

# Text.

#

DefaultType application / octet-stream



When the videos out in binary, with a lot of strange characters, leaving just this: application / octet-stream



I see in /etc/mime.types and there is support for many formats, including. Mp4



However, on the original first server even if I change the above code, I can not reproduce mp4.



On any laptop or pc from the three servers I can reproduce the videos, the problem it’s just on one server playing from cellphones.



I think it's a parsing problem.



Do you have any suggestions for me on this?



What do you think?



Regars,

Nelo.-
nelo is offline  


Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Free Magazines
Run Your Own Web Server Using Linux & Apache - Free 191 Page Preview
Learn about everything you'll need to build and maintain your Linux servers, and to deploy Web applications to them.
subscribe
Open Source Security Myths Dispelled
Dispel the five major myths surrounding Open Source Security and gain the tools necessary to make a truly informed decision for your IT organization
subscribe
InformationWeek
InformationWeek is the only newsweekly you'll need to stay on top of the latest developments in information technology.
subscribe



All times are GMT. The time now is 11:17 AM.






© 2000 - 2009 - All Rights Reserved - Property of  MAS Media

Content Relevant URLs by vBSEO 3.3.0 RC2