Sări la conţinut

Play video inside .rar files in Ubuntu (without extracting the archives)

16 noiembrie, 2008

There are two methods one can use to play video inside .rar files in Ubuntu (without extracting the archives).

First method:

Install vlc and unrar:

Code:
sudo apt-get install unrar vlc

The command to use:

Code:
unrar p -inul /example/path/to/Some.Scene.Release/some.sr.r00 | vlc -

But that command is too long, so here’s how you can make it shorter:

Open ~/.bashrc in a text edior, using for example this command:

Code:
gedit ~/.bashrc

Paste this somewhere in the file, I did it in the top of the file:

Code:
PATH=$PATH:$HOME/bin

Close and save the file.
(This makes your Bash looking in the ~/bin folder for executeable files.)

Make a folder in your home folder called “bin”:

Code:
mkdir ~/bin

Make and open in a text editor a file called “rarvideo” in ~/bin:

Code:
gedit ~/bin/rarvideo

and paste this into it:

Code:
#! /bin/sh
unrar p -inul $1 | vlc -

Close and save the file.

Make the file executeable with this command:

Code:
chmod u+x ~/bin/rarvideo

You probably have to restart Bash, so in the terminal, type:

Code:
bash

Now you can just open a terminal in the folder where the .rar files are, and type this:

Code:
rarvideo myrarfile.r00

(Of course, rename “myrarfile.r00″ to the name of the .rar file you want to play).

I found this tutorial here and tried it myself and it works (i tested it on Ubuntu Intrepid)

Method 2:

This method uses Wine and RAR Movie player.

First, install wine:

Code:
sudo apt-get install wine

Then, download RAR Video Player from here, extract it and open it with Wine.

That’s it

4 comentarii
  1. 17 noiembrie, 2008 11:12

    I’m afraid I fail to see how this method can be described as ‘without extracting’.
    You extract on the fly, in memory, and not to disk, yes. But you still extract.

  2. 17 noiembrie, 2008 11:15

    without waiting to extract. anyway, how would you name it?

  3. 15 noiembrie, 2009 2:47

    dude don’t critize someone for trying to help, it’s hard enough to get a straight answer as it is, without some know it all , critizing everyone

  4. Henrik permalink
    8 august, 2010 14:21

    You can also use fuse + rarfs. See http://ubuntu-ky.ubuntuforums.org/showthread.php?t=573307.

Comentariile nu sunt permise.

Follow

Get every new post delivered to your Inbox.

Join 36 other followers