Concise tutorial: Batch video migration to Video Cloud

We have lots of users who choose Video Cloud as their first video service. Besides, we have some users who previously using free or other paid video hosting service, and need to migrate the old videos to Video Cloud. Some of them may have up to thousands of videos and take up to hundreds of gigabytes.

It sounds like a mission impossible to migrate these videos one by one, if using the old methods. But don’t worry! POLYV provides a much simpler way to migrate your videos to Video Cloud, with just a few steps.

1. Generate a CSV (Comma Separated Values) file for migration. The CSV file contains multiple lines of your file, and each line consists of two elements – the origin URL and the title of the video, separated by comma.

You can either use text editing applications (like Notepad, Editplus, UltraEdit, Atom, etc.) or spreadsheets processing applications (like Microsoft Excel, Apple Numbers, Google Sheets, etc.) to do the job.

Using Notepad for editing the CSV file

Using Notepad for editing the CSV file

Using Excel to generate the CSV file

Using Excel to generate the CSV file

Note that the CSV file should be saved using UTF-8 encoding, especially when it contains CJK characters. If not, the file will not be recognized and processed.

The CSV file should be using UTF-8 encoding

The CSV file should be using UTF-8 encoding

2. Sign in your POLYV account, then select “Videos” to enter the admin page of Video Cloud.

3. Click “Video sync” on the left panel, then click the blue “Import task” button.

Click the “Import task” button to select the designated CSV file

4. In the popup window, choose the destination category in the dropdown list, then click the blue “Upload CSV file” button to submit the CSV file prepared in Step 1. After that, click the “Save” button.

Select the destination category first before importing the CSV file

5. Now Video Cloud will automatically process the file. All you need is to do the waiting game…

And when it is finished, click the “Export to CSV” button to save the result.

The result of the batch migration, showing numbers of successful and failed number of videos and time used

If you open the CSV file, you can see each line contains the URL, the title and the VID (Video ID) of the video, with the datetime of completing the process following.

The detailed information of the batch migration

So that’s a wrap for how to batch migrating your video to Video Cloud. Now with this feature, you don’t need to worry about migrating your existed videos to our system, because we will take good care of them and keep them unharmed.

If you to know more about the features of Video Cloud and Streaming Cloud, check out our blog or visit our official website http://www.polyv.net/ for more information. Happy video hosting!

Concise Tutorial: Tips & Tricks for Batch Management

Imagine you have used Video Cloud for quite a long time, there are a lot of videos in your account and counting. At this point you need to find a way to manage your videos more efficiently, to categorize them, to put them in different playlist or to export the information of selected videos.

Here we will show you some useful tips and tricks for managing massive amount of videos in your account with just a few clicks or simple moves.

I. Batch Categorizing

The uploaded videos are in “Default category”, and it would get messy if you keep uploading without categorizing them. To solve this, you can create different category folders for different types of video, and then put your videos in the right place.

And here’s how –

1. Sign in your POLYV account, then select “Videos” to enter the admin page of Video Cloud.

2. Select the videos you need to move to new category, then click “Move to folder” button on top of the list.

Select the videos you want for a new category, then click "Move to folder" button.

Note that if you don’t have any category folder, please click “Manage folder” on the left panel and create a new one.

3. In the popup window, select the category you want.

Select the category you want in the popup window.

Now you can see the selected videos are in the designated category. You can create more different category folder to categorize your uploaded videos.

The selected videos are now in the designated category.

With the batch categorizing tricks, you can sort your videos faster, and use it for later uploads as well. Now you get it, right?

II. Playlist

Categories are useful, with only one issue – each uploaded video can only have one category. What should we do if the videos meet two or even more different categories or criteria?

Don’t panic! You can use playlist for showing different types of content to your audience, and one video can be in more than one playlists.

Now let’s get started with the playlist setup –

1. Sign in your POLYV account, then select “Videos” to enter the admin page of Video Cloud.

2. Select the videos you need to add to playlist, then click “Playlist” button on top of the list.

Select the videos to be added to the playlist.

3. In the popup window, you can add the videos to existed playlist, or click “Add new playlist” to create a new one.

Select the playlist you want, or create a new one for your videos.

4. Now click “Playlist” on the left panel, click name of the playlist to see if all the videos needed are in. You can edit the information of these videos, or remove them if you don’t want them in the playlist.

Click the name of the playlist for editing it.

You can edit the information of the video, or delete the video you don't want.

Additionally, after you finish setting up the playlist, you can preview the playlist, edit the playlist or copy the code for embedding it to your website, by clicking the buttons on the right.

You can generate a Flash playlist or embedding code from the icons on the right.

III. Export Video Information

If you want to sort your videos more thoroughly, you can export the information of designated videos, and sort them through Microsoft Excel or equivalent spreadsheet software.

And here’s how to export the video information –

1. Sign in your POLYV account, then select “Videos” to enter the admin page of Video Cloud.

2. Select the videos you need to add to playlist, then click “Export” button on top of the list and select “Export the selected videos”.

Select the videos you need, then click "Export" button.

3. Select the export location and rename the file (if you need), then click “Save”.

Export the information to a single CSV file to your destination folder.

4. Now you can open the exported CSV file in Excel or other equivalent spreadsheet software. The fields (from left to right) are –

VID, Title, Flash player URL, Video length, Thumbnail URL, Source file size, Smooth rate file size, High-definition rate file size, Ultra-definition rate file size, Status, Uploader, Category, Last update time, Tag, Description, MD5.

You can use Excel or other software to open the CSV file and for further actions.

You can sort your videos with one or more of these fields, and then take actions for further categorizing.

So this is three of the tips and tricks for the video batch management in Video Cloud. We hope you can take benefit of them and make your video management more efficient.

If you have any questions or want to share your way to manage the videos, just feel free to leave the comment down below. And don’t forget to check out or blog or our official website http://www.polyv.net for more information and useful tips!

See you in the next article, and happy video hosting!

Copyright Protection: Mobile App authorization

In our last article, we talked about Video Cloud’s Web authorization, a higher level of security for your videos being accessed in mobile devices, showing how to set up this feature with the code preparation enable these settings.

Today we’ll continue the topic of Video Cloud’s mobile protection, and introduce “App authorization” – an even more secure way to deliver and play your videos in mobile devices.

Unlike Web authorization, App authorization only allows video playback from Android/iOS apps developed by POLYV SDK, while the requests from mobile browsers are not permitted.

If you use App authorization for secure playback, the POLYV SDK within the app will send a request with parameters to the server to verify. If the parameters are valid, the server returns an encrypted authorization token which will be decrypted by SDK to get the real playback key. With this playback key, audience can access the encrypted m3u8 files from the server and start playback within their app.

The workflow of App authorization is shown as the following –

The workflow of App authorization

And for the code setup, we have an example section of code for iOS SDK setup –

#import "MPMoviePlayerController+plv.h"
…
//Playback for self-adaptable video
self.videoPlayer = [[MPMoviePlayepController alloc]initWithVid:_vid];
//Playback for videos of certain bitrate
self.videoPlayer = [[MPMoviePlayepController alloc]initWithVid:vid level:1];

And now, let’s look at what we should do to activate App authorization –

0. Set up the codes before starting activating App authorization. (Code example seen above. For more detailed deploy procedure, check out our development documents at http://dev.polyv.net/)

1. Sign in your POLYV account, then select “Videos” to enter the admin page of Video Cloud.

2. Click “Settings” on the right of the top navigation bar, then click “Encryption settings” on the popup menu.

The portal of App authorization is in "Encryption settings".

3. In the “Video encryption” section, first click on the check box to enable VRM, then go to the “Mobile encryption settings” section and choose “APP only use”.

Click "App only use" for App authorization.

Note that the mobile encryption settings will only apply on the videos uploaded after enabling this feature, and those videos uploaded before enabling mobile encryption will not be affected.

App authorization raises the bar of mobile protection for your content. It provides an even more secure way to deliver videos and other media, and keep them safe from various pirating acts.

So this is the end of introducing the options of mobile authorization. If you want to learn more about our mobile protection features or VRM, check out our previous blog articles or visit our official website http://www.polyv.net/ for more information.

And if you encounter any problem in your development, visit our development center for detailed documents (currently in Simplified Chinese) or feel free to ask our 7×24 technical support team.

Last but not least, don’t forget to check out our previous blogs on copyright protection!

Happy video hosting, and see you in the next article!

Copyright Protection: Mobile web authorization

In previous articles, we had a brief introduction on mobile authorization, and taught you how to activate mobile authorization for general use.

Today we’ll tell you more about the mobile authorization feature with one of the two more important preferences – Web authorization. For App authorization, we’ll talk about it in the next article.

Web authorization is one of the means for activating VRM 6.0, the patented encryption method developed by POLYV. By activating VRM 6.0, the system will transcode the videos uploaded, and then generate encrypted m3u8 format files instead of mp4 format for authorized playback which requires verification with the correct parameters.

And here we have to mention about the parameters used while requesting the m3u8 files –

  • Before requesting for m3u8 files, the mobile browser will add two parameters – “ts” and “sign” – behind the address of m3u8 file.
  • Then, after receiving the request, the system will verify the parameters.
  • If the parameters are valid, the system will return the decryption key to the browser and ready for m3u8 playback; if not, the system will return Error 400 (Bad Request).

Note that the rules for web authorization can also be applied on our SDK for Android/iOS in this mode.

You may ask, “What should I do with the codes?” And yes, we have prepared the following codes for your catering (PHP as shown in the following example) –

<?php
$vid = ”e2e84a738354402a52ce81aeab4e3067_e”; // VID of your video, varies depend on actual video
$secretkey = "7UagtQ0q2AM";
$ts = time()*1000; // 10-digit timestamp (accurate to second) generated by the time() function, times 1000 for the final 13-digit timestamp. You can also generate a 13-digit, accurate-to-millisecond timestamp
$hash = md5($secretkey.$vid.$ts);
?>

var player = polyvObject('#plv_e2e84a738354402a52ce81aeab4e3067_e').videoPlayer({ 'width': '600', 'height': '485', 'vid': 'e2e84a738354402a52ce81aeab4e3067_e', 'ts': '', 'sign': '' });

Here’s the flow chart for the Web authorization process –

The workflow of Web authorization

Now that you understand the workflow of how to set up Web authorization, let’s get it started –

0. Set up the codes before starting activating Web authorization. (Code example seen above. For more detailed deploy procedure, check out our development documents at http://dev.polyv.net/)

1. Sign in your POLYV account, then select “Videos” to enter the admin page of Video Cloud.

2. Click “Settings” on the right of the top navigation bar, then click “Encryption settings” on the popup menu.

Web authorization settings are inside "Encryption settings".

3. In the “Video encryption” section, first click on the check box to enable VRM, then go to the “Mobile encryption settings” section and choose the “WEB & APP use” radio button.

Choose "Web & APP use" for activating web authorization.

Note that the mobile encryption settings will only apply on the videos uploaded after enabling this feature, and those videos uploaded before enabling mobile encryption will not be affected.

With these settings your newly uploaded videos will be encrypted with VRM 6.0, and be securely delivered to the audience with no risks of being pirated.

So that’s all for the setup of Web authorization. If you want to learn more about our mobile protection features or VRM, check out our previous blog article or visit our website http://www.polyv.net/ for more information. If you have issues or questions about development, visit our development center for detailed documents (currently in Simplified Chinese).

Happy video hosting, and see you in the next article!

Copyright Protection: Mobile encryption and authorization

We have talked about the means for copyright protection in the previous articles. Those methods works well in PCs and laptops, covering operation systems like Windows, OS X and Linux.

However, for the mobile playback, most of the video services don’t have any protection or encryption, making the videos easy targets to be pirating.

For POLYV users, you don’t have to worry about the safety issue of mobile playback – we have integrated encryption method based on Apple HLS for mobile devices, and you can activate it in an instance –

1. After signing in POLYV, select “Videos” to enter the admin page of Video Cloud.

2. Click “Settings” on the right of the top navigation bar, then click “Encryption settings” on the popup menu.

The portal for mobile encryption

3. In the “Video encryption” section, first click on the check box to enable VRM, then go to the “Mobile encryption settings” section to select the encryption mode –

Options for mobile encryption

  • General use – The videos will be encrypted, then the encryption key will be sent to mobile devices and the video can be played in mobile web directly with our universal code (JavaScript). No extra settings needed.
  • WEB & APP use – The videos will be encrypted with a key with both Web and App authorization. The videos can be decoded and played in mobile web as well as the apps integrated with POLYV SDK (Android or iOS).
  • APP use only – The videos will be encrypted with a key with ONLY App authorization. The videos can be decoded and played in the apps integrated with POLYV SDK (Android or iOS), but NOT available for mobile web playback.

[For detailed information and development rules of Web and App authorization, click here to check out our development document (in Simplified Chinese).]

Note that the mobile encryption settings will only apply on the videos uploaded after enabling this feature, and those videos uploaded before enabling mobile encryption will not be affected.

With this particular safe switch for mobile playback, you don’t have to worry about someone pirating your videos by cracking the mobile page or the app.

If you want to learn more about the security features of Video Cloud and Streaming Cloud, check out our blog or visit our official website http://www.polyv.net/ for more information. And don’t forget to check out our previous blogs on copyright protection!

Happy video hosting, and see you in the next article!

Copyright Protection: Domain Restriction for Playback

Besides the features we have mentioned in previous articles, there are other ways to keep your videos away from pirates or unwanted viewers. Domain restriction is one of them.

The feature of domain restriction contains a “white list” (Allowed domains) and a “black list” (Forbidden domains), which designates the domains that allow and not allow to watch the videos, respectively. You can also combine these two lists for some more precise control of who can access the videos.

Here’s the detailed setup for domain restriction –

1. After signing in POLYV, select “Videos” to enter the admin page of Video Cloud.

2. Click “Settings” on the right of top navigation bar, then click “Playback domains”.

Domain settings

3. Here you can see four different sections for different restrictions –

The domain lists and schemes for the restriction control

  • No limitation – Default option. Everyone is able to access your videos.
  • Forbidden domains – The domains in this list are NOT allowed to watch your videos. Other domains are allowed.
  • Allowed domains – ONLY the domains in this list are allowed to watch your videos. Other domains are not allowed.
  • Compound domains – The system first check the “White list” for the allowed domains, then for the “Black list” for the forbidden domains. ONLY the domains meet BOTH criteria are allowed to watch your videos.

Note that currently the “White list” and “Black list” holds up to 5 different domains.

4. Click “Apply” to save the settings. Now the videos are only available for those user in the designated domains.

And that’s a wrap for the domain restriction settings. The process sounds a little complicated, but you can try a few times to make the right criteria for the lists, making them not miss out the wrong domains or block the right domains.

If you want to know more about the features of Video Cloud and Streaming Cloud, check out our blog or visit our official website http://www.polyv.net/ for more information. Also, you can subscribe to our blog to learn more about the copyright protection of POLYV, in both Video Cloud and Streaming Cloud.

Copyright Protection: Password Protection

Password protection is another simple and effective way to protect your videos in Video Cloud. By setting password to specific videos, you can limit the access of the video to designated people or groups, and those who don’t have the password of the videos are not able to watch.

Here we’ll show you how to set password for the videos. Let’s get started!

1. After signing in POLYV, select “Videos” to enter the admin page of Video Cloud.

2. Click “Video” on the top navigation bar to enter the video list, then select the videos you want to set password on, and click “Video settings” on the top of the list.

Click "Video settings" button for entering password settings

3. On the popup window, type in the password you want in the “Password” field. If you want to make sure if the password is correct, check the “Show password” checkbox below the field.

Enter the password you want in the field

4. Click “Save” to apply the settings and return to video list.

Here’s the video with the password protection on, and error message pops up if you type in an incorrect password.

You need to type in the correct password before watching the video

The prompt message for the incorrect password

So this is how to activate password protection for your videos. If you want to know more about the features of Video Cloud and Streaming Cloud, check out our blog or visit our official website http://www.polyv.net/ for more information, and stay tuned for more tutorials on copyright protection.