I have created a script using YouTube API v3 to make submitted videos from users sent directly to YouTube channel. The issue I am facing is that YouTube refuses to accept videos larger than 100mb. Is this a limitation YouTube has set or am I doing something wrong? I test the script by submitting a video of 394mb and in the end of the upload it presents the error message, though this doesn't happen when uploading videos of less than 100mb. Is there any way to manage to let upload larger videos.
I thought not to attach any script sample as first need to know the answer to this question. Thanks in advance for all answers. Suggestions are welcomed.
You can upload videos in excess of 15 minutes long. All you need to do is verify your YouTube account using the following link. Make sure you are logged into your YouTube account:
https://www.youtube.com/verify
Make sure you’re using an up-to-date version of your browser so you can upload files greater than 20GB. The maximum file size you'll be able to upload to YouTube is 128GB and the maximum duration is 11 hours.
Related
I am going with the Docs API to do a direct Upload with Mux, But cannot seems to find any one solid example where I have to select the from my local, say one mp4 file of size 100 MB and once I click the submit button, it should call the MUX to upload at least the headers and then webhook can keep doing its work, but all I see is the examples they have is passing the URL to it and then the webhooks can be called?
This is really confusing, in every post I searched they had written it can be done but how they have not shown it anywhere
anyone who can guide in this
Thanks
I'm using Youtube API v3 to upload video. At the first time I use, it requires authorization then do upload but there are two videos is created. They are exactly the same but there is no error, the API returns the latest id. I checked in my channel, two videos could be view.
When I try to upload the previous video, another id returns, too, but if I use this, Youtube will show me "This video is a duplicate of another video". Other times, the API works right. Did anyone encounter this problem?
I wanted to ask if the follow is possible in PHP. Let's say there is a file on my google drive with the ID '123-abc', would it be possible to fetch it as if I was logged in to my account, without using the API?
Let's say I'm trying to download a file from 'https://drive.google.com/uc?export=download&id=123-abc', is there a way to tell the website i'm signed in by logging in with PHP? I also don't want to make the file public.
See https://developers.google.com/drive/v3/reference/files#resource for the available video metadata. Specifically:-
videoMediaMetadata object Additional metadata about video media. This
may not be available immediately upon upload.
videoMediaMetadata.width integer The width of the video in pixels.
videoMediaMetadata.height integer The height of the video in pixels.
videoMediaMetadata.durationMillis long The duration of the video in
milliseconds.
I suggest you use the "try it now" facility of https://developers.google.com/drive/v3/reference/files/get to get a file and see if the vailable meta data is what you are looking for.
At this time I'm able to upload Videos to my own YouTube channel on the back-end using API V3 with OAuth 2.0 seamlessly, the need I have is to notify users when they upload the same video twice. As far as I can see YouTube API V3 does not detects this issue until upload has finished. So this means that even if a video is a duplicated one, the upload will always succeed and then the YouTube interface will show the message: "ID Duplicated Video" to the right side of video list on my channel.
How can I read this info (ID Duplicated Video) through the API in PHP so that I can be able to notify user about this duplicated upload?
There is no interface to check if a user is uploading a duplicate video before uploading the entire file. Presumably, YouTube performs some kind of hash on the file after the upload has completed in order to check if it is a duplicate upload. Because the video file needs to be uploaded in its entirety for this check to happen, there is no way to check for a duplicate upload (currently) before an upload has completed.
I am developing a website, where I am allowing users to upload videos, but if the members numbers keep on increasing and they keep on uploading more videos it will be expensive for me. So I want to upload the movies to youtube instead, is this possible?
By viewing some other posts here, I am thinking it is possible?
You need Youtube API to upload the videos with PHP.
There are some ready scripts you can use to upload to youtube, the one that deserves mention here is:
PHPTube
More Resources
Use the YouTube API with PHP
YouTube Uploader
In addition to Sarfraz's links you also have the Services_YouTube PEAR package and the Zend_Gdata_YouTube class. They are both very well documented.