Play audio only on YouTube and save bandwidth
chrome.google.com
chrome.google.com
P.S. also if anyone knows how to statically compile ffmpeg or libvlc into go I'd love to know :)
I hadn't seen systray before. That's cool, too.
On my phone, on mobile data at least, it takes ~5 seconds to display the video again.
You and your API Clients must not, and must not encourage, enable, or require others to: ... separate, isolate, or modify the audio or video components of any YouTube audiovisual content made available as part of, or in connection with, YouTube API Services. For example, you must not apply alternate audio tracks to videos;
we are talking about files on a public webserver, it's absolutely fair game to download and modify/recombine the bit's in those files however i please.
API ... API ... API.
this is the way!
(Video at 144p can take as little as 2 kilobytes/second to download (for more static content); typical 720p can easily take 100 kilobytes/second. You can see those values using "-F / --list-formats" on the downloader command.)
But surely there is also the ability to stream good ("-f 140", ~128kbit/s m4a) audio piping from downloaders.
youtube-dl -x --audio-format mp3 https://youtu.be/dQw4w9WgXcQFound one: https://www.youtube.com/watch?v=AavrI7RLU0g
Of course now it only has 96kbps aac, but it did have untouched mp3 audio back then.
And another update, I downloaded it back in 2013, where it still had 160kbps mp3 audio!
Note after formatting: As you can see from the video FPS, the trick was to keep the video bitrate as low as possible, by using a still image (or pad it with black + silence at the end). I'm not sure anymore if you had to also already use the same video codec as youtube did back then, i.e., if the video stayed untouched too. I never managed to upload a video like this, so I don't exactly know.
MediaInfo output:
General
Complete name : Luke Warner and Mat Lock - Deep Psychosis (Daniel Kandi's Cure mix) (HQ).flv
Format : Flash Video
File size : 12.7 MiB
Duration : 7 min 34 s
Overall bit rate mode : Variable
Overall bit rate : 234 kb/s
httphostheader : r13---sn-4g57knek.c.youtube.com
Video
Format : Sorenson Spark
Codec ID : 2
Duration : 7 min 34 s
Bit rate : 69.5 kb/s
Width : 480 pixels
Height : 360 pixels
Display aspect ratio : 4:3
Frame rate mode : Constant
Frame rate : 1.044 FPS
Bit depth : 8 bits
Bits/(Pixel\*Frame) : 0.385
Stream size : 3.76 MiB (30%)
Audio
Format : MPEG Audio
Format version : Version 1
Format profile : Layer 3
Format settings : Joint stereo / MS Stereo
Codec ID : 2
Codec ID/Hint : MP3
Duration : 7 min 34 s
Bit rate mode : Variable
Bit rate : 160 kb/s
Channel(s) : 2 channels
Sampling rate : 44.1 kHz
Compression mode : Lossy
Delay relative to video : -131 ms
Stream size : 8.68 MiB (68%)
Writing library : LAME3.97251 webm audio only │ 139.66MiB 134k https │ opus 134k 48000Hz medium, webm_dash
and then use ffmpeg to reencode opus to mp3
FYI for those using Android, NewPipe also supports this.
Thank you for reaching out to us. We apologize for the inconvenience caused in this matter. Upon a subsequent review, we found that your item with ID : “abbpaepbpakcpipajigmlpnhlnbennna” to be compliant with our “Single Use” policy. Unfortunately, we cannot approve a submission that has been rejected. Hence, we request you to re-submit your extension on the developer dashboard.
Thanks,
Chrome Web Store Developer Support."
This is probably a dumb question but why isn't this a Show HN?
It kind of should be, right?
> Show HN is for something you've made that other people can play with [...]
There have been plenty of Chrome extensions that are Show HNs: https://hn.algolia.com/?q=Chrome.google.com+Show+Hn
https://addons.mozilla.org/en-US/firefox/addon/youtube-audio...
The video just gets replaced by the plugins text.
I am not sure if this would even save much battery if running in a tab.