Name is required.
Email address is required.
Invalid email address
Answer is required.
Exceeding max length of 5KB

Ingest videos throught a .csv file - just ADD URL


Is it possible to ingest videos only with the URL? I mean like when you ADD via URL through your browser, instead of ADD via UPLOAD.
I can add through my browser new content only with a "fake" URL. Then I try to do the same through the ingest and it said:

" There was an error processing your file: Media file contains no recognized video stream"

What I am trying to do consists of only have analytics for the title, not uploading any videos.

Daniel

8 Community Answers

Todd

JW Player Support Agent  
0 rated :

In order to get analytics without uploading any videos, you need to add the external URL to your dashboard. You can either do this using the dashboard user interface, or if you have a bunch of external URLs to add, you can use our JW Platform API’s /videos/create endpoint in a script. Please see http://support.jwplayer.com/customer/portal/articles/2083166-using-media-ids for more details.

daniel.alba.bec

User  
0 rated :

Thanks for your answer Todd. I will take a look at it.

Another questions. Is it possible to create a new playlist but only sending the mediaId's of the uploaded videos?

Thanks in advance!

Daniel

daniel.alba.bec

User  
0 rated :

Hi Todd,

I realised the ingest of the .csv file that I made call the function you said (video/create). So basically you mean I have to do the same but without ingesting a file?

It it helps, you have here the batch.php file: http://46.31.56.211/lab_front/JWPlayer_API/batch.php

Thanks in advance.

Daniel

Todd

JW Player Support Agent  
0 rated :

You would essentially need to make the /videos/create call for each video in your CSV. If it is an external URL, be sure to define sourcetype as ‘url’ and to also include your sourceurl. The full documentation for /videos/create is available at https://developer.jwplayer.com/jw-platform/reference/v1/methods/videos/create.html

To answer your playlist question, you can define playlists of external videos via the API or via the user interface. See the API documentation at https://developer.jwplayer.com/jw-platform/reference/v1/methods/channels/index.html

daniel.alba.bec

User  
0 rated :

Hi again Todd,

Thanks for your answer. I am trying to upload the videos the way you said but always failed, putting on the .csv file both sourcetype and soruceurl. I've tried even with a YouTube URL but it didn't work. Can you check my .csv file and batch.php? It works when I don't indicate neither sourcetype nor sourceurl.

CSV file: http://46.31.56.211/lab_front/JWPlayer_API/ingest_text.csv
Batch file: http://46.31.56.211/lab_front/JWPlayer_API/batch.php

Thanks in advance.

Daniel

Alex

JW Player Support Agent  
1 rated :

Hi, Daniel.

Todd is currently out of the office, but I will be more than happy to assist you.

I have taken a look at your CSV. The “download_url” field is used when you have a static file, such as a MP4 file, stored on another server somewhere and you would like our platform to download it to upload onto our platform. Since you cannot download YouTube videos, this will not work. You should be good just using the sourcetype, sourceurl and sourceformat fields, like this:

sourcetype,sourceurl,sourceformat
url,lcrroI4bBf8,youtube

Since we are using the sourceformat value of youtube, we can just pass in the YouTube ID of the video and our playlist will do the rest.

I cannot take a look at your PHP file as it’s just showing me the HTML rendered. If you are still having problems, you would have to send me the code either copy and pasted into your reply, or you can upload it to a cloud storage system, like Dropbox, and send me the URL.

Thanks.

daniel.alba.bec

User  
0 rated :

Thanks Alex, now it works fine! I missunderstood the fields.

Thanks so much!

Daniel

Alex

JW Player Support Agent  
0 rated :

Not a problem, Daniel. I’m glad you got it working.

This question has received the maximum number of answers.