No need to mourn. Now we become part-time stream archivists.
Cee-Lo Green - Fuck You (Riding in Car)
(this will add, with metadata)
An automated solution is coming (hence the new subdomain) but I am no longer on holidays, so goontube asks are back on weekend time.
I highly advise grabbing a copy of youtube-dl and archiving your own favourites, just in case.
youtube-dl https://www.youtube.com/watch?v=GL_zobKhR_0 --format "bestvideo[ext=mp4]+bestaudio[ext=m4a]"
This will drop an mp4 file in the current working directory.
ffmpeg -i input_filename.mp4 -movflags +faststart -c:v copy -c:a copy -metadata title="Cee-Lo Green - Fuck You (Riding in Car)" output_filename.mp4
And this step uses ffmpeg to ensure it will be playable in goontube (the
+faststart flag moves metadata to an MPEG atom at the front of the file, which my mp4-fetching service relies on to extract duration) and that the metadata (the title) will show up correctly in the playlist.
If you can upload and serve this processed file from a publicly accessible HTTPS (!) URL which isn’t saturated by our fairly limited number of concurrent users, then you’re good to add
https://your.server.ru/output_filename.mp4 to the tubes.
I’m not helping with this last part, lest I accidentally become a server in an increasingly hostile streaming environment.
When complete, you will be able to ask SpergBot to do all of this for you in the chat with
$rehost [url]. I have a working proof-of-concept, I am just sorting out per-user limits and rate-limiting issues.
If this is at all daunting or inaccessible then in the mean time, go with GDF’s suggestion and use vimeo.
The following command can take any MKV, MP4, AVI, file of arbitrary format, and create a web-friendly MP4 file with +faststart enabled.
ffmpeg -i inputfilenamehere.mp4 -movflags +faststart -c:v libx264 -pix_fmt yuv420p -c:a aac -metadata title="Title String" output.mp4
If I want to bake subtitles into the public domain legal educational material I am sharing on goontube, then: if I have subtitles in a separate file, like subtitle.srt, I can:
ffmpeg -i input.mkv -movflags +faststart -c:v libx264 -pix_fmt yuv420p -vf subtitles=subtitle.srt -c:a aac -metadata title="Title String" output.mp4
And if the subtitles happen to be in the same video container, reuse the filename of the input for the subtitles argument:
ffmpeg -i input.mkv -movflags +faststart -c:v libx264 -pix_fmt yuv420p -vf subtitles=input.mkv -c:a aac -metadata title="Title String" output.mp4
If the desired subtitle track is different from the default in the container, specify the subtitle index/
si suboption like this:
ffmpeg -i input.mkv -movflags +faststart -c:v libx264 -pix_fmt yuv420p -vf subtitles=input.mkv:si=1 -c:a aac -metadata title="Title String" output.mp4
where “1” is the desired subtitle index.