TwitchDownloader
TwitchDownloader copied to clipboard
Total NOOB here! I can't install the MacOS app on my Mac. The Terminal can't find "cd directory/containing/TwitchDownloaderCLI". I would love some assistance!
Checklist
- [X] I have checked the issue page for duplicates
Write stuff here
I read the README. I'm stuck at step 4.
I downloaded "TwitchDownloaderCLI-1.54.0-MacOSArm64.zip"
Double clicked on it to open it. Opened the Terminal to locate the extracted file.
(BTW I never used the Terminal before, so I don't know if I did things correctly)
I pasted "cd directory/containing/TwitchDownloaderCLI" in the Terminal and this is the result I got:
What did I do wrong? I don't know what to do from here.
Thanks so much in advance.
The latter part of the cd command in the readme is an example as there is no way for us to know where you extracted the binary to. If you extracted to your downloads for example, then the command may look like cd ~/Downloads/TwitchDownloaderCLI-1.54.0-MacOSArm64
, which would bring you to the directory Home/Downloads/TwitchDownloaderCLI-1.54.0-MacOSArm64
, where the TwitchDownloaderCLI
binary should hopefully be. You can confirm that the binary is in the current directory with the command ls -l
.
If you need further assistance with the CLI, you can see if https://github.com/lay295/TwitchDownloader/issues/789#issuecomment-1689230243 may have already an answer to your question.
Ok. Thanks!
It's my first time using Terminal. I don't know anything about commands.
I followed through the steps mentioned on #789.
I got to the "./TwitchDownloaderCLI ffmpeg -d" part, but when I did that I got this pop up
I tried both clicking on OK and on "show in finder" and in both cases I only get this result:
"just@Justs-MacBook-Pro Downloads % ./TwitchDownloaderCLI ffmpeg -d
zsh: killed ./TwitchDownloaderCLI ffmpeg -d"
Is there a way to get passed that?
Thanks again!
^ click show in finder on this popup, then right click on the highlighted file in your finder & click open, open it if it asks you if you want to again, wait for the terminal window to display [Process Completed], then close that terminal window and proceed with the steps in the readme.
Ok. Thanks! It's my first time using Terminal. I don't know anything about commands. I followed through the steps mentioned on #789. I got to the "./TwitchDownloaderCLI ffmpeg -d" part, but when I did that I got this pop up
I tried both clicking on OK and on "show in finder" and in both cases I only get this result: "just@Justs-MacBook-Pro Downloads % ./TwitchDownloaderCLI ffmpeg -d zsh: killed ./TwitchDownloaderCLI ffmpeg -d" Is there a way to get passed that? Thanks again!
Did you run chmod +x ffmpeg
first? I believe that should circumvent the issue. If it does not, there should be a setting to allow unsigned software to run. If even that does not work, I believe there is a checkbox in the Finder file info/properties window to allow the app to run.
chmod +x ffmpeg
I tried that and it seemed to have worked. Next things it's requesting the VOD ID. I have no idea what that means. Is the the url or just the string of numbers?
Ok. Thanks! It's my first time using Terminal. I don't know anything about commands. I followed through the steps mentioned on #789. I got to the "./TwitchDownloaderCLI ffmpeg -d" part, but when I did that I got this pop up
I tried both clicking on OK and on "show in finder" and in both cases I only get this result: "just@Justs-MacBook-Pro Downloads % ./TwitchDownloaderCLI ffmpeg -d zsh: killed ./TwitchDownloaderCLI ffmpeg -d" Is there a way to get passed that? Thanks again!
Did you run
chmod +x ffmpeg
first? I believe that should circumvent the issue. If it does not, there should be a setting to allow unsigned software to run. If even that does not work, I believe there is a checkbox in the Finder file info/properties window to allow the app to run.
I tried that command, but I get this: "zsh: command not found: chmod+x just@Justs-MacBook-Pro ~ % " Then I tried to download the ffmpeg using this command: "./TwitchDownloaderCLI ffmpeg -d" and it only gave me this: zsh: no such file or directory: ./TwitchDownloaderCLI just@Justs-MacBook-Pro ~ % " So I don't really know what to do from here
Next things it's requesting the VOD ID. I have no idea what that means. Is the the url or just the string of numbers?
Either or works
Then I tried to download the ffmpeg using this command: "./TwitchDownloaderCLI ffmpeg -d" and it only gave me this: zsh: no such file or directory: ./TwitchDownloaderCLI just@Justs-MacBook-Pro ~ % " So I don't really know what to do from here
You are in your home directory. You need to change directories (cd
) back to the directory containing TwitchDownloaderCLI
Next things it's requesting the VOD ID. I have no idea what that means. Is the the url or just the string of numbers?
Either or works
Then I tried to download the ffmpeg using this command: "./TwitchDownloaderCLI ffmpeg -d" and it only gave me this: zsh: no such file or directory: ./TwitchDownloaderCLI just@Justs-MacBook-Pro ~ % " So I don't really know what to do from here
You are in your home directory. You need to change directories (
cd
) back to the directory containing TwitchDownloaderCLI
Now I'm getting this message: "[ERROR] - Unable to update FFmpeg file permissions. Run 'sudo chmod +x ffmpeg' if further FFmpeg errors occur. just@Justs-MacBook-Pro Downloads % sudo chmod +x ffmpeg Password:"
There's a key icon next to "password:" I'm sorry if I keep asking questions about this. I never used the terminal before, so I'm not familiar with any command or what the directory is, etc...
On mac, you do not need to prefix it with sudo
, just run chmod +x ffmpeg
. This error was fixed for the next release.
Also for future reference, the terminal will never show your password as you type, but it will still record your key strokes.
On Sat., Jan. 13, 2024, 1:15 p.m. KIBOLG, @.***> wrote:
Next things it's requesting the VOD ID. I have no idea what that means. Is the the url or just the string of numbers?
Either or works
Then I tried to download the ffmpeg using this command: "./TwitchDownloaderCLI ffmpeg -d" and it only gave me this: zsh: no such file or directory: ./TwitchDownloaderCLI @.*** ~ % " So I don't really know what to do from here
You are in your home directory. You need to change directories (cd) back to the directory containing TwitchDownloaderCLI
Now I'm getting this message: "[ERROR] - Unable to update FFmpeg file permissions. Run 'sudo chmod +x ffmpeg' if further FFmpeg errors occur. @.*** Downloads % sudo chmod +x ffmpeg Password:"
There's a key icon next to "password:" I'm sorry if I keep asking questions about this. I never used the terminal before, so I'm not familiar with any command or what the directory is, etc...
— Reply to this email directly, view it on GitHub https://github.com/lay295/TwitchDownloader/issues/943#issuecomment-1890652405, or unsubscribe https://github.com/notifications/unsubscribe-auth/ARGBYQINQA27GLJZVQTBBMTYOLFMJAVCNFSM6AAAAABBWBOBTGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQOJQGY2TENBQGU . You are receiving this because you commented.Message ID: @.***>
@KIBOLG would you mind hopping on a discord vc or something? im happy to walk you through the whole process if you wanna share ur screen or sum. kind of hard to explain step by step here. but im happy to try here too if youre not comfortable over discord. this is assuming @ScrubN 's latest comment didnt work for you
side note @KIBOLG i totally agree with you that the directions in the readme are very much not noob friendly (i was once a noob too and had no idea how to install this program based on the knowledge in the readme) so i feel u lol
You are more than welcome to submit a PR with friendlier instructions. I'm not sure how much easier setting up a CLI tool can get though.
On Sat., Jan. 13, 2024, 1:53 p.m. ComfortableMilk4454, < @.***> wrote:
side note @KIBOLG https://github.com/KIBOLG i totally agree with you that the directions in the readme are very much not noob friendly (i was once a noob too and had no idea how to install this program based on the knowledge in the readme) so i feel u lol
— Reply to this email directly, view it on GitHub https://github.com/lay295/TwitchDownloader/issues/943#issuecomment-1890705577, or unsubscribe https://github.com/notifications/unsubscribe-auth/ARGBYQMVV4ZI7J7NRFTJ2S3YOLJ3VAVCNFSM6AAAAABBWBOBTGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQOJQG4YDKNJXG4 . You are receiving this because you were mentioned.Message ID: @.***>
could i make a video tutorial for both windows and macOS? cant do one for linux cuz i dont own a linux computer, let alone know what that is lol
You are more than welcome to submit a PR with friendlier instructions. I'm not sure how much easier setting up a CLI tool can get though. … On Sat., Jan. 13, 2024, 1:53 p.m. ComfortableMilk4454, < @.> wrote: side note @KIBOLG https://github.com/KIBOLG i totally agree with you that the directions in the readme are very much not noob friendly (i was once a noob too and had no idea how to install this program based on the knowledge in the readme) so i feel u lol — Reply to this email directly, view it on GitHub <#943 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/ARGBYQMVV4ZI7J7NRFTJ2S3YOLJ3VAVCNFSM6AAAAABBWBOBTGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQOJQG4YDKNJXG4 . You are receiving this because you were mentioned.Message ID: @.>
Well it's maybe a matter of taking into consideration that some people are starting from square one and have never used Terminal or any similar software that requires these types of commands.
I'm definitely not a genius, but I'm not dumb either. And I feel like the instructions I'm getting so far seem to assume that I already know a bunch of things that I don't. Like "just run chmod +x ffmpeg
"... I have no idea what that means and how to run it. As for my question about the password, I don't know what password it's requesting from me.
Go on ahead. You can submit them in a PR or link them here and they can be added to the README.
On Sat., Jan. 13, 2024, 1:59 p.m. ComfortableMilk4454, < @.***> wrote:
could i make a video tutorial for both windows and macOS? cant do one for linux cuz i dont own a linux computer, let alone know what that is lol
— Reply to this email directly, view it on GitHub https://github.com/lay295/TwitchDownloader/issues/943#issuecomment-1890714332, or unsubscribe https://github.com/notifications/unsubscribe-auth/ARGBYQMHSMH3AD6KSCOFMSTYOLKRXAVCNFSM6AAAAABBWBOBTGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQOJQG4YTIMZTGI . You are receiving this because you were mentioned.Message ID: @.***>
You are more than welcome to submit a PR with friendlier instructions. I'm not sure how much easier setting up a CLI tool can get though. … On Sat., Jan. 13, 2024, 1:53 p.m. ComfortableMilk4454, < @.> wrote: side note @KIBOLG https://github.com/KIBOLG i totally agree with you that the directions in the readme are very much not noob friendly (i was once a noob too and had no idea how to install this program based on the knowledge in the readme) so i feel u lol — Reply to this email directly, view it on GitHub <#943 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/ARGBYQMVV4ZI7J7NRFTJ2S3YOLJ3VAVCNFSM6AAAAABBWBOBTGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQOJQG4YDKNJXG4 . You are receiving this because you were mentioned.Message ID: _@**.**_>
Well it's maybe a matter of taking into consideration that some people are starting from square one and have never used Terminal or any similar software that requires these types of commands. I'm definitely not a genius, but I'm not dumb either. And I feel like the instructions I'm getting so far seem to assume that I already know a bunch of things that I don't. Like "just run
chmod +x ffmpeg
"... I have no idea what that means and how to run it. As for my question about the password, I don't know what password it's requesting from me.
Would you like my help tho?
Go on ahead. You can submit them in a PR or link them here and they can be added to the README. … On Sat., Jan. 13, 2024, 1:59 p.m. ComfortableMilk4454, < @.> wrote: could i make a video tutorial for both windows and macOS? cant do one for linux cuz i dont own a linux computer, let alone know what that is lol — Reply to this email directly, view it on GitHub <#943 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/ARGBYQMHSMH3AD6KSCOFMSTYOLKRXAVCNFSM6AAAAABBWBOBTGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQOJQG4YTIMZTGI . You are receiving this because you were mentioned.Message ID: @.>
Kk I will do this later today ET
So now I think the "chmod +x" and "chmod +x ffmpeg are installed or running (I'm not sure what is the right term), so I tried the following step and tried to download a vod using this command: "./TwitchDownloaderCLI videodownload --id
What am I doing wrong or what should I do?
You are more than welcome to submit a PR with friendlier instructions. I'm not sure how much easier setting up a CLI tool can get though. … On Sat., Jan. 13, 2024, 1:53 p.m. ComfortableMilk4454, < @.> wrote: side note @KIBOLG https://github.com/KIBOLG i totally agree with you that the directions in the readme are very much not noob friendly (i was once a noob too and had no idea how to install this program based on the knowledge in the readme) so i feel u lol — Reply to this email directly, view it on GitHub <#943 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/ARGBYQMVV4ZI7J7NRFTJ2S3YOLJ3VAVCNFSM6AAAAABBWBOBTGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQOJQG4YDKNJXG4 . You are receiving this because you were mentioned.Message ID: _@**.**_>
Well it's maybe a matter of taking into consideration that some people are starting from square one and have never used Terminal or any similar software that requires these types of commands. I'm definitely not a genius, but I'm not dumb either. And I feel like the instructions I'm getting so far seem to assume that I already know a bunch of things that I don't. Like "just run
chmod +x ffmpeg
"... I have no idea what that means and how to run it. As for my question about the password, I don't know what password it's requesting from me.Would you like my help tho?
Sure. I don't think I can do the vc or screenshare right now, but if you want we can chat on discord.
Well it's maybe a matter of taking into consideration that some people are starting from square one and have never used Terminal or any similar software that requires these types of commands. I'm definitely not a genius, but I'm not dumb either. And I feel like the instructions I'm getting so far seem to assume that I already know a bunch of things that I don't. Like "just run
chmod +x ffmpeg
"... I have no idea what that means and how to run it. As for my question about the password, I don't know what password it's requesting from me.
I will agree with you for cd directory/containing/TwitchDownloaderCLI
, since many first time terminal users won't be familiar with navigating directories outside of their file manager.
For chmod +x ffmpeg
I believe the readme adequately explains that the command gives executable rights to FFmpeg, however I am viewing this through the lens of someone familiar with the terminal.
Lastly for <vod-id-here>
, I can understand users pasting the literal text or being unsure of what constitutes as an "id". This could probably be improved by linking the example commands section of the CLI README.
@ScrubN By the way, I really appreciate you trying to help me so far. I'm not complaining about it. I just don't have the knowledge to use some of this info.
Well it's maybe a matter of taking into consideration that some people are starting from square one and have never used Terminal or any similar software that requires these types of commands. I'm definitely not a genius, but I'm not dumb either. And I feel like the instructions I'm getting so far seem to assume that I already know a bunch of things that I don't. Like "just run
chmod +x ffmpeg
"... I have no idea what that means and how to run it. As for my question about the password, I don't know what password it's requesting from me.I will agree with you for
cd directory/containing/TwitchDownloaderCLI
, since many first time terminal users won't be familiar with navigating directories outside of their file manager. Forchmod +x ffmpeg
I believe the readme adequately explains that the command gives executable rights to FFmpeg, however I am viewing this through the lens of someone familiar with the terminal. Lastly for<vod-id-here>
, I can understand users pasting the literal text or being unsure of what constitutes as an "id". This could probably be improved by linking the example commands section of the CLI README.
Thanks for the consideration. I didn't enter
So now I think the "chmod +x" and "chmod +x ffmpeg are installed or running (I'm not sure what is the right term), so I tried the following step and tried to download a vod using this command: "./TwitchDownloaderCLI videodownload --id -o out.mp4" but I'm getting this message: "zsh: no such file or directory: 2019619501"
What am I doing wrong or what should I do?
It seems like you made a typo while typing your command. You want to make sure the video id is typed after --id
. i.e. ./TwitchDownloaderCLI videodownload --id 2019619501 -o out.mp4
Sure. I don't think I can do the vc or screenshare right now, but if you want we can chat on discord.
no worries, my cord is @jeff_winklepicker. ill be on the lookout for a fr
So now I think the "chmod +x" and "chmod +x ffmpeg are installed or running (I'm not sure what is the right term), so I tried the following step and tried to download a vod using this command: "./TwitchDownloaderCLI videodownload --id -o out.mp4" but I'm getting this message: "zsh: no such file or directory: 2019619501" What am I doing wrong or what should I do?
It seems like you made a typo while typing your command. You want to make sure the video id is typed after
--id
. i.e../TwitchDownloaderCLI videodownload --id 2019619501 -o out.mp4
Ahh gotcha. I thought I had to leave the brackets in (<>). I tried without and now I got this message:
just@Justs-MBP downloads % ./TwitchDownloaderCLI videodownload --id 2019619501 -o out.mp4
TwitchDownloaderCLI 1.54.0+eb8124ed0587bd362e7906773380b0d8de683388 Copyright (c) lay295 and contributors
[STATUS] - Fetching Video Info [1/5]Unhandled exception. System.AggregateException: One or more errors occurred. (Response status code does not indicate success: 403 (Forbidden).)
---> System.Net.Http.HttpRequestException: Response status code does not indicate success: 403 (Forbidden).
at System.Net.Http.HttpResponseMessage.EnsureSuccessStatusCode()
at TwitchDownloaderCore.TwitchHelper.GetVideoPlaylist(Int32 videoId, String token, String sig) in /Users/runner/work/TwitchDownloader/TwitchDownloader/TwitchDownloaderCore/TwitchHelper.cs:line 87
at TwitchDownloaderCore.VideoDownloader.GetQualityPlaylist(GqlVideoResponse videoInfo) in /Users/runner/work/TwitchDownloader/TwitchDownloader/TwitchDownloaderCore/VideoDownloader.cs:line 568
at TwitchDownloaderCore.VideoDownloader.DownloadAsync(CancellationToken cancellationToken) in /Users/runner/work/TwitchDownloader/TwitchDownloader/TwitchDownloaderCore/VideoDownloader.cs:line 59
--- End of inner exception stack trace ---
at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean )
at System.Threading.Tasks.Task.Wait(Int32 , CancellationToken )
at System.Threading.Tasks.Task.Wait()
at TwitchDownloaderCLI.Modes.DownloadVideo.Download(VideoDownloadArgs inputOptions) in /Users/runner/work/TwitchDownloader/TwitchDownloader/TwitchDownloaderCLI/Modes/DownloadVideo.cs:line 23
at CommandLine.ParserResultExtensions.WithParsed[T](ParserResult`1 result, Action`1 action)
at TwitchDownloaderCLI.Program.Main(String[] args) in /Users/runner/work/TwitchDownloader/TwitchDownloader/TwitchDownloaderCLI/Program.cs:line 33
zsh: abort ./TwitchDownloaderCLI videodownload --id 2019619501 -o out.mp4
just@Justs-MBP downloads %
@jeff_winklepicker
Cool! Sent you a fr. I'm @Globik
just accepted it!
Ahh gotcha. I thought I had to leave the brackets in (<>). I tried without and now I got this message:
It looks like the VOD is subscriber-only. You will need to provide the program with an oauth token from your account.
The easiest way to get a twitch oauth is to use the dev tools in your browser. Here is a screenshot of how to get it from a chromium based browser, and it is the same process on Firefox but at Storage
> Cookies
instead of Application
> Cookies
. The cookie you are looking for is called auth-token
. Do NOT share it with anyone, even me.
Normally the program would tell you that OAuth is needed to access the VOD, but I guess Twitch changed the response again so that'll need to be updated. Also, there is a video tutorial on how to get your OAuth token in the windows GUI application. I should probably put that link somewhere in the CLI too.
just uploaded the tutorial i just made to yt @KIBOLG i dmd u the link but ill paste it here too. also check your discord for the stuff you need to paste into terminal. https://youtu.be/ECO8GWWFGSw
Ahh gotcha. I thought I had to leave the brackets in (<>). I tried without and now I got this message:
It looks like the VOD is subscriber-only. You will need to provide the program with an oauth token from your account.
The easiest way to get a twitch oauth is to use the dev tools in your browser. Here is a screenshot of how to get it from a chromium based browser, and it is the same process on Firefox but at
Storage
>Cookies
instead ofApplication
>Cookies
. The cookie you are looking for is calledauth-token
. Do NOT share it with anyone, even me.Normally the program would tell you that OAuth is needed to access the VOD, but I guess Twitch changed the response again so that'll need to be updated. Also, there is a video tutorial on how to get your OAuth token in the windows GUI application. I should probably put that link somewhere in the CLI too.
Ah ok! That explains it! I finally got it to work! Thanks again for the help