mirakc / mirakc

A Mirakurun-compatible PVR backend written in Rust
https://mirakc.github.io/dekiru-mirakc/
Apache License 2.0
210 stars 17 forks source link

Does this run on macOS? #203

Closed dvcrn closed 3 years ago

dvcrn commented 3 years ago

Really cool project!

I'm wondering if this is usable on macOS (mirakurun isn't). I'm looking for a way to repurpose my mac server for DVR without having to go through a VM / Raspberry Pi .

The article here mentions macOS as supported - https://qiita.com/masnagam/items/e71a234f2e66b1246a37 but I wasn't sure if that's still up to date.

If it does, do you know what tuners are compatible with this when using macOS host?

masnagam commented 3 years ago

You can run mirakc and mirakc-arib on macOS. In fact, I develops these programs on macOS and cargo test and cargo run work without any error.

However, I've never tested it on macOS with real tuners. Ordinarily I use the following tuner settings for test purposes on macOS:

tuners:
  - name: tuner1
    types: [GR,BS]
    command: >-
      curl -fsSL http://mirakc:40772/api/channels/{{{channel_type}}}/{{{channel}}}/stream

do you know what tuners are compatible with this when using macOS host?

Unfortunately, I don't know. We can find TV tuners for macOS by googling: https://www.google.com/search?q=macos+tv+tuner

If you can find a tuner program similar to recpt1, you may be able to build a DVR system using mirakc on macOS.

dvcrn commented 3 years ago

Thanks for the reply! Great to hear that there is a real option on Mac 😊

Yeah I was looking into this but none of the popular plex tuners in Japan work on mac and have no driver. I wonder if it's possible to to forward the USB device directly to the linux guest docker container and get it working through that without having a driver on the host?

For macOS native options I was only really able to find pixela devices (http://www.pixela.co.jp/products/tv_capture/pix_dt195/qa.html), but there is no documentation on using them outside of their own client, so I doubt those are usable with mirac.

masnagam commented 3 years ago

I wonder if it's possible to to forward the USB device directly to the linux guest docker container and get it working through that without having a driver on the host?

That's an interesting idea! I've never tried but it might work.

Someone tried to mount usb device files onto a Docker container on macOS, but the usb passthrough has not supported in xhyve, unfortunatelly: https://github.com/moby/hyperkit/issues/149

At least, VirtualBox supports USB passthrough on macOS: https://gist.github.com/stonehippo/e33750f185806924f1254349ea1a4e68

masnagam commented 3 years ago

PIXELA's devices seem to require a dedicated program (Xit) for watching TV shows.

github-actions[bot] commented 3 years ago

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days.

github-actions[bot] commented 3 years ago

This issue was closed because it has been stalled for 7 days with no activity.