[ Video Sharing CMS v4 ] Uploaded .mp4 videos not playing in PHPVibe 3.3

Started by leen12,

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

leen12Topic starter

hi

im getting an error with my uploaded videos when i try to play them with jw player i get error loading media file could not be played and with flow player i get html5: Video file not found

any ideas what the problem is?

thanks

format is mp4
http://hip-hop99.com best hip hop music website
http://social-nuke.com free facebook likes and shares
https://wppluginscheap.com Wordpress plugins and themes cheap
  •  

Marius P.

There could be several reasons :

1. You need to add type mp4 in the htaccess (check the full sample htaccess provided in the pack)
2. You have iptables and for some reason it's blocking mp4 (it happened)

Happy with my help? Buy me a coffee.
Please, always use the search before opening a new topic! We're all here on our (limited) free time! Make sure you help yourself too!
  •  

Marius P.

My bad, here are the full rules
AddType video/mp4             .mp4
AddType video/webm            .webm
AddType video/ogg             .ogv
AddType application/x-mpegurl .m3u8
AddType video/mp2t            .ts
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteBase /
RewriteRule ^uploads - [L,NC]
RewriteCond %{HTTP_HOST} ^videosqq.com
RewriteRule (.*) http://www.videosqq.com/$1 [R=301,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)/?$ index.php?rp=$1 [L]
</IfModule>
<ifModule mod_headers.c>
    Header set Access-Control-Allow-Origin: *
</ifModule>
php_value post_max_size 30000M
php_value upload_max_filesize 30000M
php_value max_execution_time 20000
php_value max_input_time 20000
Happy with my help? Buy me a coffee.
Please, always use the search before opening a new topic! We're all here on our (limited) free time! Make sure you help yourself too!
  •  

Marius P.

Updated from JwPlayer
Quote
Since you are using Apache, you should create a .htaccess file in the same folder that the mp4 files reside in that you are trying to play.

Here is a sample .htaccess file that will add some common MIME TYPEs for you.

<IfModule mod_rewrite.c>
  AddType video/ogg .ogv
  AddType video/webm .webm
  AddType video/mp4 .mp4
</IfModule>

This should work, as long as the MP4 files are encoded in H264/AAC.
Happy with my help? Buy me a coffee.
Please, always use the search before opening a new topic! We're all here on our (limited) free time! Make sure you help yourself too!
  •  

leen12Topic starter

hmm ok thanks for the reply,

i will give it a go and let you know if i need anymore help,

thanks again mario
http://hip-hop99.com best hip hop music website
http://social-nuke.com free facebook likes and shares
https://wppluginscheap.com Wordpress plugins and themes cheap
  •  

leen12Topic starter

ok i edited the .htacess files located in /media and /uploads

also cleared the cache a few times and switched between flow and jw players,

still the same problem

maybe i did it wrong?
this is the way the .htacess files are now
RemoveHandler .php .phtml .php3
RemoveType .php .phtml .php3
php_flag engine off
AddType video/mp4             .mp4
AddType video/webm            .webm
AddType video/ogg             .ogv
AddType application/x-mpegurl .m3u8
AddType video/mp2t            .ts
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteBase /
RewriteRule ^uploads - [L,NC]
RewriteCond %{HTTP_HOST} ^viralwire.co.uk
RewriteRule (.*) http://www.viralwire.co.uk/$1 [R=301,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)/?$ index.php?rp=$1 [L]
</IfModule>
<ifModule mod_headers.c>
    Header set Access-Control-Allow-Origin: *
</ifModule>
php_value post_max_size 30000M
php_value upload_max_filesize 30000M
php_value max_execution_time 20000
php_value max_input_time 20000
http://hip-hop99.com best hip hop music website
http://social-nuke.com free facebook likes and shares
https://wppluginscheap.com Wordpress plugins and themes cheap
  •  

Marius P.

Ok, if you did that, try this as well open root/streamer.php and change the line:



header("Content-type: video/".str_replace(,"ogv","ogg",$ext)."");

to

header("Content-type: video/".str_replace(array(".","ogv"),array("","ogg"),$ext)."");
Happy with my help? Buy me a coffee.
Please, always use the search before opening a new topic! We're all here on our (limited) free time! Make sure you help yourself too!
  •  

leen12Topic starter

boom sorted =)

thanks very much mario

another +1 for you =P
http://hip-hop99.com best hip hop music website
http://social-nuke.com free facebook likes and shares
https://wppluginscheap.com Wordpress plugins and themes cheap
  •  

Marius P.

Happy with my help? Buy me a coffee.
Please, always use the search before opening a new topic! We're all here on our (limited) free time! Make sure you help yourself too!
  •  

Similar topics (7)