Ubuntu Forums ubuntu.com - launchpad.net - ubuntu help  

Go Back   Ubuntu Forums > The Ubuntu Forum Community > Other Community Discussions > Tutorials & Tips
Register Reset Password Forum Help Forum Council Search Today's Posts Mark Forums Read

Tutorials & Tips
The place to find Ubuntu related Tips & Tricks.

 
Thread Tools Display Modes
Old September 22nd, 2007   #1
Meroigo
5 Cups of Ubuntu
 
Meroigo's Avatar
 
Join Date: Sep 2006
Location: Lund, Sweden
Beans: 20
Ubuntu 7.04 Feisty Fawn
Send a message via MSN to Meroigo Send a message via Skype™ to Meroigo
HOWTO: Open videos from rar files "without" packing them up

Maybe a stupid thread title, but nevermind.

If you download your movies and tv series only as scene releases, then you'll have to extract the release's video file from its multiple rar files. That can take some time... Not a horrible long time. You can live with it... But I learned a cool thing and thought I could share it just because I have nothing better to do.

A friend (Thank you alias Rövhög) gave me a cool command to "open a rar file" in a video player making the video start playing directly. No need to extract the video before it starts playing.

So this is only for you people who doesn't mind using the terminal and know how to navigate in your file system using commands...

This was tested on Ubuntu 7.04 Feisty Fawn, 32-bit. Use this HOWTO on your own risk.

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 vlc
The command to use:
Code:
unrar p -inul /example/path/to/Some.Scene.Release/some.sr.r00 | vlc -
What the command does:
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 ~/.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
...and now you can use the command "rarvideo somerarfile.r00"!


I hope someone out there likes it. =D

Last edited by Meroigo; September 24th, 2007 at 06:10 PM..
Meroigo is offline   Reply With Quote
Old January 30th, 2008   #2
Drittponken
5 Cups of Ubuntu
 
Drittponken's Avatar
 
Join Date: Jan 2007
Location: Sweden
Beans: 16
Ubuntu 7.10 Gutsy Gibbon
Re: HOWTO: Open videos from rar files "without" packing them up

The making of the command didn't work for me :/ i followed you steps...
Drittponken is offline   Reply With Quote
Old January 31st, 2008   #3
565Customz
Way Too Much Ubuntu
 
Join Date: Jan 2008
Beans: 287
Re: HOWTO: Open videos from rar files "without" packing them up

did you copy and paste?
565Customz is offline   Reply With Quote
Old August 9th, 2008   #4
Gfy
5 Cups of Ubuntu
 
Join Date: Nov 2007
Beans: 16
Ubuntu 8.04 Hardy Heron
Re: HOWTO: Open videos from rar files "without" packing them up

You could also use Dziobas Rar Player with Wine.
Download it here:
http://ds6.ovh.org/drp.html

Choose Move -> PanScren -> 100% (OpenGL)
to make it possible to view it fullscreen.

And disable your screensaver.
Gfy is offline   Reply With Quote

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 02:49 PM.


vBulletin ©2000 - 2010, Jelsoft Enterprises Ltd. Ubuntu Logo, Ubuntu and Canonical © Canonical Ltd. Tango Icons © Tango Desktop Project. lingonberry