You'll need the packages "unrar" and "vlc" (or "mplayer" or any other video player you may prefer).
Write this in a terminal if you haven't got the required packages:
Code:
sudo apt-get install unrar vlcCode:
unrar p -inul /example/path/to/Some.Scene.Release/some.sr.r00 | vlc -unrar = starts unrar
p = outputs the extraction data of the file
-inul = disables error messages
/example/path/to/Some.Scene.Release/some.sr.r00 = path to one of the scene release's rar files
| vlc - = pipes the output of the extraction into vlc that starts to play the output, and therefore plays the video file that is within the rar files. Don't forget the ending "-", or it won't work. You can use another video player if you want, just replace "vlc" with what you want. I have only tested this with vlc and mplayer.
One bad thing with this trick is that you can only pause and play the file, but not rewind or fast forward.
I only write "rarvideo somerarfile.r00". How to do that:
Open ~/.bashrc in a text edior, using for example this command:
Code:
gedit ~/.bashrcCode:
PATH=$PATH:$HOME/bin(This makes your Bash looking in the ~/bin folder for executeable files.)
Make a folder in your home folder called "bin":
Code:
mkdir ~/binCode:
gedit ~/bin/rarvideoCode:
#! /bin/sh
unrar p -inul $1 | vlc -Make the file executeable with this command:
Code:
chmod u+x ~/bin/rarvideoCode:
bashyou can also right click a rar file in nautilus and choose "open with" and type in rarvideo
This is very interesting, thanks for this info. Although writing a rarvideo bin file is quite handy, perhaps you could add a nautilus action instead so that you could right click on a rar file and open directly with vlc or mplayer?
ReplyDeleteThe title of this article is at least misleading, because there is an unpacking of rar archive in there. Further on, it is better to unpack the archive first and then watch the video, rather then find out somewhere near the end, that the archive was actually corrupted.
ReplyDeleteBam!
ReplyDeletehttp://ds6.ovh.org/drp.html
Dziobias RAR player, based on mplayer. This plays files from rar files just beautiful. Win32 only though I think. But if it's possible on win32, it sure as hell has to be possible on linux.