Checking the progress of a video uploading to YouTube - Unpublished Videos - c#-4.0

Is there a url I can go to to check the status of video I am uploading to YouTube via the API?
I went to this page
https://developers.google.com/youtube/2.0/developers_guide_protocol_checking_video_status
which told me to go to this URL
https://gdata.youtube.com/feeds/api/users//uploads
But all I got back is an RSS feed of videos that are already uploaded (Published).
I am looking for unpublished videos and the associated progress.
I am using resumable upload so I am think if 10% of the video got uploaded I should be able to see that somewhere?

In Java sample you can request progress status via MediaHttpUploader.getProgress() or MediaHttpUploader.getNumBytesUploaded() "https://code.google.com/p/youtube-api-samples/source/browse/samples/java/youtube-cmdline-uploadvideo-sample/src/main/java/com/google/api/services/samples/youtube/cmdline/youtube_cmdline_uploadvideo_sample/UploadVideo.java#213"
C# would be really similar.

Related

Can I record and upload video on Youtube API?

Can I use the YoutubeAPI on a web-app to record and save/upload a video with out it being broadcast live?
Use the method Videos: insert to upload video using YouTube api. About saving/downloading, I think, it's against their Terms of Service.
You shall not download any Content unless you see a “download” or
similar link displayed by YouTube on the Service for that Content.
You can see this SO post for further reference on downloading content in YouTube.
Youtube does not support recording straight to their platform anymore.
https://support.google.com/youtube/answer/57409?hl=en

Bug with uploading using youtube API?

I'm uploading videos using youtube API v3.
All was Ok until I copied and renamed my video file via node js:
fs.createReadStream(old_path).pipe(fs.createWriteStream(new_path));
After it, after uploading, in my video manager page (https://www.youtube.com/my_video) I have error: "Upload failed: can't process file". But in my app i recieved video ID in response. I've uploaded that file several times with the same result. But luckily I have original (not renamed) file in my backup, and I uploaded it successfully.
By the way, when I tried to upload the renamed file manually (through the browser), it was successful.
p.s. When I use
fs.writeFileSync(new_path, fs.readFileSync(old_path));
for copying and rename files, uploading also was successful.
I tried to do it with a bunch of files, with same results.
Here is the reference post 1 and reference post 2 from YouTube help forum where the user has encountered the same issue.
The same issue was cited in the SO post as well.
Where the recommendation are the same as what I have given.
It's possible there's issues with the video file on the conversion
side of things.
Another reason maybe is the file format.
Currently the supported formats are listed below:
.MOV
.MPEG4
MP4
.AVI
.WMV
.MPEGPS
.FLV
3GPP
WebM
Try to check Recommended upload encoding settings for your videos on youtube as well.

Upload videos to twitter from url in node

In my app I want to post a video to multiple networks (fb, twitter...), i'm uploading video to cloudinary and it sends back url, which I use to post to fb.
For twitter, there is no way to post a video with the url. Is there any alternatives to do this?
My server size is pretty low, like 1-2GB, so I can't download a video to my server and then create a stream to upload to twitter. I worry that if 3-4 users started to upload then my server will crash with out of memory.
Any suggestions using twit package or Simple HTTP Requests are welcome. Thanks
I had found an interesting article on how to upload your files to third party. Streaming File Uploads to Storage Server with Node.js
So you can update the code from the example with your twitter upload code.

Youtube browser based upload

We have set up an upload page on a client's site to upload videos to YouTube using the browser based upload rather than direct upload.
We have run some test uploads for videos around 500Mb in size which have uploaded fine, but we had a shot at a much large one - 1.9Gb - and that failed.
The only error we could see was in the return URL which ended "status=400&error=TOKEN_EXPIRED".
Now, the videos do take a long time to upload. On average a 400Mb video takes just under 2 hours, so we reckoned on a 1.9Gb video to take getting on for 10 hours.
Could the issue be that the token which Youtube returns is only valid for a certain period of time, and because of the length of time taken to upload the 1.9Gb files, it simply expired?
I can't find any anwser to this on the Google forum and in any case that forum is now closed to new posts.
If anyone can shed some light on this we would be grateful.
How long was the upload going for when you got this token?
Youtube did have a token timeout at like 4.5hours, not sure if they still do or not.

Get YouTube video comments in my website

In my website i got succeeded in embedding videos from YouTube but i'm not getting the comments made on that videos. So is there any way to get that comments embedded with the video in my website. Thanks in advance.
Th easiest way to access YouTube data, without authentication or the YouTube API, is by using the YouTube Query URLS.
For Comments, process this URL:
http://gdata.youtube.com/feeds/api/videos/{$videoId}/comments
Additional meta data on the video can be accessed using processing this URL:
http://gdata.youtube.com/feeds/api/videos/{$videoId}

Resources