TwitchDownloader icon indicating copy to clipboard operation
TwitchDownloader copied to clipboard

im an idiot and idk how to use the macos app or set it up and yes i read the readme getting started for macos

Open comfortablemilk4454 opened this issue 1 year ago • 37 comments

Checklist

  • [x] I have checked the issue page for duplicates

Write stuff here

see title, i would greatly appreciate it if someone could take a moment who knows what they're talking about to explain to me how to set up & use this program on macos with apple silicon. thanks so much and have a great day or night!

comfortablemilk4454 avatar Nov 19 '23 22:11 comfortablemilk4454

We do not yet have an Apple Silicon Arm64 binary since none of the contributors own Apple Silicon devices, however you should be able to run the Intel x64 binary with Rosetta. According to online sources, you can run the command arch -x86_64 zsh to start a new terminal session running under Rosetta, and from there you should be able to run TwitchDownloaderCLI via the session.

If you are having trouble with using CLI apps, please see if https://github.com/lay295/TwitchDownloader/issues/789#issuecomment-1689230243 helps.

Please let me know if you are able to run the Intel x64 binary with Rosetta and I will add this extra step to the README.

ScrubN avatar Nov 19 '23 23:11 ScrubN

heres a screen recoreding of the issue im running into.

comfortablemilk4454 avatar Nov 20 '23 00:11 comfortablemilk4454

Is your terminal open to the directory containing TwitchDownloaderCLI? The FFmpeg download command should have printed some things to the console.

Also in reference to the end of the video, since TwitchDownloaderCLI is not in your PATH environment variable, your command needs to invoke it with ./TwitchDownloaderCLI.

ScrubN avatar Nov 20 '23 01:11 ScrubN

im sorry idk what any of that means

comfortablemilk4454 avatar Nov 20 '23 01:11 comfortablemilk4454

wdym directory containing TwitchDownloaderCLI & TwitchDownloaderCLI is not in your PATH environment variable, your command needs to invoke it with ./TwitchDownloaderCLI?

comfortablemilk4454 avatar Nov 20 '23 01:11 comfortablemilk4454

wdym directory containing TwitchDownloaderCLI

When you open a terminal, it defaults to your user folder: /usr/<you>/, or ~ for short. Let's say TDCLI is in a directory in your downloads folder: /usr/<you>/Downloads/TwitchDownloaderCLI-1.53.4/TwitchDownloaderCLI (or ~/Downloads/TwitchDownloaderCLI-1.53.4/TwitchDownloaderCLI).

You must use the cd command to change the current directory that your terminal is in from your user directory to the directory in your Downloads: e.g. cd ~/Downloads/TwitchDownloaderCLI-1.53.4. From there, you should be able to invoke TDCLI with the relative-path commands provided in the README.

TwitchDownloaderCLI is not in your PATH environment variable, your command needs to invoke it with ./TwitchDownloaderCLI?

At the end of the video, you ran TwitchDownloaderCLI videodownload --id .... Since TwitchDownloaderCLI isn't part of the magic string that turns executable names into commands (called PATH), you need to write out the preceding ./: ./TwitchDownloaderCLI videodownload --id ....

ScrubN avatar Nov 20 '23 01:11 ScrubN

oh i see. it worked thank you!

comfortablemilk4454 avatar Nov 20 '23 01:11 comfortablemilk4454

Can you please confirm if chat rendering works too? You need to download a chat beforehand then pass that into the renderer. ./TwitchDownloaderCLI chatdownload --id 1980309083 --output chat.json ./TwitchDownloaderCLI chatrender --input chat.json --output chat.mp4

ScrubN avatar Nov 20 '23 01:11 ScrubN

Hmmm. My best guess is that it is a problem with running FFmpeg under Rosetta. We setup FFmpeg differently for the chat renderer, so if that works as expected then I have an idea that might fix the video downloader under Rosetta too.

ScrubN avatar Nov 20 '23 02:11 ScrubN

nevermind the vod actually has that res i didnt watch it beforehand

comfortablemilk4454 avatar Nov 20 '23 02:11 comfortablemilk4454

Does that mean the stretching is just a problem with the screenshot?

ScrubN avatar Nov 20 '23 02:11 ScrubN

no the actual vod has that res

comfortablemilk4454 avatar Nov 20 '23 02:11 comfortablemilk4454

i will confirm the chat thing tomorrow

comfortablemilk4454 avatar Nov 20 '23 02:11 comfortablemilk4454

I downloaded your VOD as well and the stretching is not present. The blockiness however is related to how the VOD was streamed. image

ScrubN avatar Nov 20 '23 02:11 ScrubN

weird when i go to the vod on twitch and click on the source quality option it shows this: Screenshot 2023-11-20 at 8 37 43 AM

comfortablemilk4454 avatar Nov 20 '23 13:11 comfortablemilk4454

Interesting, it might be a problem with MacOS then.

ScrubN avatar Nov 21 '23 01:11 ScrubN

@ScrubN I have a mac with silicon and it indeed is a macos problem that I was able to reproduce. I've found golang and rust work better on cross compilation but getting something like this to work for mac would take a considerable amount of effort.

SputNikPlop avatar Nov 22 '23 00:11 SputNikPlop

chat rendering works, sorry i forgot to do that days ago lol

comfortablemilk4454 avatar Nov 23 '23 11:11 comfortablemilk4454

Actually, instead of adding Rosetta instructions to the README, I could just add a binary for apple silicon. Would you be willing to test it out? https://github.com/lay295/TwitchDownloader/actions/runs/7026613707

You should not need to use the arch command before running this. My only concerns are that the colors in chat renders might be mixed up, and the FFmpeg binary downloaded through TwitchDownloaderCLI may not work?

ScrubN avatar Nov 24 '23 01:11 ScrubN

https://github.com/lay295/TwitchDownloader/assets/43555540/d4e10491-7712-43be-a6b7-65208335f998

comfortablemilk4454 avatar Nov 24 '23 11:11 comfortablemilk4454

Actually, instead of adding Rosetta instructions to the README, I could just add a binary for apple silicon. Would you be willing to test it out? https://github.com/ScrubN/TwitchDownloader/releases/tag/1.53.5

You should not need to use the arch command before running this. My only concerns are that the colors in chat renders might be mixed up, and the FFmpeg binary downloaded through TwitchDownloaderCLI may not work?

This is working better for at least downloading on my apple silicon machine, I haven't had time to full test.

SputNikPlop avatar Nov 25 '23 17:11 SputNikPlop

i cant get it set up as you can see in the video, howd you do it?

comfortablemilk4454 avatar Nov 25 '23 17:11 comfortablemilk4454

i cant get it set up as you can see in the video, howd you do it?

You forgot to navigate your terminal to the directory containing TwitchDownloaderCLI. cd Downloads/TwitchDownloaderCLI

ScrubN avatar Nov 26 '23 00:11 ScrubN

in what step do i put the cd part?

comfortablemilk4454 avatar Nov 26 '23 00:11 comfortablemilk4454

in what step do i put the cd part?

Right after you open a new terminal window do cd Downloads

SputNikPlop avatar Nov 26 '23 00:11 SputNikPlop

um image

comfortablemilk4454 avatar Nov 26 '23 00:11 comfortablemilk4454

image

comfortablemilk4454 avatar Nov 26 '23 00:11 comfortablemilk4454

nvm i just had to use /Users/mrbonk/twitchdlder as the pathname not /Users/mrbonk/twitchdlder/TwitchDownloaderCLI

comfortablemilk4454 avatar Nov 26 '23 00:11 comfortablemilk4454

ugh now this @SputNikPlop image

comfortablemilk4454 avatar Nov 26 '23 00:11 comfortablemilk4454

ugh now this @SputNikPlop image

I installed ffmpeg outside the command, unsure which binary is the best since it has been so long. Maybe someone else might know or I can follow up later.

SputNikPlop avatar Nov 26 '23 02:11 SputNikPlop