The forum is here for legacy reasons. No new posts will be created. User registration is disabled! If you have any questions, please email us or check https://www.adultscriptpro.com for more details!
You are not logged in.
I have tried to follow the guide in this link. But it is still not working, for both in-player banner and text adv....
I am using ver 1.08
Does anyone here add AdXpansion in-player text adv on their site?
I am not sure how I can do it.
Thanks!
Thanks symtab
Eventually I think I have found out what happened. Instead of changing modules/video/player/config.php
I have made some changes to modules/video/player/config_common.php, there is a line
define('QUERY_STRING', '?start=${start}');
There is a "?" instead of "&". It should be
define('QUERY_STRING', '&start=${start}');
in the case of using secure streaming.
symtab, please help to see if you can fix this in the next version.
make the QUERY_STRING with ?start if secure streaming is not enabled, and &start if the function is enabled.
Thanks for your help symtab.
I have separated the original server into two. One of them is the main site and the other one is the video server.
Something is strange is that fast forward is not working with nginx on the video server, which the videos can be played without problems. Just fast forward is not working.
Yet, fast forward works perfectly when using apache for streming on the video server.
If I remember correctly, fast forward was working on nginx when the videos were on the main server. (In fact, it is apparent there is another bug. If there is a separated video server, videos, at least newly added videos, on the main server cannot be played (return 403, the hash is wrong) when secured link is enabled for nginx).
However, I have tested it that fast forward works perfectly on NGINX when secure link is not used.
Does anyone know what the problem is?
just follow
http://forum.adultscriptpro.com/viewtopic.php?id=2452
but it does not work
I have separated the original server to one main server and one video server
The videos are all served on the video server.
after I set everything.
It returns something like
300, Player initialization fail typeerror error #1009
In order to make sure it is not becuase of the firewall, I have disabled it and allow all outside connections in the iptable.
For the time being I am using appache for the video server, it seems that it works a bit better than nginx
By using iotop, I found that nignx worker processes keep using more than 95% of i/o during peak hour.
but what is a bit strange is that the total disk read is something like 2x M/s. The speed of the disk should be a lot faster, 6Gbps I suppose. Even in windows, I should be able to get something like 120 M/s with such speed of disk.
Is this something related to streaming?
In face, I have tried to
1. not letting users login/register under mobile mode. In this case I can cache the whole mobile front end using CDN. And it should probably reduce more that half of the connections directly to my server.
2. I have already put all the images, thumbs, js, css on CDN
And the thing is that things like %us is very low, lower than 10% even during peak hours, for all cores. So I am really a bit confuse what is happening now...
I have monitor the load of the server again.
First of all, it is a server with an 8 core cpu
What I observed is that the iowait (%wa) fluctuate between 30 to 100% for the first five cores, during peak hours. And the other three are of 0 - 8%. Is it a sign of IO issue causing by streaming?
Thanks!
Want to see if it is possible to make the mobile version on a subdomain like m.mydomain.com, for better CDN settings
It seems that it can be done with some small changes in index.php, for the lines and then point the subdomain to /mobile folder
if (VModule::enabled('mobile')) {
$mobile = (VBrowser::get('is_mobile')) ? TRUE : FALSE;
if (($mobile && VF::cfg_item('module.mobile.redirect')) OR
$module == 'mobile') {
require BASE_DIR.'/mobile/mobile.php';
VMobile::process();
}
}But I am not sure what to change.
symtab wrote:Unlimited bandwidth means you can use as much bandwidth as you want, however it can be 10mbps, 1000mbps, 1gbps or 10gbps. If for example you having 100mbps (most common with dedicated servers), then the server can be slow because you are already using the entire bandwidth. If you know for sure that the I/O is then you need a new server. If the bandwidth is the server, you can just increase the bandwidth. I would always go with option 2 (new server, easier to manage, easier to configure...).
Good point, had a problem in the past when server gets slow, after hours/days and paying people to check this or that it turns out the host has reduce my speed from 1gig to 100mbps (they lied when i had first asked them).
Since you have unlimited bandwidth they might be messing with your connection speed.
Thanks, I have not thought of this. I have 1Gbps and my server should consume something like 3-4xxmbps currently. May be I should also check with the server provider first.
Thanks again.
Thanks symtab. The situation is that I have unlimited bandwidth.
However, it seems to me that the site starts becoming very slow during peak hours, even after I have used a cdn.
It seems to me that the videos have posted a lot of I/O overhead on the harddisk.
So I have two choices to test it.
1. Get more hdd and have a raid 10 (of course this option will be cheaper)
2. get a separated server for serving videos only.
Which one will you recommend?
Thanks!
Hello, I am in a situation that I might need to really have a separated video server to host the videos only.
Is there any suggestion for the specs of the server? Currently I have about 2800 videos on my site.
Thanks!
I am not really sure but if I remember correctly, video download is only allowed for users after logging in.
But now, it seems that I can only set if a video is allow to be download, one by one.
So, is there any function to control which type of users can download the videos?
Thanks!
Already sent by email. Thanks symtab!
Just turned debug on and check, it returned when I use "Upload from FTP" with multiserver on
VException [ 0 ]: VException [ 0 ]: exception 'ErrorException' with message 'Undefined variable: dst_flv' in /myroot/public_html/admin/modules/video/components/upload_ftp.php:431 Stack trace: #0 /myroot/public_html/admin/modules/video/components/upload_ftp.php(431): VError::error_handler(8, 'Undefined varia...', '/myroot/pub...', 431, Array) #1 /myroot/public_html/admin/modules/video/components/upload_ftp.php(185): VComponent_Admin_video_upload_ftp->process_video(Array, 3, Array, 'public', 0, 1, 0, 1, 1) #2 /myroot/public_html/admin/modules/video/video.php(51): VComponent_Admin_video_upload_ftp->render() #3 /myroot/public_html/admin/index.php(25): VModule_Admin_video->render() #4 {main} ~ /myroot/public_html/admin/modules/video/video.php [ 53 ]
/myroot/public_html/admin/index.php [ 27 ]
22 try {
23 require $module_path;
24 $obj = new $module_class();
25 $obj->render();
26 } catch (Exception $e) {
27 throw new VException($e);
28 }
29 } else {
30 throw new VException('Invalid admin module format! Aborting!');
31 }
32
I have checked this again after upgrading to 1.0.8, and the problem is still there.....
There is nothing wrong with embed when cache is on turned on. Yet, there is problem when I turn cache on, with FILE as the cache driver.
and I have turned debug mode on and find this
ErrorException [ Notice ]: Undefined variable: group
/myroot/modules/video/player/embed.php [ 50 ]
45 $advs = $db->fetch_rows();
46 $cache->store('player-overlay', $advs, 86400);
47 }
48
49 $count = (count($advs)-1);
50 $index = ($group['adv_rotate'] == '1') ? rand(0, $count) : 0;
51 $adv = $advs[$index];
52
53 if ($adv['expire'] != '0000-00-00') {
54 if (time() > strtotime($adv['expire'])) {
55 return;/myroot/modules/video/player/embed.php [ 50 ] » VError::error_handler(arguments)
/myroot/modules/video/player/embed.php [ 89 ] » get_advertising()
I have tried to set up multi server
And it works for normal video upload.
However, when I tried to use the Upload from FTP in admin
It returned a blank page after "processing"
And the video was in "Converting" status forever....
Yet, it seemed that the videos were already moved to the targeted server.
Is there anything I need to do in order to make it work?
AND
I do not know why I cannot set the thumb server either
I am quite sure that I have make the settings correct. However, the thumbs are still on the main server instead of on the thumb server I have set...
Thanks!
Thanks for the reply symtab. So what should I choose and enter for the field
Streaming Method and
URL
Thanks!
thanks symtab.
I would like to add a new subdomain on my server so that I can put all the videos on this subdomain and use CDN for my main domain.
Is it that Nginx is still not supported for multi server?
Thanks!
I have not checked the access log yet.
There was no conversion when I have 12-17 load. And the number of visitors was around 800-900 in 30 mins.
In fact, the server load is a lot lower (6-11.5) today than the previous days. Yet, the number of visitors is still similar. Not sure about the reason. I will try to check the access log later today.
I am having a server with 8 core (8 threads) of CPUs, 24 GB of ram and 2x 1T harddisk (Raid 1).
Using "top" command, I found that the CPU load was about 12 to 17 during peak hours. It is still alright for the memory. Swap was not used during peak hours.
So I would like to seek for your opinions. Will it be a better option to get a server with more cores?
Or should I move all videos to another server?
I am using nginx. I am still trying to further optimize the server but it seems to me that it will not be really possible to bring the server load back to something like 7 to 8 during peak hours.
Thanks!
I have purchased a flowplayer license. I have found a problem.
After get everything set, the flowplayer logo was NOT on the player when viewing the site from my PC / Mac.
However, it was on the lower left hand side of the player when I view it on my Android phone (browser set as desktop).
Is it a problem of flowplayer or my setting?
Thanks!
Thanks symtab. I use nignx. Do you mean the setting of mp4_buffer_size and mp4_max_buffer_size. I have tried to play around with them but there is not much difference for the mp4 to be buffered and start on front end.
Is it related to the metadata of the mp4 file?
I found that it takes something like 13s for the HD mp4 to start to play. Is there any way to shorten the duration?
When it is a normal flv, it can start player in no time. And it can be player smoothly. I have checked two videos. One flv and one mp4, both are of similar length but the flv file is around 40% bigger in size. Yet, the flv can still play very smoothly without the need to wait for buffer. So, I suppose the mp4 can also be played very smoothly with a very short buffering time.
I have tried to put a smaller number for buffer length in player but it seems that there is no change.
Well, the fix does not work.
Do you mean to replace:
<?php echo $this->video['add_date']; ?>Thanks!