Hi all,
tl;dr Get it here. https://github.com/llamallama/ibookg4linux/blob/main/bin/gimmevideo. Run this on Linux with xclip installed and set the GIMME_VIDEO_HOST environment variable to the location of your remote SSH server.
I wrote a script that does the work of downloading videos from multiple sources and transcodes them on a remote server before sending the video data back via SSH to be played locally on my iBook G4. The process is very quick and happens in real time.
Why would I do this? Let's use TikTok as an example. There is only one video quality available from TikTok and this laptop is too anemic to play it at full speed. It's also far too slow to transcode it on the fly via ffmpeg as well. So I figured why not let another machine do the work of downloading and converting the video while the iBook is only responsible for playing it.
The end result is this script. Please note that it assumes it will be running on Linux with the xclip command installed, but could be easily modified to work on OS X. To use it, set the environment variable "GIMME_VIDEO_HOST" to the location of your remote server. Then install xclip and copy a video URL to your clipboard. After that it can be ran. I suggest binding the script to a hot key.
If it's a Youtube video, it uses youtube-dl locally and sends it to mplayer. For any other video source, it SSHes into the remote host, pipes youtube-dl to ffmpeg, and then pipes the output of that to mplayer on your local machine.
The whole process is now as easy as copying a video link and pressing the bound hotkey. So far I have tested with Youtube, TikTok, Twitter, and Instragram but it should work for almost any source that youtube-dl supports. I now have access to far more video sources than I normally would with existing tools like PPC Media Center.
tl;dr Get it here. https://github.com/llamallama/ibookg4linux/blob/main/bin/gimmevideo. Run this on Linux with xclip installed and set the GIMME_VIDEO_HOST environment variable to the location of your remote SSH server.
I wrote a script that does the work of downloading videos from multiple sources and transcodes them on a remote server before sending the video data back via SSH to be played locally on my iBook G4. The process is very quick and happens in real time.
Why would I do this? Let's use TikTok as an example. There is only one video quality available from TikTok and this laptop is too anemic to play it at full speed. It's also far too slow to transcode it on the fly via ffmpeg as well. So I figured why not let another machine do the work of downloading and converting the video while the iBook is only responsible for playing it.
The end result is this script. Please note that it assumes it will be running on Linux with the xclip command installed, but could be easily modified to work on OS X. To use it, set the environment variable "GIMME_VIDEO_HOST" to the location of your remote server. Then install xclip and copy a video URL to your clipboard. After that it can be ran. I suggest binding the script to a hot key.
If it's a Youtube video, it uses youtube-dl locally and sends it to mplayer. For any other video source, it SSHes into the remote host, pipes youtube-dl to ffmpeg, and then pipes the output of that to mplayer on your local machine.
The whole process is now as easy as copying a video link and pressing the bound hotkey. So far I have tested with Youtube, TikTok, Twitter, and Instragram but it should work for almost any source that youtube-dl supports. I now have access to far more video sources than I normally would with existing tools like PPC Media Center.