Joined: 10/7/2012
Posts: 1
What I really don't understand is what to do after I get to the "Register A New Product" part. What should I register? Should I enter YTU there? Nach's YouTube Uploader?
Experienced player (759)
Joined: 6/17/2008
Posts: 146
Balee wrote:
What I really don't understand is what to do after I get to the "Register A New Product" part. What should I register? Should I enter YTU there? Nach's YouTube Uploader?
You can enter anything there.
Emulator Coder
Joined: 3/9/2004
Posts: 4588
Location: In his lab studying psychology to find new ways to torture TASers and forumers
New version of ytu (v1.6) has been uploaded. What's New in 1.5:
  • Libraries updated (Fixes against new TLS attacks, less CPU usage, slightly smoother progress bar).
  • Added throttling support.
What's New in 1.6:
  • Version number is now displayed in output, so you know which version you have.
  • Switched to new SQL library (cleaner code).
  • Path parsing now looks for / and \ instead of platform specific slash, to ensure various custom scripts work well.
  • MD5 hashing now displays a progress bar.
  • Increased file read buffer size. Should speed up hashing on some systems.
  • Replaced OpenSSL's MD5 hashing algorithm with custom version based on NSRT's. This gives a modest performance improvement on AMD64, and a significant performance improvement on i386.
  • Windows builds displays hash/upload progress in title bar.
Warning: Opinions expressed by Nach or others in this post do not necessarily reflect the views, opinions, or position of Nach himself on the matter(s) being discussed therein.
Emulator Coder
Joined: 3/9/2004
Posts: 4588
Location: In his lab studying psychology to find new ways to torture TASers and forumers
New version of ytu (v1.7 beta1) has been uploaded. What's New in 1.7 beta1:
  • Text tweaks.
  • Uploading of captions.
Working with captions:
  ytu --caption <video> <title> <captions> <language> <encoding>
  video       A continuation ID or video URL.
  title       The title of the caption track.
  captions    A file containing the captions in a standard subtitle format.
  language    A two letter code (eg: en) specifying the language.
  encoding    The character encoding used by the subtitle file (eg: UTF-8).
Example:
ytu --caption "http://www.youtube.com/watch?v=Bsa15vvQd4c" "Commentary" "2462m.srt" en UTF-8
You can upload multiple caption tracks to a video. Give them different names or different languages. Many subtitle formats are supported. Language Codes: http://reference.sitepoint.com/html/lang-codes Character Encodings: http://en.wikipedia.org/wiki/Character_encoding#Common_character_encodings Please test this out and see how well it works, and also give me feedback on what you think of this new subtitle feature. Is the usage for it sane? Ideas how to improve it? Thank you everyone!
Warning: Opinions expressed by Nach or others in this post do not necessarily reflect the views, opinions, or position of Nach himself on the matter(s) being discussed therein.
Joined: 1/6/2014
Posts: 1
Hi Nach, this is my first post on this forum. I found your ytu while searching for a youtube uploader via console, great work. I tested it on windows 7 64bit and it's working ok, while on windows 8 64bit (no uac enabled) keeps giving me 'timeout was reached' immediately after starting. File: F:\AMBRA VIDEO\2007-11-07-23-11-5163.AVI Size: 8125744 MD5: 55a4c1fe18491ac64a2b2b833fb40f17 Continuation ID: 63 8125744/8125744 [*************************] 100% 326.399 KB/s 0:00:00:00 Timeout was reached Sometimes even in windows 7 the upload immediately reaches the 90%, as if it were resuming, even if the file was not on youtube, with an erroneous speed value. Am I doing something wrong? And would it be possible not to pass the description file parameter? Thank you in advance. Your work saved me a lot of time. Massimo
Emulator Coder
Joined: 3/9/2004
Posts: 4588
Location: In his lab studying psychology to find new ways to torture TASers and forumers
maxthegoof wrote:
Sometimes even in windows 7 the upload immediately reaches the 90%, as if it were resuming, even if the file was not on youtube, with an erroneous speed value. Am I doing something wrong?
It's possible there's a bug somewhere. Or perhaps an issue with your internet connection. If you want to debug it, edit credentials.txt, and set the 5th line to true to enable debugging. Note, do not share an entire unredacted debug log publicly as it will contain some sensitive information.
maxthegoof wrote:
And would it be possible not to pass the description file parameter?
Since descriptions can be long and contain newlines, passing them directly as a parameter can be problematic. Instead place your description in a text file, and use < as shown in the instructions or command line help. If you're embedding YTU within another application, just use popen() or your language's equivalent.
Warning: Opinions expressed by Nach or others in this post do not necessarily reflect the views, opinions, or position of Nach himself on the matter(s) being discussed therein.
Post subject: At long last, ytu 2.0 RC1
Emulator Coder
Joined: 3/9/2004
Posts: 4588
Location: In his lab studying psychology to find new ways to torture TASers and forumers
I'm sorry for the long wait on this, Google's new stuff is crazy and broken, and on top of everything, I had to spend considerable time in the hospital with a relative. For those of you who haven't been paying attention on IRC, Google has deprecated their old authentication and YouTube APIs, and are going to be shutting things off shortly. I've spend most of my recent time working through Google's ridiculous new APIs, figuring out how they work, how best to make use of them, and working on switching ytu over to the new stuff. Since this was very high priority, I haven't been around here, or done much of anything besides work on this. I'm sorry if anyone felt like I've been ignoring or neglecting you. ---- New version of ytu (v2.0 RC1) has been uploaded. What's New in 2.0 RC1:
  • Switched to new Google Authentication system. This new system unfortunately requires a ridiculous initial setup process.
  • Switch everything over to new YouTube APIs, except for Captions, because Google deprecated the old API, but did not create a new API for captions yet. (Thankfully the old API seems it can be coaxed into working, and theoretically this technique being used should have about a year of life left, unlike the other components of the old APIs.)
  • Removed many permission settings Google no longer supports via their APIs.
  • Added ability to delete videos.
  • More information is stored about each upload, and can be retrieved using the new info option.
  • Category numbers changed for new API.
Please see the included PDF regarding how to obtain credentials for this new version. Those of you who couldn't obtain credentials with previous versions of ytu should now be able to do so. Please test everything as thoroughly and as soon as possible, as the old APIs that prior versions of ytu uses will be shut off in a few days, and we don't want our YouTube related activities to stop working, nor run on buggy code. With this new version, I also started work on allowing authentication to be proxied from another account. This means, once it's ready, all site encoders will be able to use ytu to directly work with the site's YouTube videos. While that's not useful for videos that you're unable to uploaded within Google's time limit, or have a really bad connection, it will be useful for uploading smaller videos very quickly if you have a fast connection, or performing your own updates, deletes, and caption uploads. Stay tuned.
Warning: Opinions expressed by Nach or others in this post do not necessarily reflect the views, opinions, or position of Nach himself on the matter(s) being discussed therein.
Site Admin, Skilled player (1236)
Joined: 4/17/2010
Posts: 11274
Location: RU
- uploading and deleting works as expected - upload speed for me is ~950KB/s - spaces in video titles aren't supported, but I see no need in them when aiming for TVC (EDIT: I think quotes are required for titles with spaces, but haven't tested) Pending further tests...
Warning: When making decisions, I try to collect as much data as possible before actually deciding. I try to abstract away and see the principles behind real world events and people's opinions. I try to generalize them and turn into something clear and reusable. I hate depending on unpredictable and having to make lottery guesses. Any problem can be solved by systems thinking and acting.
fsvgm777
She/Her
Senior Publisher, Player (221)
Joined: 5/28/2009
Posts: 1185
Location: Luxembourg
feos wrote:
(EDIT: I think quotes are required for titles with spaces, but haven't tested)
I have tried it just now, and quotes are required for the video title if it contains spaces (it's the same deal for tags as well; if one of them contains spaces, put tag list between quotes). Also, the upload speed was at over 1.1 MB/s (over 1.4 MB/s on my second test upload) for me on a 40 MB test file. EDIT: Caption uploading works as expected. EDIT 2: Oh, by the way, updating an already uploaded video's metadata causes the permissions to be reset back to Public, though I'm pretty sure that if I added the --permissions option, it wouldn't have happened. Just wanted to point it out (it happened to me when I messed around with the test video using ytu, at least).
Steam Community page - Cohost profile Oh, I'm just a concerned observer.
Site Admin, Skilled player (1236)
Joined: 4/17/2010
Posts: 11274
Location: RU
Tested subs, and they work too.
Warning: When making decisions, I try to collect as much data as possible before actually deciding. I try to abstract away and see the principles behind real world events and people's opinions. I try to generalize them and turn into something clear and reusable. I hate depending on unpredictable and having to make lottery guesses. Any problem can be solved by systems thinking and acting.
Emulator Coder
Joined: 3/9/2004
Posts: 4588
Location: In his lab studying psychology to find new ways to torture TASers and forumers
fsvgm777 wrote:
EDIT 2: Oh, by the way, updating an already uploaded video's metadata causes the permissions to be reset back to Public, though I'm pretty sure that if I added the --permissions option, it wouldn't have happened. Just wanted to point it out (it happened to me when I messed around with the test video using ytu, at least).
I'll see about fixing that.
Warning: Opinions expressed by Nach or others in this post do not necessarily reflect the views, opinions, or position of Nach himself on the matter(s) being discussed therein.
Post subject: New release: ytu 2.0 RC2.
Emulator Coder
Joined: 3/9/2004
Posts: 4588
Location: In his lab studying psychology to find new ways to torture TASers and forumers
New version of ytu (v2.0 RC2, and hopefully v2.0 final) has been uploaded. What's New in 2.0 RC2: Issue reported by fsvgm777 should be fixed.
fsvgm777 wrote:
Oh, by the way, updating an already uploaded video's metadata causes the permissions to be reset back to Public, though I'm pretty sure that if I added the --permissions option, it wouldn't have happened. Just wanted to point it out (it happened to me when I messed around with the test video using ytu, at least).
Please test that it's been fixed. Since fixing this also required some architectural changes, please ensure that nothing else was broken in the process. Please test and provide feedback right away, as Google demands that we switch to the new version by midnight.
Warning: Opinions expressed by Nach or others in this post do not necessarily reflect the views, opinions, or position of Nach himself on the matter(s) being discussed therein.
Post subject: Re: New release: ytu 2.0 RC3.
Emulator Coder
Joined: 3/9/2004
Posts: 4588
Location: In his lab studying psychology to find new ways to torture TASers and forumers
New version of ytu (v2.0 RC3, and hopefully v2.0 final) has been uploaded. What's New in 2.0 RC3: It seems YouTube has the same bug in their API as the previous build of my fixed, not offering any real fix. Although I managed to quickly find a work around. So this should now be fully fixed. Please test and provide feedback right away, as Google demands that we switch to the new version by midnight.
Warning: Opinions expressed by Nach or others in this post do not necessarily reflect the views, opinions, or position of Nach himself on the matter(s) being discussed therein.
Joined: 11/16/2015
Posts: 3
Could there be an option to upload to a specific playlist?
Emulator Coder
Joined: 3/9/2004
Posts: 4588
Location: In his lab studying psychology to find new ways to torture TASers and forumers
I'm not sure what that means. How does one upload a playlist as opposed to just uploading a bunch of videos?
Warning: Opinions expressed by Nach or others in this post do not necessarily reflect the views, opinions, or position of Nach himself on the matter(s) being discussed therein.
Joined: 4/13/2009
Posts: 431
It seems to me that a1s2d3f4 wants to upload a video and add it to a specific playlist, not a predetermined one, or none at all.
Emulator Coder
Joined: 3/9/2004
Posts: 4588
Location: In his lab studying psychology to find new ways to torture TASers and forumers
I see. I could look into that. Unfortunately though Google changes their playlist APIs constantly, and I'd rather not get into an arms race with them. As is, I have to keep updating the initial stages documentation because Google restructures their authentication console constantly (4 times! since March when I wrote this documentation).
Warning: Opinions expressed by Nach or others in this post do not necessarily reflect the views, opinions, or position of Nach himself on the matter(s) being discussed therein.
Joined: 4/13/2009
Posts: 431
I do not recall google changing their playlist api since its v3 API (I have no experience with their v2 API as I've never used it).
Joined: 11/16/2015
Posts: 3
It was something I noticed the python based uploader offered. But I looked into it and YT allows you to configure playlists to ingest videos based on strings in titles/tags. So, nevermind. Thanks for considering.
Joined: 11/16/2015
Posts: 3
Nach wrote:
I see. I could look into that. Unfortunately though Google changes their playlist APIs constantly, and I'd rather not get into an arms race with them. As is, I have to keep updating the initial stages documentation because Google restructures their authentication console constantly (4 times! since March when I wrote this documentation).
Yeah, a big PIA for you, I am sure. Through some intuitive clicking I was able to set it up as you require per the PDF, but the interface is completely different now (as compared to all the screen shots in the PDF)
Post subject: Re: nevermind
Emulator Coder
Joined: 3/9/2004
Posts: 4588
Location: In his lab studying psychology to find new ways to torture TASers and forumers
a1s2d3f4 wrote:
It was something I noticed the python based uploader offered.
I don't even know what that is. I've never uploaded a video to YT except via ytu. Since you have experience with this other one, what made you decide to use mine?
a1s2d3f4 wrote:
Yeah, a big PIA for you, I am sure. Through some intuitive clicking I was able to set it up as you require per the PDF, but the interface is completely different now (as compared to all the screen shots in the PDF)
You have no idea. The one that's in the PDF in the latest package is my second edition of these instructions since March. I redid the screenshots again ~3 weeks ago because I'm about to make another release which fixes the subtitle/caption code for the changes Google made to the APIs a little over a month ago. Then when I was about to release it, they completely changed the interface again! I haven't yet had a chance to update the screenshots which is why 2.1 isn't released yet, and Google kind of killed my motivation with two huge sweeping changes inside of a month. Google could also make everyone's life easier if they would just provide a button in your YouTube setting's somewhere to just download a key for it to use. But no, they want everyone to jump through a 15 step process.
Warning: Opinions expressed by Nach or others in this post do not necessarily reflect the views, opinions, or position of Nach himself on the matter(s) being discussed therein.
Post subject: error getting credentials.
Joined: 6/8/2016
Posts: 1
Location: Toronto
Hello, Thank you for your effort building this tool. I'm getting an error setting up credentials... at the very last steps (18/19), with google returning
Request did not contain "refresh_token", received:
stdClass Object
(
    [access_token] =>. (token)

Any suggestions? Thank you!
GB47
He/Him
Joined: 3/8/2017
Posts: 1
can anyone help me please !! i'm facing with this following error: Runtime error: Credentials missing "grant_type"
Emulator Coder
Joined: 3/9/2004
Posts: 4588
Location: In his lab studying psychology to find new ways to torture TASers and forumers
Google is annoying that they keep changing their UI, so whatever documentation I write or update keeps getting out of date. If you're seeing an error that certain details are missing, that generally means an incorrect option was chosen earlier in the process, to generate invalid results. Try the process again, trying to find the options that seem to most closely match what's in the documentation. Also keep track of what it is, and provide the details if you encounter errors such as these. We can work back once we know what options were selected.
Warning: Opinions expressed by Nach or others in this post do not necessarily reflect the views, opinions, or position of Nach himself on the matter(s) being discussed therein.
Post subject: file size limit? cmd just closes after a few hours
Joined: 5/7/2018
Posts: 3
Hello, new guy here. I just recently came across this program and OMG it is going to help me save some time. A big THANK YOU to Nach for making this. I'm having an issue though... I've noticed that when trying to upload an EXTREMELY large file, the CMD window just closes by itself after a few hours. Are there any limitations to file size when using this program? The file I'm having issues with is almost 17Gb. Thanks in advance for any help. Also, are there any plans to update this in the future? I'd love to keep up with the development of this. Thanks! -Keith aka TheHaggardNerd www.youtube.com/thehaggardnerd