This tutorial will show you how to play rar'ed movies without the need to extract them. There is no delay, seeking works and you can use any media player you like. This is the holy grail of playing scene releases... I've been searching for a long time and I finally have a decent solution :)
This tutorial requires
linux. It is aimed at playing movies in mythTV, but you can follow the first half if you just want to play rar'ed movies on your desktop.
We're going to install rarfs, which allows you to mount rar files. First we need to install some dependencies. The following command assumes a debian based distro...
sudo apt-get install subversion automake1.9 fuse-utils libfuse-dev
Now download rarfs:
(If the link doesn't work, download the latest release from
Browse rarfs Files on SourceForge.net. The latest SVN version is broken, so don't try it!)
Extract, compile and install:
tar xvf rarfs-0.0.8.tar.gz
cd rarfs-0.0.8
./configure
make
sudo make install
Now we need to allow your user to run fusermount without being root.
sudo adduser mrbarby fuse
sudo chgrp fuse /dev/fuse
sudo chgrp fuse /bin/fusermount
sudo chmod u+s /bin/fusermount
All done! You can now mount a rar file with the following command:
mount.fuse rarfs#/data/download/movie.rar /my/mount/dir
This script will automatically mount, play and unmount once you've finished (you'll need to create the directory 'rarmount' in your home dir):
#!/bin/sh
DIR=/home/`whoami`/rarmount/
mount.fuse rarfs#$1 $DIR
mplayer -fs -zoom -quiet $DIR`ls $DIR | grep .avi`
fusermount -u $DIR
Save the script as rarplay.sh, then "chmod u+x rarplay.sh" and the command "./rarplay.sh /data/download/movie.rar" will mount the file and play it in mplayer. If you'd rather use a different player, just modify the script.
Finally we need to get mythTV playing rars:
1. Open up the frontend, go into "options, settings, video settings, file types" (off the top of my head, so probably not 100% accurate... if you can't find the correct menu then reply and I'll find it).
2. Add a new file type.
3. Set the filetype to rar, untick "use default player" and in the command box, enter "/home/mrbarby/rarplay.sh %s", or point it to where you saved your copy of the script.
Restart the front end and mythvideo will now play rar files!
Source: ScT