5 ms·
> Videos are saved to the ./data/ directory and converted to MOV format using ffmpeg with hardware acceleration Transcoded (ouch) or just remuxed to a mov cont
by mikae1 1y ago
> Videos are saved to the ./data/ directory and converted to MOV format using ffmpeg with hardware acceleration
Transcoded (ouch) or just remuxed to a mov container? Have to investigate.
- atahanacar 1y agoRelevant lines: https://github.com/andrewarrow/starchive/blob/136030c6ef11a5c92f53739700310ac8cb215e09/youtube.go#L27 https://github.com/andrewarrow/starchive/blob/136030c6ef11a5...
- fcpguru 1y agothe video has to be re-encoded because apple quicktime doesn't like the youtube video format. But the audio can just be copied. My mac's fan never spins with the hardware acceleration so it runs in the background and I just forget about it.
- ahoef 1y agoI detest QuickTime more than any other piece of software
- 1718627440 1y agoWhy does Apple take the effort to maintain and ship different encoding libraries? I would've expected to both the Safari engine and Quicktime to simply depend on libappleavsmth.dylib?
- fcpguru 1y agowow i went down an AI rabbit whole learning the answer to this: https://chatgpt.com/share/688e818d-67ac-8010-913d-618f3534f1a0 https://chatgpt.com/share/688e818d-67ac-8010-913d-618f3534f1...
- 1718627440 1y agoFirst of all how do you know it's true? That being said, that makes zero sense. Just linking to a library, doesn't precluded using a protocol over a socket to talk to a graphic/audio server. Access control like remote code isolation (webAPIs), CORS and DRM also don't change anything about decoding and mixing video streams.
- fcpguru 1y agoWell try and use yt-dlp to get an mp4 from YouTube that will open in quicktime. Can’t be done.
- 1718627440 1y agoHaven't refuted that. I expect this to be due to an incompatible codec though, is it?
- fcpguru 1y agoUpdate: https://news.ycombinator.com/item?id=44850435 https://news.ycombinator.com/item?id=44850435
- Teever 1y agoyeah but this presupposes that the optimal usage pattern here is to use quicktime instead of VLC or something like Jellyfin. Which seems a little short sighted to me. VLC or Jellyfin are obviously superior because they're accessible across multiple platforms.
- latexr 1y ago> the video has to be re-encoded because apple quicktime doesn't like the youtube video format. That’s not true at all. QuickTime is far from the best video player, but it’s also not entirely worthless. It can play “modern” popular formats like H264 MP4, which is exactly what YouTube recommends. https://support.google.com/youtube/answer/1722171?hl=en https://support.google.com/youtube/answer/1722171?hl=en
- fcpguru 1y agoShow me a screen recording of this working. Run yt-dlp and get an mp4 and open in quicktime. I get error every time single.
- onlypassingthru 1y agoYou can use the -F flag to list all of the available formats, then --merge-output-format mp4 of audio and video formats that will work best for Quicktime at the desired resolution.
- fcpguru 1y agocan you show me proof of this working? Unless you are re-encoding the mp4 there's no way quicktime will be able to open a youtube mp4.
- latexr 1y agoHere’s your proof: yt-dlp --format 18 'https://www.youtube.com/watch?v=cWxh9lGOeqQ' --output 'FuckingGenius.mp4' && open -a 'QuickTime Player' 'FuckingGenius.mp4' No reencoding, just getting a video straight from YouTube and playing it in QuickTime Player.
- fcpguru 1y agoyt-dlp -f "bv*[vcodec^=avc1][ext=mp4]+ba[acodec^=mp4a][ext=m4a]/best[ext=mp4][vcodec^=avc1]" \ --merge-output-format mp4 \ -o "%(title)s.mp4" \ "YOUTUBE_URL_HERE" Thanks. I played around with your idea and got this. It’s still not 100% of videos. Only YouTube videos that have any H.264+AAC stream available (which is 99.9% of public YouTube today, even if the main/default version is VP9 or AV1). But re encoding to solve this is not required. I stand corrected.
- pixelpoet 1y agoYeah I was onboard until the re-encoding part: yt-dlp maintains the exact bits, why on earth would someone want to waste encoding time just to trash the quality? On top of that... seriously, of all the formats one could choose, MOV?! Might as well choose DivX or RealVideo.
- fcpguru 1y agoit's because on a mac I want to be able to open them in quicktime and final cut pro. The mp4 format youtube uses isn't something quicktime can open. But I gave you a cli param of --format Default is mov but you can pass in mkv
- briangriffinfan 1y agoI downscale all of the videos I download to 480p to save space. I also convert my FLACs to MP3. Suck it!
- pixelpoet 1y ago> Suck it! How old are you?