View Full Version : [ubuntu] [SOLVED] Hosting .wmv video comes up as gibberish

August 30th, 2008, 06:09 AM
Can anyone tell me why Apache (or Firefox) is serving (or interpreting) a .wmv file as:

��m�a�n�c�e�T�e�m�p�l�a�t�e���L�1������ �����I�s�V�B�R��������4��� ���D�e�v�i�c�e�C�o�n�f�o�r�m�a�n�c�e�T�e�m�p�l�a�t �e���M�P�@�L�L������.�����W�M�/�W�M�|O(Uݘ&���������������������@Rц1� H�������ARц1� H�����W�i�n�d�o�w�s� �M�e�d�i�a� �A�u�d�i�o� �9���*� �6�4� �k�b�p�s�,� �4�4� �k�H�z�,� �s�t�e�r�e�o� �(�A�/�V�)� �1�-�p�a�s�s� �C�B�R����a��W�i�n�d�o�w�s� �M�e�d�i�a� �V�i�d�e�o� �9��:zxɎLI
%^j8 @���� ,����"�,c\?` d7h

and not actually launching a video player such as Totem or VLC?

I tested this with my neighbour's laptop running Vista and FF3 as well.

The file permissions are 775. Am I missing something?

August 30th, 2008, 10:11 AM
Can you play wmv from other sources? For Firefox to play wmv, you usually need to have mplayer and the mozilla-mplayer plugin installed. Nice how-to at http://ubuntuforums.org/showthread.php?t=540412

August 31st, 2008, 01:15 AM
I can save the file onto my desktop and watch it fine, it just seems like Apache is serving the file as .txt by accident.

November 7th, 2008, 04:15 PM
It was a MIME problem in Apache.

I needed to add this to my .htaccess:

AddType video/x-ms-wmv wmv