Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

the 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.


> 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


Show me a screen recording of this working. Run yt-dlp and get an mp4 and open in quicktime. I get error every time single.


You 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.


can 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.


Here’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.


yt-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.


I detest QuickTime more than any other piece of software


yeah 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.


Seems likely the reason is they want to easily load videos into mobile Apple devices like an iPhone or iPad. While alternative video players exist for those platforms, management may not be as convenient.


you can pass in --format mkv

the default is mov


Why 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?


wow i went down an AI rabbit whole learning the answer to this: https://chatgpt.com/share/688e818d-67ac-8010-913d-618f3534f1...


First 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.


Well try and use yt-dlp to get an mp4 from YouTube that will open in quicktime. Can’t be done.


Haven't refuted that. I expect this to be due to an incompatible codec though, is it?





Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: