Jump to content

Tech Support

Administrators
  • Posts

    1,799
  • Joined

  • Days Won

    338

Everything posted by Tech Support

  1. Tube scrappers / tube grabbers functionality update In 3.8.5 we have added a beta version of tube scrapper / tube grabber plugin, which became very popular among our customers. In 3.9.1 we are further extending this plugin with some very important improvements. See details below. 1) It is possible now to limit the number of words or characters in the grabbed description. 2) It will be possible to skip videos with the same titles you already have in database. Duplicate title doesn't necessary mean duplicate video, but in many cases the same video is being added to multiple sites, so grabbers cannot see they are duplicates, since they are located on different sites and obviously their video files will be different. The new option can prevent from adding such videos. 3) The most important feature is to allow grabbing multiple qualities of the same video at a time. Many tube sites offer videos in multiple qualities and if you wanted to have the same on your site, earlier you would have to grab the topmost quality and create minor qualities at your end. Starting with 3.9.1 you will be able to grab any qualities you need at the same time and upload them all to your project without any conversion needed! See the screenshot: For each video quality the source tube site provides, you can now select which KVS video format it should be uploaded into. Uploading directly into the format means that the downloaded video file will be stored without any processing and you will save CPU time. NOTE: multiple formats are only supported starting from KVS advanced package.
  2. For a video site most of the bandwidth is being used for serving videos. In many cases you will have a limited channel like 100mbit or 1000mbit, so you will not save any money by saving bandwidth, however there are several cases when saving bandwidth can make great benefit for you: When your channel is fully loaded with serving videos, your site may become unresponsive for some users and you may get SEO penalty. One solution is to buy a new server or extend bandwidth limit, but you can save this money with KVS by trying to limit video streaming speed. When you are using CDN, in most cases you pay for the maximum bandwidth peak. You can save some money by paying less if your maximum peak becomes less. Why limiting streaming speed can save your bandwidth? Many users do not watch videos in full length, they may skip up and down to different fragments. However if their internet speed is high, they can download full video at a max speed shortly even if they didn't watch most of it. With a speed limit you will reduce % of downloaded bandwidth by each user and finally you will get some cut in your global bandwidth usage. KVS provides 2 way to limit video streaming speed: Limit speed to fixed bitrate. This is not a good solution, since it can be inaccurate in many cases - since video bitrate is often dynamic and you won't know the exact bitrate to limit. Limit speed to dynamic bitrate with a multiplier. This option is much better as it will make sure different speed limits for videos of different bitrates and you don't need to investigate the average bitrate of your videos. However, there is one important issue which you should know about streaming MP4 files. Each MP4 file has a metadata atom in the beginning (MOOV atom). This atom contains keyframes from video file and can take up to 4MB depending on video duration and geometry. Player needs to download this atom before it can start playing videos. Therefore if you limit download speed, your videos will start playing with a big delay. However Nginx provides a way to fix that, we will describe this later. NOTE: limiting streaming speed is only possible with serving videos with Nginx or CDN. In case of CDN the implementation of speed limit is fully dependent on your CDN provider (BTW some CDNs are not interested in doing this for an obvious reason). KVS will pass speed limit info to the CDN integration script, which may or may not use it - but this is not KVS issue. How to configure download speed limit In KVS you can configure download speed limit per each video format separately. Go to Settings -> Video formats and for each video format you can set speed limit: Global speed limit: Dynamic bitrate x 1.2 (we recommend multipliers from 1.1 to 1.5) You can set other options under Speed limitation section as needed. For example you can give your premium or active members unlimited download speed. You can also limit speed for visitors from certain countries only, so that you main audience is not affected. In order to define list of countries you want to limit please take a look at Stats -> Countries for reference.
  3. Here are some important notes and prerequisites before you start In order to use HTTPS on your site you should purchase SSL certificates for your domain and all subdomains you are using with KVS project. This includes all remote storage servers as well, since any files loaded on your project, including video files should be served via HTTPS to get the full coverage. HTTPS may produce additional load on your server because of additional layer of traffic encryption. If you are using Nginx, HTTPS should be configured at Nginx level. Nginx serves static files and they need to be served via HTTPS as well. All 3rd-party scripts and advertising you are using should support HTTPS as well, otherwise they will trigger warnings in browsers and will distract your users. How to enable HTTPS in KVS tube script Step 1. Configure SSL at server level for domain and all subdomains you are using for KVS project. This should be done at Nginx level for projects that work via Nginx. If you are using CDN or remote storage servers, check how HTTPS works for all of them. NOTE: configuring HTTPS at server level is not covered by this guide. Please refer to Nginx / Apache official documentation on this. Step 2. In admin panel go to Settings -> Storage servers and for each storage server modify URL field to point to https://, e.g.: https://yourdomain.com/contents/videos Step 3. In /admin/include/setup.php change all URLs to https://. In most cases you only need to change this setting: $config['project_url']="https://www.kvs-demo.com"; However there can be other settings referring direct URLs as well. So search the whole file for http:// and change all usages to https://. NOTE: KVS will reset all cache after you change project URL. If you have much traffic on your site, your server may be overloaded for some time until the new cache is populated. Step 4. In main .htaccess file change all URLs to https:// as well. In most cases you will only have this line: RewriteRule ^(.*)$ https://www.%{HTTP_HOST}/$1 [R=301,L] Step 5. Open your site via HTTPS protocol and make sure that everything is displayed correctly. Starting from this point your site will fully work on HTTPS. Go to Plugins -> System audit and run installation and server checks there. You should not have any errors from these 2 checks. Step 6. It is recommended to configure 301 redirect for all HTTP requests to HTTPS so that there is no duplicate content available under different protocols. This redirect should be set globally in Nginx configuration (or Apache configuration if your server is not running under Nginx). NOTE: configuring redirect at server level is not covered by this guide. Troubleshooting Design is not displayed properly when using HTTPS. Most probably you didn't switch all static resources to be loaded via https://. Open source code of your page and search for http:// text. Once you located the URL of static resource referred by http://, go to Website UI -> Search in templates in admin panel and try searching for template which renders this URL. Fix to https://. On some pages browser shows insecure warning. This problem is caused by the same issue as above. Some parts of your page are trying to use resources via insecure HTTP protocol and that's why browser shows the warning.
  4. Starting with KVS Advanced you can show video previews for every video in the list instead of single or scrolling thumbs. Here are some important notes and prerequisites before you start If you have many videos, creating previews can take much time, up to many months! You should make sure that each storage server has enough space to store up to 1mb for each video. Each preview will take 600-800kb, so showing this for every video will increase your traffic usage. Steps on how to enable video previews Step 1. In admin panel go to Settings -> Add video format and create new video format with the following data: Title: MP4 preview Postfix: _preview.mp4 Video type: Standard videos Status: Active optional (you can set Active required here if you don't have videos or have only few videos) Video size: Resize video according to: NxM Enfore this size (replace NxM with exact size you need video to be displayed in lists) FFmpeg options (-crf 28 is a compression quality, use lower number for higher quality): -vcodec libx264 -movflags +faststart -threads 0 -r 25 -g 50 -crf 28 -me_method hex -trellis 0 -bf 8 -an -f mp4 Limit duration to: 20 seconds (or any number you want it to be) Number of parts: 4 (or any number of parts you want it to be) Other fields under Duration limitation section - as per your needs. Save it. NOTE: if you selected Active required status and you have any videos, KVS will automatically create tasks for creating these files for all your videos. You should use Active optional status if you have many vids. You can see this video format in action here in KVS tube script demo admin panel: http://kvs-demo.com/admin/formats_videos.php Step 2. Now it is time to create video previews for some test videos. Please skip this step if you already selected Active required status for preview video format. Go to Videos list. Select some test videos (the ones you can see on your latest updates page) and under Batch actions select Mass edit selected. You will see the mass edit GUI. Scroll down to Content section and select MP4 preview format under Create / Re-create format files: NOTE: Make sure you didn't select anything else in the big set of options. Apply changes. In Administration -> Background Tasks section you can now see list of tasks to create preview files for the selected videos. You should wait until they are processed, this may take a while. If there are errors on these tasks, please contact support. Step 3. Go to Website UI -> Theme Settings and select MP4 Preview format in Video preview format option. Step 4. If preview creation tasks are finished at this point, go to your latest videos and try mouse over the test videos you've chosen to create preview files. You should see the video previews playing. If you don't see them, try refreshing your browsers cache with Ctrl+F5. Step 5. If you are OK with the quality and functionality of your test previews, you can enable them to be created for all videos now. Go to Settings -> Video formats -> MP4 Preview and change status to Active required. NOTE: this will create tasks for all your videos, which can take long time. All new videos will have this format automatically. Styling waiting icon You can modify the following CSS style in your site's style file: .list-videos .img.preview-loading:after { display: block; position: absolute; content: ''; width: 25px; height: 25px; background: #000000 url('../images/loader.gif') 2px 2px no-repeat; bottom: 5px; right: 5px; z-index: 1; } Troubleshooting It is not possible to create a new video format. This is not possible if you have KVS basic license. Basic licenses do not support multiple formats and will not allow you using this feature. Tasks for creating preview files failed. Please create ticket for support, there can be many reasons and need investigation in your admin panel. Video previews are not displayed. Are you trying on the test videos you have selected for massedit? Please open them in admin panel and check if they have preview formats created: Did you try resetting browser cache with Ctrl+F5? Are you using the same browser where you logged in admin panel? If using different browsers to test this functionality you should log in to admin panel in each browser. Otherwise you can see the cached page version which has not yet been updated with this new feature.
  5. Support for access / promo codes in signup and upgrade In 3.9.0 we added User accounts generation plugin which provided ability to pre-generate user accounts and sell them via online stores as username:password pairs. Now in 3.9.1 we have further extended this plugin with ability to generate access codes, which can be used by users during registration process to get privileges from the access code being used. Also existing users can use access codes to upgrade their existing accounts with new privileges. An access code can grant one of these: - Unlimited premium access - Limited premium access (N days) - N tokens added to user's account Using access codes is more convenient for users, since they do not need to stick to pre-generated usernames and passwords. Also you can use this functionality for promo purposes, for example post access codes on forums, or use in any other similar way. Here is how the updated plugin looks now: In order to enable access codes on signup you should go to signup block settings and switch on the enable_access_codes option: Also you should update signup block template with access_code input (sample code is for KVS new theme): {{if count($access_codes)>0}} <div class="row"> <label for="signup_access_code" class="field-label">{{$lang.signup.field_access_code}}</label> <input type="text" name="access_code" id="signup_access_code" class="textfield" placeholder="{{$lang.signup.field_access_code_hint}}"/> <div class="field-error down"></div> </div> {{/if}} The $access_codes variable lists all available access codes haven't been used yet, so you can even display the number of available access codes this way: We have {{$access_codes|@count}} more access codes available! In order everything to be rendered correctly, you will also need to add these texts to your theme texts (Website UI -> Language files -> Add Text): signup.field_access_code = Access Code validation.common.access_code_invalid = The entered access code is not valid If you want existing users to use access codes, you should do the same thing in upgrade block. The same parameter name and same HTML code will work. However upgrade block in your case may also be used with payment options, so you should think about whether you want to combine them together with using access codes in the same GUI, or alternatively you can add another upgrade block for only using access codes.
  6. Integration with MPa3 script We have also added support for http://mpa3.com membership system script: MPA3 will be integrated into KVS tube script in the same way as other payment processors with support for trial membership. Like for NATS, it is expected that you will use MPA3 signup page instead of KVS one.
  7. Ability to re-create screenshots for hotlinked videos In 3.9.1 it will be possible to re-created screenshots for hotlinked videos via massedit option: In this case KVS tube script will download the hotlinked file and create new set of screenshots.
  8. New way to specify the number of timeline screenshots In 3.9.1 we added support for specifying the fixed number of timeline screenshots in addition to their interval. Timeline screenshots can be used in player on timeline mouse over to provide previews of what is coming next in the video. The interval is not very good when you upload long videos, since the number of timeline screenshot can be huge. For longer videos the alternate way can be to configure the fixed amount of screenshots and KVS tube script will automatically detect their interval based on video duration. This new feature will require you to update API on all remote conversion servers, because timeline screenshots are created there.
  9. The metadata and video data is controlled by browser, player has no control on it, so it can't unload it. Yes, KVS player also supports subtitles, but there is no way to upload them via admin panel, we will do that.
  10. Player issues when updating to KVS 3.9.0 We are about to make 3.9.0 available for public download, thank you for all your patience during beta testing period. Known issues about the new player: 1) If you are still using FLV files, it is recommended to fully switch to MP4 before the updating. The new player does not support FLV skipping and will not support anymore. Known issues about updating to 3.9.0: 1) While in most cases update didn't cause any issues, some users had problems with displaying the new player correctly due to their custom CSS styles. The new player is now a part of your page structure and layout and will obey to any global CSS rules you are using with your design. If you have CSS selectors that affect many objects via global tag selector, they may also affect player styles and make player invisible or positioned incorrectly. For example you may have something like this: .player-holder div { width: 100%; height: 100%; } Which means that all DIV tags under player-holder class name are affected by this rule including player contents. If you have this issue, please try to investigate which styles may affect player rendering. If this is not possible, copy the contents of this ZIP on top of your project to restore the old player: http://www.kernel-scripts.com/files/old_player.zip And then create support ticket with your issue and include FTP access details. 2) New player has also some conflict with default theme styles, which results in fullscreen mode not working for ipad and older IE versions. In order to get rid of this issue you should check if your CSS file has the following styles: .block-video .player .player-wrap #kt_player And add the following at the end of CSS file being used: .block-video .player .player-wrap #kt_player.is-fullscreen { position: fixed !important; }
  11. 1) Can you be more specific? What should be suggested and how missing words should be corrected? 2) This is already possible. In users you can set trusted flag, which will mean that all content posted by this user (comments, videos, albums and etc.) will be automatically activated and will not get into admin review notification. 3) We have been thinking about this plugin. However there is no way to automatically select thumb which will be a model (other than using some kind of face detection library to analyze video thumbs, this looks to be quite difficult task and will not work in 100% cases). One of the alternatives is to display a list of video screenshots from all videos with that model and allow admin to select which one should be better suitable to generate images. What do you think?
  12. We will post new KVS 3.9.1 features here as soon as they are implemented. Feel free to post your feedback if any.
×
×
  • Create New...