INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: Rar archive support?  (Read 801 times)

Superserial

  • Recent member
  • *
  • Posts: 7
Rar archive support?
« on: November 21, 2023, 02:31:47 pm »

Hi.

Thinking about buying Media center to use together with MadVR to better handle HDR videos on a projector.

I have tested the evaluation software for a couple of days and one thing I really miss is the possibility to play video files directly from rar archives. Most other players support this but MC doesn't which is kind of a deal breaker.

Is there a setting I'm missing, a plugin to install, or is this simply not possible?
Logged

zybex

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 2441
Re: Rar archive support?
« Reply #1 on: November 21, 2023, 04:11:22 pm »

Why have video in RAR/Zip/7z archives? It's mostly incompressible. Multi-part splitting?
Logged

Superserial

  • Recent member
  • *
  • Posts: 7
Re: Rar archive support?
« Reply #2 on: November 22, 2023, 01:39:49 am »


It's not me that made that decision, I just have to live with the consequences :)

So, do you know of a way to solve this in JRiver MC or do I have to look at some alternative? Would be a shame, because other than this issue I really like it.
Logged

zybex

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 2441
Re: Rar archive support?
« Reply #3 on: November 22, 2023, 05:38:46 am »

You could extract them all and get rid of the RARs. If RAR is used just to provide a CRC, you can achieve the same with any MD5/SHA hashing tool out there. I even wrote one to do that.

Short of MC adding the feature (sit down while waiting), there's no other good solution. You can use some tool to mount the RAR archives as folders or drives, like these below, but that requires a lot of management overhead and is, to me, an awkward solution.
https://pismotec.com/pfm/
https://www.winarchiver.com/virtual-drive.htm
Logged

Hendrik

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 10787
Re: Rar archive support?
« Reply #4 on: November 22, 2023, 06:09:51 am »

We do not support reading videos from archives, and its not a planned feature either at this time.
Logged
~ nevcairiel
~ Author of LAV Filters

JimH

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 71665
  • Where did I put my teeth?
Re: Rar archive support?
« Reply #5 on: November 22, 2023, 07:09:44 am »

When I searched for RAR video, I found that XBMC (now Kodi) used it, maybe still does. 

The equivalent method now would be using MKV files, which JRiver does support.

As zybex said above, there is no advantage to using RAR or ZIP since the files are already compressed.
Logged

Awesome Donkey

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 7467
  • When Summer comes...
Re: Rar archive support?
« Reply #6 on: November 22, 2023, 08:14:38 am »

Yeah, seems like a big waste to me too. Whomever made that decision to use RAR archived videos should probably highly reconsider, in my opinion. Though I'd be interested in knowing the rational behind that decision, because I can't think of a single potential benefit, just disadvantages.
Logged
I don't work for JRiver... I help keep the forums safe from Viagra and other sources of sketchy pharmaceuticals.

Windows 11 2024 Update (24H2) 64-bit + Ubuntu 24.04 LTS Noble Numbat 64-bit | Windows 11 2024 Update (24H2) 64-bit (Intel N305 Fanless NUC 16GB RAM/500GB M.2 NVMe SSD)
JRiver Media Center 32 (Windows + Linux) | iFi ZEN DAC 3 | JBL 306P MkII Studio Monitors | Audio-Technica ATH-M50x Headphones

Hendrik

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 10787
Re: Rar archive support?
« Reply #7 on: November 22, 2023, 08:49:48 am »

The origin of those is videos obtained from the high seas, where they get stored in multi-part RAR archives for easier downloading. And then for some reason people not wanting to unpack them. Just do that, I guess.
Logged
~ nevcairiel
~ Author of LAV Filters

JimH

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 71665
  • Where did I put my teeth?
Re: Rar archive support?
« Reply #8 on: November 22, 2023, 10:31:51 am »

Removed discussion. 
Logged

BryanC

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 2576
Re: Rar archive support?
« Reply #9 on: November 22, 2023, 11:00:18 am »

Logged

Superserial

  • Recent member
  • *
  • Posts: 7
Re: Rar archive support?
« Reply #10 on: November 22, 2023, 04:01:31 pm »


Ok all, thanks for the help. I guess I have to look at the alternatives then.

Just out of curiosity, would it be possible for me to solve this by writing a plugin? Or is file source format out of "JRiver MC plugin scope"?
Logged

JimH

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 71665
  • Where did I put my teeth?
Re: Rar archive support?
« Reply #11 on: November 22, 2023, 04:19:49 pm »

You can tell MC to use an external program for any file type.

There is a Developer link at the bottom of the page.  And here:

https://wiki.jriver.com/index.php/DevZone

MCWS is where you could start.

From that page ...
To view the documentation in WSDL format, use:
http://[library server address]/MCWS/v1/WSDL

If you're on the same computer as the server, you can use:
http://localhost:52199/MCWS/v1/doc (where 52199 is the port that Library Server is running on)
Logged

Superserial

  • Recent member
  • *
  • Posts: 7
Re: Rar archive support?
« Reply #12 on: November 22, 2023, 05:08:04 pm »

Thanks, I noticed that there seemed to be (quite good) support for third party devs to make plugins. But a quick glance didn't answer if it was possible to add support for new filetypes.

Using an external player is something I would like to avoid. It's mostly ease of the "bundle" of player with madvr support that brought me to JRiver MC. If I have to use an external player I would, in all honesty, go with Kodi/MPC-HC (and save a few bucks in the process).

I'll have a look at the developer docs and see if I can find my answer.
Logged

Awesome Donkey

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 7467
  • When Summer comes...
Re: Rar archive support?
« Reply #13 on: November 22, 2023, 05:29:35 pm »

You'd have to end up decompressing the RAR archives regardless in order to playback the videos every time you watch it, so it's a roundabout (and waste of resources) way of doing it. This means to watch the video you'd have to decompress and extract the videos (to the temporary files/cache directory in the OS) then watch that. You can't directly use/watch/listen to the file(s) inside the archive without decompressing it from the RAR archive first. Taking the time to unpack all the videos from the RAR archives once and using only the extracted video files is the path of least resistance and it'll avoid issues like this (and maybe keep power consumption lower). In my opinion, of course.
Logged
I don't work for JRiver... I help keep the forums safe from Viagra and other sources of sketchy pharmaceuticals.

Windows 11 2024 Update (24H2) 64-bit + Ubuntu 24.04 LTS Noble Numbat 64-bit | Windows 11 2024 Update (24H2) 64-bit (Intel N305 Fanless NUC 16GB RAM/500GB M.2 NVMe SSD)
JRiver Media Center 32 (Windows + Linux) | iFi ZEN DAC 3 | JBL 306P MkII Studio Monitors | Audio-Technica ATH-M50x Headphones

Hendrik

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 10787
Re: Rar archive support?
« Reply #14 on: November 22, 2023, 05:30:44 pm »

A different source for videos is not something a plugin can do.
Logged
~ nevcairiel
~ Author of LAV Filters

JimH

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 71665
  • Where did I put my teeth?
Re: Rar archive support?
« Reply #15 on: November 22, 2023, 08:40:42 pm »

I think the external program could probably decompress and hand back to MC for playback.
Logged

EnglishTiger

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 987
Re: Rar archive support?
« Reply #16 on: November 23, 2023, 01:06:22 am »

Win11 users don't need any additional programs, or plugins, the right-click "Extract All..." option/feature now has the ability to handle rar files.
Logged
Win NUC - VENOEN 11Th NUC Mini PC Core i7 1165G7,Dual HDMI 2.0+Mini DP,Windows 11 Mini Desktop Computer,Thunderbolt 4.0,1 Lan, USB-C,Wifi,Bluetooth 5.0,32GB RAM Toshiba MQ04ABF100 ‎500Gb 5400 RPM ‎eSATA HD, Gigabyte GP-GSM2NE3512GNTD 1Tb NVMe SSD, Samsung 870 QVO 8 TB SATA 2.5 Inch SSD (MZ-77Q8T0) in Sabrent Ultra Slim USB 3.0 to 2.5-Inch SATA External Aluminium Hard Drive Enclosure (EC-UK30)

Apple 2020 Mac mini M1 Chip (8GB RAM, 512GB SSD)
Sabrent Thunderbolt 3 to Dual NVMe M.2 SSD Tool-Free Enclosure with Sabrent 2TB Rocket NVMe PCIe M.2 2280 High Performance SSD + Crucial P3 Plus 4TB M.2 PCIe

ET Skins & TrackInfo Plugins - https://englishtiger.uk/index.html

Superserial

  • Recent member
  • *
  • Posts: 7
Re: Rar archive support?
« Reply #17 on: November 23, 2023, 02:03:47 am »


No offence, but can everyone please stop telling me how to decompress rar files? That is not the question Iäm asking and if it where, then it would have been done by now and this thread would not exist :)

The files are on a shared disk that I have no control over so the alternative would be to download and unpack all files on a local disk which I would like to avoid.

A different source for videos is not something a plugin can do.

Ok, no need to actually read the development docs then?

I think the external program could probably decompress and hand back to MC for playback.

Interesting. In real time or as some sort of "pre play" hook? The latter is probably not an option as it would be pretty much the same as manually unpacking the videos beforhand.

Any hints on where where in the docs to look for instructions on external programs?
Logged

Superserial

  • Recent member
  • *
  • Posts: 7
Re: Rar archive support?
« Reply #18 on: November 23, 2023, 02:14:59 am »

You'd have to end up decompressing the RAR archives regardless in order to playback the videos every time you watch it, so it's a roundabout (and waste of resources) way of doing it. This means to watch the video you'd have to decompress and extract the videos (to the temporary files/cache directory in the OS) then watch that. You can't directly use/watch/listen to the file(s) inside the archive without decompressing it from the RAR archive first. Taking the time to unpack all the videos from the RAR archives once and using only the extracted video files is the path of least resistance and it'll avoid issues like this (and maybe keep power consumption lower). In my opinion, of course.

Many players support streaming the content of rar files in real time. No need to unpack them to temporary files first. A raspberry pi 3 can manage without issue while still playing the actual video/audio contents inside.

Kodi has excellent support and even shows the contents of the archives while browsing the files.
Logged

zybex

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 2441
Re: Rar archive support?
« Reply #19 on: November 23, 2023, 02:49:22 am »

Interesting. In real time or as some sort of "pre play" hook? The latter is probably not an option as it would be pretty much the same as manually unpacking the videos beforhand.
As a pre-play hook. I suggest you look at the 2 links I gave above - you could use this to mount the RAR into a drive letter, start playing from there, then unmount (or leave it mounted and just replace the drive mount on the next play). The other link actually does what you want with ZIP files (mounting as a folder instead of a drive) - you would need to use their SDK to add RAR support.

Quote
Any hints on where where in the docs to look for instructions on external programs?
In Tools->Options->File Types you can select "external app" as the playback action for a given type. However, RAR is not there; I think you can add new types by editing some file in MC folder, but I've never done that.

Quote
Many players support streaming the content of rar files in real time. No need to unpack them to temporary files first.
If it's a solid RAR archive this may not work for some video containers that have an index at the end.
Logged

Superserial

  • Recent member
  • *
  • Posts: 7
Re: Rar archive support?
« Reply #20 on: November 23, 2023, 03:05:49 am »

Thanks a million, you've been a great help.

I will have a look into this. Being able to do a pre play hook might solve the issue, even if it's not the cleanest solution :)
Logged
Pages: [1]   Go Up