Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CLI Tool - Any way to get list of qualities? #942

Open
1 task done
alvin-xu-5745 opened this issue Jan 10, 2024 · 3 comments · May be fixed by #951
Open
1 task done

CLI Tool - Any way to get list of qualities? #942

alvin-xu-5745 opened this issue Jan 10, 2024 · 3 comments · May be fixed by #951
Labels
enhancement New feature or request

Comments

@alvin-xu-5745
Copy link

alvin-xu-5745 commented Jan 10, 2024

Checklist

Write stuff here

I am using the CLI tool to automate some VOD downloading in a script, however I need my VODs to all be the same quality so I need to know what possible qualities exist for a certain VOD.

In the GUI tool, after you input the VOD ID you get a dropdown box of the possible qualities to download for that VOD. Is there any equivalent way to do this using the CLI tool?

Related to this - is there any way for me to know if the quality I request doesn't exist? The documentation states that if it the specified quality isn't available it just defaults to the highest quality, but I would rather not have silent failure and instead know if it is unavailable so I can choose to just not download that VOD.

@ScrubN
Copy link
Collaborator

ScrubN commented Jan 11, 2024

Is there any equivalent way to do this using the CLI tool?

No, there does not currently exist a way to list the qualities of a given video/clip in the CLI, however I have thought about adding this feature many times.

My thought process is to take in the video link/id and print a table of the video's streams information. i.e.

$ ./TwitchDownloaderCLI streaminfo --id 123456789
[LOG] Fetching Video Info [1/1]
Name       Resolution FPS File Size Bitrate  Source
---------------------------------------------------
1080p60    1920x1080  60  18.35GB   8451kbps True
720p60     1280x720   60  7.48GB    3443kbps False
720p30     1280x720   30  5.27GB    2422kbps False
480p30     852x480    30  3.15GB    1452kbps False
360p30     640x360    30  1.54GB    707kbps  False
160p30     284x160    30  642.1MB   288kbps  False
Audio Only -          -   488.8MB   219kbps  False

I'm aware that tables aren't amazing for machine parsing though, so I could add an argument for switching the printed output to other formats, such as m3u8 or JSON.

$ ./TwitchDownloaderCLI streaminfo --id 123456789 --format m3u8
$ ./TwitchDownloaderCLI streaminfo --id 123456789 --format json

What do you think of this solution?

@alvin-xu-5745
Copy link
Author

Yes, I think this would be a great solution.

@ScrubN ScrubN added question Further information is requested enhancement New feature or request and removed question Further information is requested labels Jan 11, 2024
@ScrubN ScrubN linked a pull request Jan 20, 2024 that will close this issue
@superbonaci
Copy link
Contributor

It can be helpful. Can you print the list of qualities for any video even if it's subscriber-only VOD?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants