ytarchive icon indicating copy to clipboard operation
ytarchive copied to clipboard

Feature request: Android Compatibility for ytarchive Using Termux

Open arrafialam1 opened this issue 1 year ago • 3 comments

I would like to request the implementation of Android compatibility for ytarchive using Termux, similar to how yt-dlp supports Android. This would make ytarchive more versatile and accessible to users who prefer working on Android devices for live stream archiving and recording.

Benefits:

Accessibility: Enables Android users to efficiently use ytarchive without needing a desktop environment. Flexibility: Allows users to manage stream archiving tasks on the go. Usability: Expands ytarchive’s audience by catering to a broader demographic, including mobile-first users.

Example Documentation:

For reference, you can look into the yt-dlp’s Android support via Termux feature: (https://github.com/yt-dlp/yt-dlp/wiki/Installation).

Thank you for your incredible work on ytarchive! I've been using it every day since I discovered and have recommended it to my friends, who also appreciate its functionality. However, they requested this feature too, as some of them use Android only.

arrafialam1 avatar Jan 08 '25 19:01 arrafialam1

I could be mistaken, but I am 90% certain it is compatible. Just grab ffmpeg and Go from Termux and build it.

Kethsar avatar Jan 11 '25 09:01 Kethsar

Yeah, you can use it on Termux. The only weird thing (I'm guessing it's some Go weirdness) is that the executable behaves weird when called from outside of ~/go/bin , so you have to go there and do ./ytarchive foo bar baz.

formbi-kupiec avatar Feb 10 '25 15:02 formbi-kupiec

termux-setup-storage
pkg install golang
go install github.com/Kethsar/ytarchive@dev
pkg install ffmpeg
pkg update && pkg upgrade
~/go/bin/ytarchive --add-metadata -t --monitor-channel --live-from now "https://www.youtube.com/@RabbitholebdSports/live" best

This live stream downloading template is working on Termux, but I can't find the final file remuxed by FFmpeg or the downloaded TS files on my phone. I don't know what's going wrong.

arrafialam1 avatar Feb 11 '25 06:02 arrafialam1

termux-setup-storage
pkg install golang
go install github.com/Kethsar/ytarchive@dev
pkg install ffmpeg
pkg update && pkg upgrade
~/go/bin/ytarchive --add-metadata -t --monitor-channel --live-from now "https://www.youtube.com/@RabbitholebdSports/live" best

This live stream downloading template is working on Termux, but I can't find the final file remuxed by FFmpeg or the downloaded TS files on my phone. I don't know what's going wrong.

HI I dont know if it is still revelant but i write it here anyway so its here if anybody finds this issue and has the same problem. So you have to cd into a folder that you want to donwload into for example: "cd storage/shared/videos" and then start ytarchive with "~/go/bin/ytarchive..." it works for me like this. i hope i could help

ShroniXX avatar Jul 14 '25 21:07 ShroniXX

Thanks a ton for helping me out! Really appreciate it!

Here's an example of a working bash code for convenience:

First time setup: Install termux, then input the below lines:

termux-setup-storage cd /storage/emulated/0/Download pkg install golang go install github.com/Kethsar/ytarchive@dev pkg install ffmpeg pkg update && pkg upgrade

Sample Bash script for everytime use: ~/go/bin/ytarchive --add-metadata -t --monitor-channel --live-from 4h "https://www.youtube.com/@ALRATV/live" 720p

arrafialam1 avatar Jul 14 '25 22:07 arrafialam1