media player not working in another FTP server

pullvideos

Member
YetiShare User
Dec 15, 2013
88
1
8
Hi,
media player streaming working good for files in local server
but not working on for files added and stored in another FTP server
Thanks!
 

adam

Administrator
Staff member
Dec 5, 2009
2,046
108
63
The storage method is irrelevant for the media player. It's likely an issue with connectivity to the FTP server or the type of file uploaded. Do you have an example url of one failing?
 

pullvideos

Member
YetiShare User
Dec 15, 2013
88
1
8
Hi,
You're right!The storage method is irrelevant
I think this is memory problem of connect to files on another ftp server becaues I noticed it working fine for all local file and on another ftp server it only working for small file size (1-2mb) but when stream a larger file (100mb-500mb) file size , get this error:

2014-09-09 17:29:42 - *** ERROR *** Array
(
[Error Msg] => Allowed memory size of 134217728 bytes exhausted (tried to allocate 185436887 bytes)
[File] => /home/admin/web/xxx/public_html/includes/class.file.php
[Line Number] => 339
[Error Type] => E_ERROR
)

The script set up on vps 2 core, 6gb ram, 100 Mbit/s port speed
How config server and the script used max memory of server?
By the way, what speed streaming depend on (cpu,ram or port) ?
Thanks!
 

ysmods

New Member
Jan 29, 2013
860
1
0
UK
www.ysmods.com
You script is running out of available memory (Currently set to 134217728 bytes or 134.218Mb) thats allocated to PHP, you need to increase it.

You can also make this a permanent change for all PHP scripts running on the server by editing or adding a line such as this to the server’s php.ini file:

Code:
memory_limit = 1024M
The 1024M sets the limit to 1024 megabytes (1024000000 bytes). If this does not work, keep increasing the memory limit until your script works.
 

pullvideos

Member
YetiShare User
Dec 15, 2013
88
1
8
Thanks for your support!
Do you mean increasing the memory for script server or storage server or both servers?
I can't increasing the memory for storage server
I incsreased memory for script server to 4096M but not working
Thanks!