Multi Server Video Won't Play with IE
I added a server to my admin panel and uploaded a few videos. I check my folder in the new server...the .flv files are there. They videos play on Firefox but refuses to play on IE. Player shows but video will not play. Anyone had that problem and fixed it? please help.
Re: Multi Server Video Won't Play with IE
According the activity window, the video is returning an error code (both IE and Safari, not Firefox). Do you have any type of hotlinking protection setup on your new server?
Re: Multi Server Video Won't Play with IE
I just checked....there is no hotlinking protection on the new server. This bothers me alot...most people use IE...please help.
Re: Multi Server Video Won't Play with IE
I just copied off the source from one of your pages and created a new page from it. When I did this, I noticed that there were some special characters in it (magic quotes and non UTF-8 line endings). I resaved the file with standard UTF-8 line endings and in ASCII and the video worked correctly. What you will need to do is open your player.inc file and your view_video.tpl file and resave them as UTF-8 in ASCII mode (normal line endings). Then reupload them to your server and give it a try.
Just for the record, you could also make this work without the UTF-8 problem if you remove the underscore (_) from your new file directory.
Re: Multi Server Video Won't Play with IE
I removed the (_) from the directory name TF_Videos to TFVideos and it's still not working. I'm told it's a security change make on Flash 7. If you hosting files/video on an external server...you cannot connect to it from the main server without writing a crossdomain.xml script to allow the connection. This is Flash 7 on IE. You said you can see the video using Flash 7 on IE?
Re: Multi Server Video Won't Play with IE
The information that you have received deals with data from Flash files, not Flash Video. Basically, a Flash file called from http://www.example.com/example.swf can access a file, say http://www.example.com/data.txt. However, http://www.example.com/example.swf cannot access a file located at http://www.example2.com/data.txt. This is what the cross domain file is for.
For you, the problem is that the file returns an error. When I saved a copy of your page in UTF-8, I was able to view the video fine from all browsers. However, this may or may not be your problem. I'm still thinking that it may be a server issue.
Re: Multi Server Video Won't Play with IE
I'm glad it's not the crossdomain stuff. How do I save a file in UTF-8 format? if it's a server problem...which server you thing it may be...the main server with the scripts or the second server with the videos and what do you think it may be? I was told I don't need to do anything special to the second server...the one i uploaded the videos to...
Can you please help me fix this...i'll pay if I have to. My main server MySql is using over 130% of CPU..my server is super slow even though i'm paying $500 for it. It's a core2Quad with 1 CPU and 4 cores, 1000GB hard drive, 8GB RAM. I may need to add another CPU but I was thinking adding another server and transfer the videos there will take the pressure off the main site.
If you also know a good host where i can get a big server with multiple CPUs that can host a site with over 5 million monthly pageviews....that would help me very much. I have a budget of $600/month for the server. I'm paying that out of my job(pocket) cause site is only 3 months old and have not made any real cash from it yet.
Thanks you sir.
Re: Multi Server Video Won't Play with IE
Your remote server have an .htaccess file in it with following content.
Code:
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://(www\.)?bootytube247.com(/)?.*$ [NC]
RewriteRule \.(flv|swf|png|bmp|js|css|jpg|jpe?g|gif|wmv|avi)$ /templates/images/logo.jpg [L,NC]
I try delete it, but got permission deny error. May be you need server admin to delete the file.
http://www.buyscripts.in/tmp/f/remot..._topfreaks.jpg
If you delete the file, it will work.
As for crossdomain.xml put
Code:
<cross-domain-policy>
<allow-access-from domain="*.*"/>
</cross-domain-policy>
Re: Multi Server Video Won't Play with IE
Removing the .htaccess will probably fix the video problem, but the slowness issue isn't going to be solved by moving videos to another site as the main site is still doing all of the work (the second server is just hosting the files and is not taking over processes). Using 130% CPU may not be a problem as you have a quad-core processor, but it could be a sign of poor optimization. I could help you optimize your system for the load. Send me a PM and we can discuss that.
Re: Multi Server Video Won't Play with IE
Quote:
Originally Posted by topfreaks
Can you please help me fix this...i'll pay if I have to. My main server MySql is using over 130% of CPU..my server is super slow even though i'm paying $500 for it. It's a core2Quad with 1 CPU and 4 cores, 1000GB hard drive, 8GB RAM. I may need to add another CPU but I was thinking adding another server and transfer the videos there will take the pressure off the main site.
Mysql is on same server or different ? Have you modified the default /etc/my.cnf ? To reduce cost, put flv files in low cost servers with lower cpu, use lighttpd for serving flv files. Next version we will have lighttpd mod_secdownload to prevent hotlinking (that will shop embed too)
Re: Multi Server Video Won't Play with IE
Quote:
Originally Posted by topfreaks
My main server MySql is using over 130% of CPU..my server is super slow even though i'm paying $500 for it. It's a core2Quad with 1 CPU and 4 cores, 1000GB hard drive, 8GB RAM.
Yes that is true vshare script is very slow due to the SQL. It needs caching system for fast page loads and to reduce the SQL connections. This is one of the main feature request that need to be completed in the next version.
Re: Multi Server Video Won't Play with IE
Can someone help me fine tune this with better optimization?
#set-variable = innodb_buffer_pool_size=10M
#set-variable = innodb_additional_mem_pool_size=500K
#set-variable = innodb_log_buffer_size=500K
#set-variable = innodb_thread_concurrency=2
#set-variable = interactive_timeout=60
#set-variable = max_connections=1000
#set-variable = max_user_connections=1000
#set-variable = key_buffer=140M
#set-variable = join_buffer_size=4M
#set-variable = read_buffer_size=1M
#set-variable = sort_buffer_size=8M
#set-variable = table_cache=1800
#set-variable = thread_cache_size=64
#set-variable = wait_timeout=120
#set-variable = connect_timeout=60
#set-variable = tmp_table_size=300M
#set-variable = max_heap_table_size=64M
#set-variable = max_allowed_packet=200M
#set-variable = max_connect_errors=10
#set-variable = thread_concurrency=2
#set-variable = read_rnd_buffer_size=300M
#set-variable = myisam_sort_buffer_size=64M
#set-variable = bulk_insert_buffer_size=8M
#set-variable = query_cache_limit=1M
#set-variable = query_cache_size=32M
#set-variable = query_cache_type=1
Re: Multi Server Video Won't Play with IE
That is all commented values, that is content of your /etc/my.cnf ?
Try this configuration
Code:
[mysqld]
datadir=/var/lib/mysql
skip-locking
safe-show-database
query_cache_limit=1M
query_cache_size=256M
query_cache_type=1
max_user_connections=30
max_connections=500
interactive_timeout=10
wait_timeout=20
connect_timeout=20
thread_cache_size=128
key_buffer=256M
join_buffer=1M
max_connect_errors=20
max_allowed_packet=16M
table_cache=1024
record_buffer=1M
sort_buffer_size=8M
read_buffer_size=8M
read_rnd_buffer_size=8M
thread_concurrency=16
myisam_sort_buffer_size=64M
server-id=1
[mysql.server]
user=mysql
[safe_mysqld]
err-log=/var/log/mysqld.log
pid-file=/var/lib/mysql/mysql.pid
open_files_limit=8192
[mysqldump]
quick
max_allowed_packet=16M
[mysql]
no-auto-rehash
Re: Multi Server Video Won't Play with IE
I changed my.cnf to your codes. MySql is running normal now but load average is still high. Super High: load average: 11.01, 8.63, 8.55
Re: Multi Server Video Won't Play with IE
What mySQL version are you running? Also, is it standard or max?
Also, run a "top," take a screenshot, and post it. I think I may know what your problem is, but I'll need to see a top to see.
Re: Multi Server Video Won't Play with IE
My server is max. MySQL is fine now but still load average is high:
Top:
top - 01:56:52 up 2 days, 20:07, 3 users, load average: 19.85, 17.76, 16.55
Tasks: 457 total, 1 running, 456 sleeping, 0 stopped, 0 zombie
Cpu(s): 6.5%us, 1.7%sy, 0.0%ni, 39.5%id, 47.1%wa, 0.5%hi, 4.7%si, 0.0%st
Mem: 8300172k total, 8001448k used, 298724k free, 23024k buffers
Swap: 8385920k total, 588k used, 8385332k free, 6581360k cached
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
25581 mysql 5 -10 652m 59m 4712 S 8 0.7 0:51.85 mysqld
20785 apache 15 0 48708 18m 5616 S 3 0.2 0:03.76 httpd
25339 apache 16 0 48644 17m 4720 S 3 0.2 0:01.10 httpd
20814 apache 16 0 48516 17m 4724 S 2 0.2 0:01.72 httpd
26029 drweb 18 0 9976 8156 1648 D 2 0.1 0:03.03 update.pl
18110 apache 15 0 48584 17m 4764 S 2 0.2 0:04.25 httpd
24117 apache 15 0 48616 17m 4732 S 2 0.2 0:01.49 httpd
24236 apache 15 0 48688 18m 5552 S 2 0.2 0:01.45 httpd
21505 apache 15 0 48616 17m 4756 S 1 0.2 0:03.89 httpd
21764 apache 16 0 48692 17m 4756 S 1 0.2 0:04.40 httpd
25671 apache 16 0 48684 17m 4716 S 1 0.2 0:00.89 httpd
21388 apache 16 0 48516 18m 5604 S 1 0.2 0:02.38 httpd
21459 apache 16 0 48584 17m 4776 S 1 0.2 0:04.75 httpd
456 root 10 -5 0 0 0 D 0 0.0 8:12.45 kjournald
18428 apache 15 0 48440 17m 4748 S 0 0.2 0:07.05 httpd
20539 apache 15 0 48632 17m 4756 S 0 0.2 0:04.14 httpd
20798 apache 15 0 48636 17m 4768 S 0 0.2 0:05.29 httpd
21094 apache 15 0 48404 17m 4760 S 0 0.2 0:04.09 httpd
21096 apache 15 0 48500 18m 5624 S 0 0.2 0:05.57 httpd
21456 apache 15 0 48704 18m 5620 S 0 0.2 0:02.31 httpd
21726 apache 15 0 48516 17m 4756 S 0 0.2 0:03.33 httpd
21727 apache 16 0 48608 17m 4752 S 0 0.2 0:03.61 httpd
21795 apache 16 0 48684 18m 5616 D 0 0.2 0:03.97 httpd
21867 apache 15 0 49932 21m 6088 S 0 0.3 0:04.52 httpd
22551 apache 16 0 48596 17m 4704 S 0 0.2 0:01.93 httpd
23981 apache 15 0 48512 17m 4748 S 0 0.2 0:02.54 httpd
24114 apache 16 0 48520 18m 5092 S 0 0.2 0:01.07 httpd
24200 apache 15 0 48620 18m 5612 S 0 0.2 0:01.85 httpd
24782 apache 15 0 48584 17m 4724 S 0 0.2 0:02.14 httpd
24925 gradmin 15 0 11928 1732 1088 S 0 0.0 0:00.03 sshd
25341 apache 15 0 48416 17m 4724 S 0 0.2 0:00.88 httpd
25755 apache 15 0 48524 17m 4688 S 0 0.2 0:00.84 httpd
26172 root 15 0 2484 1284 824 R 0 0.0 0:00.09 top
1 root 15 0 2088 688 584 S 0 0.0 0:01.11 init
Re: Multi Server Video Won't Play with IE
Thanks for posting that. Confirms what I was thinking. Based on your top, your mySQL is fine (could use a bit more tweaking), but your Apache settings are now in need of some adjustment. You have a lot of Apache threads open which means that Apache is probably hanging on to connections too long. First, let's tweak mySQL a bit more. Change your mySQL configuration to the following:
Code:
[mysqld]
datadir=/var/lib/mysql
skip-locking
safe-show-database
query_cache_limit=3M
query_cache_size=256M
query_cache_type=1
query_prealloc_size = 163840
query_alloc_block_size = 32768
max_user_connections=300
max_connections=500
interactive_timeout=10
wait_timeout=20
connect_timeout=10
thread_cache_size=384
key_buffer=256M
join_buffer=1M
max_connect_errors=20
max_allowed_packet=16M
table_cache=1024
record_buffer=1M
sort_buffer_size=8M
read_buffer_size=8M
read_rnd_buffer_size=8M
thread_concurrency=16
myisam_sort_buffer_size=64M
server-id=1
[mysql.server]
user=mysql
[safe_mysqld]
err-log=/var/log/mysqld.log
pid-file=/var/lib/mysql/mysql.pid
open_files_limit=8192
[mysqldump]
quick
max_allowed_packet=16M
[mysql]
no-auto-rehash
This will give you a bit more performance out of mySQL. Be sure to restart mySQL after making the change.
Next, for Apache, find the following lines in your httpd.conf and change them to:
Code:
KeepAlive Off
MaxKeepAliveRequests 100
KeepAliveTimeout 5
MinSpareServers 10
MaxSpareServers 20
StartServers 15
MaxClients 180
MaxRequestsPerChild 1000
Restart Apache after making that change and see if your load decreases.
Re: Multi Server Video Won't Play with IE
wow i made those changes and the server is fast and furious :D
thank you
Re: Multi Server Video Won't Play with IE
Re: Multi Server Video Won't Play with IE
I get max_user_connections blank page :( with those settings bplex. I think there is a need to increase users connections to 40-50. I will try 40. :D
Re: Multi Server Video Won't Play with IE
Whoops, that number should be 300, not 30. I'll change it now.