Live data from Hacker News

Plugin System

iina.io

21–30 of 36 posts

Re: Plugin System

#22
post #7
post #2

> IINA - The modern media player for macOS.

Happy* IINA user here. I use youtube keybindings + 'video speed controller' (chrome extension) keybindings for quick speed up/down/reset and skipping back/forward through videos). * It did have a problem with crazy power consumption, but I think that's been fixed (haven't noticed the problem for a few months).

Did you have problem with hw acceleration? I noticed that 4k videos can be a little choppy if hw decoding is on, with sw decoding they are fine but battery life is horrible then.

Re: Plugin System

#23
post #12
post #11

Earlier quoted context omitted.

It's a player of the ffmpeg lineage; a GUI frontend for mpv. If you use mpv or some frontend (e.g., SMPlayer, Celluloid, or Haruna) on other platforms, IINA is a natural choice on macOS. It's free software, it's keyboard friendly, it supports more of less every format, and it blends into the OS's native desktop environment. I don't have an eye for design, but it seems good to me. If there's a better choice for local…

>It seems the only other real contender on the backend is VLC Does VLC already support HDR content on MacOS? I switched to IINA because of that omission.

I don't know. I have a medical light sensitivity problem that makes most HDR content physically painful for me unless I manipulate picture settings to reduce peak brightness, backlight, and/or contrast in various ways. Between my light sensitivity and my progressive colorblindness, I don't get as much out of HDR as most people do, so I just turn it off where possible.

Maybe some day when I have more external displays with OLED or something else that can do millions-to-one contrast ratios, I'll play around with HDR and see if I can find a way to reliably make it comfortable, but for now I don't own any-- it's just the built-in displays of my mobile devices, and I spend as much time as possible on much larger screens because I also have visual acuity problems.

Re: Plugin System

#24
post #16
post #4

A new MacOS player it seems? I just recently switched to Infuse 8 after buying a couple Apple TV boxes. The network sharing + iCloud timestamp syncing between my phone/macbook/multiple TVs is the best thing ever. My macbook is basically a media server for every device in my house. No need for annoying plex servers.

Another vote for Infuse. In my experience Infuse 8 handles HDR and color management correctly (1:1 with Safari or QuickTime), while IINA does not (too dark).

Infuse is good, but it does not feel so well-polished for the desktop, for example, some windows for pop-up could have been a real window, but were a pop-up that blocks the main player.

Re: Plugin System

#25
"The StandaloneWindow module provides a way to create a separate window to display custom content. You are able to control a full-sized webview inside the window, therefore you can use HTML, CSS, and advanced techniques like WebGL to render the contents." [1]

So... someone could make a Webamp[2] plugin?

And Butterchurn[3] for viz? (Assuming one can plumb in a compatible audio node)

[1] https://docs.iina.io/interfaces/IINA.API.StandaloneWindow

[2] https://docs.webamp.org/docs/intro

[3] https://github.com/jberg/butterchurn

Re: Plugin System

#26
The plugin architecture here reminds me of what happened with VS Code - once you give users a proper JavaScript API and decent documentation, the community starts solving problems you never even knew existed. But there's something particularly clever about IINA's approach: they're essentially turning every media file into a potential canvas for interactive experiences.

Re: Plugin System

#27
Any general tips on the construction of a great plugin system? I imagine most sort of follow the same principles

Re: Plugin System

#28
post #27

Any general tips on the construction of a great plugin system? I imagine most sort of follow the same principles

A lesson learned over and over again is that you can build amazing things with tightly coupled plugins, but once you have about three of them upgrading or changing anything gets kind of impossible - Hyrum's law. On the other hand, loosely coupled out-of-process plugins are a lot less flexible, but tend to work a lot better and more reliably, at the cost of more up-front engineering and overall investment. Assuming that what they can do is sufficient to work.

Consider that e.g. kubernetes has basically just one actual core component (the API server) and everything else is loosely-coupled plugins. Alternatively, consider any of the projects stuck for 15 years on Python 2 because that's what their plugin system was in 2009. These are two points on a spectrum.

Re: Plugin System

#29
I'd love to have a system where I could run a script from the command line to randomly choose an episode from my collection and airplay it to my tv.

Are those API's available here? anyone know?

Cool!

edit: Without full mirror mode. I use Airflow for this right now and I love it, but would be more fun with automation.

Re: Plugin System

#30

Earlier quoted context omitted.

hmm I'm confused, whats the sell with inaa compared to vlc?

Honestly I've been having more problems with vlc than with mpv, on Linux and macOS.

I love VLC but I have two problems with it:

1. Bluetooth audio does not play correctly the first second, often.

2. When pressing a random key accidentally, it is sometimes difficult to recover from the settings-change that it caused, and often a restart of the entire program is necessary.

Post reply on HN