AyeTea

...IT in Tea Break Sized Bytes

  • Increase font size
  • Default font size
  • Decrease font size
Technorati Profile
Home A Room Without Windows Get-Iplayer tempts me to the terminal

Get-Iplayer tempts me to the terminal

E-mail Print PDF
User Rating: / 1
PoorBest 
Window users like myself can see linux systems as a bit techie, particularly when websites and those in the linux know tend to quote frequently command lin instructions which you might be forgiven for thinking is all there is to linux.

I have to say that I use the cmd tool within windows infrequently and if I am honest I was quite glad around 1995 when Mr Gates led us away from command line temptation.  I recall my very early days of computing when everything was launched from a DOS command line.  In those days PC's were heavy, the monitors heavier and the manual sets the heaviest of the lot!  I also recall that prior to 95' pretty much every computer user was a geek, noone ele had the patience to learn the command line options!.

I said at the start of this project that I was aiming to stay away from the command line as much as possible.  However a few nights ago I hit a problem that kind of drove me to the command line once again.  As it happens I have now managed to resolve my origional problems by changing over from the Ubuntu 9.04 distribution to Eeebuntu, a custom made distribution designed for my hardware.  But before this I had found a workaround that I actualy prefer.  I am being a little cryptic here, so I had better explain things from the start.

In the UK the BBC (British Broadcasting Corporation) is our largest broadcaster, uniquely the BBC is funded not through advertising but via a licence fee.  It has a reputation for producing high quality (though not this is not always true) television and radio.  The BBC also provides a we interface where you can watch TV programs that you may have missed.  Some live streaming services are offered as well.  I use this service sometimes particularly when someone recommends a program that they found useful or entertaining. 
The BBC iPlayer service is available fro their website and relies on flash player to give access to the streams.  I tried to acccess the service the other night and though they claim to support linux, I could not get access to the streams.  I installed Adobe flashplayer as instructed, but the egg timer just froze when I tried to watch a stream. I had an issue and the more I did to try and fix it, the more I managed to make the issue worse.  While searching for solutions I came accross a site which mentioned the command line application get_iplayer. 

This little program was installed via instructions from the website.  I have to say that I have become addicted to it.  Its quick, easy and provides many advantages over the BBC's own iPlayer interface.  All accessed through typed commands.

For instance if I wish to search the iPlayer content, I type in the command

get_iplayer eastenders

get_iplayer and a full list of available programs is listed.  I can search by program name or more just by adding my search terms to the command line instruction. 

eg. get_iplayer eastenders

What is really smart about Get-iplayer is the way that it downloads media.  The BBC offers different stream formats for different devices and those who have sold their souls to Apple get the best quality streams (The BBC is meant to be independent bear in mind). One clever trick that Get_iplayer plays is to  pretend to be an apple device and download the material in mov format.  Quality wise this is dramatically better than the flash player stream, even on my ickle EeePC.

get_iplayer  can be used in several modes:
  • For direct streaming
  • To record a stream
  • As a personal video recorder
Get_iPlayer does not however handle the play back of the streams, I am currently using VLC player to do this though Mplayer will also do this (and has a slightly better interface IMHO)

So how does it feel to be back in the command line after all these years away?  Well not to bad really, there are one or two differences between the linux command line and DOS, when navigating I have to remember not to use DIR but rather ls to list the contents of a directory, but cd works pretty much the same way in DOS.

Command line working does feel very immediate compared to GUI, and as you get to learn each command it is slightly faster.  However I would hate to have to work this way for absolutely every task.  I frequently forget syntax, and have t look things up and this is just for navigation and one small application, I am happy to stick to the GUI for the moment. 

This little application allows me to see kinda how linux applications develop.  Someone decides on the need for an application and writes it to run on the command line.  Once this is working alright, then either the original programmer or someone else develops a more user friendly front end.  Finally the application reaches the sort of finished state that Windows users take for granted.  It's interesting...

Share Link:
Google Yahoo MyWeb Del.icio.us Digg Facebook Myspace Reddit Ma.gnolia Technorati Stumble Upon
 
Discuss (10 posts)
terminal customization
Jun 19 2009 00:25:36
You can adapt your command line to resemble DOS more closely by using aliases.
alias dir=ls

will allow you to use dir to list directories.

This is for the current shell only, so if you want that behavior to be permanent, put this line in /etc/profile or ~/.bash.bashrc
#104
Re:terminal customization
Jun 19 2009 10:20:02
Top quality tip thankyou!!

That worked a treat Thanks...

I am actually getting used to using ls, but setting that up works as a catch all for those coffee derived moments...

Any other hot command line tips?
#107
Re:Get-Iplayer tempts me to the terminal
Jun 19 2009 11:32:34
Hmm, I keep losing my posts because it doesn't always remember my login, and when the number code isn't entered, it forgets my text. As a quick note, the message text really should be saved on an error there. What forum software is this?

Anyway, to recap what I just lost:

Due to the variety of gui tools (for example wicd, networkmanager, kwlan) forums usually need to go to the underlying low level command line tool (ie. ifconfig, editing /etc/network/interface) to make sure the fixes work for everyone. So it may appear that the only way to fix things is command line, but there is usually a gui tool to fix it.

Shell tips:

About the aliasing mentioned earlier, while helpful in the short term, what happens when you get to a comp without that set up? It is likely just better to suffer now through the retyping to learn it.

If you do screw it up a command with arguments, use !!, or This trick. In general, shell-fu is awesome for time saving tools.

Another great feature is autocomplete. Start typing, hit tab. IT will give you a list of possible matches. If there is only one, it will just fill it out for you (great for navigating to long decompressed directories). This works on directories, files, and commands.
#108
Re:Get-Iplayer tempts me to the terminal
Jun 19 2009 11:57:03
A Cheat Sheet could also be handy.
#109
Re:Get-Iplayer tempts me to the terminal
Jun 19 2009 15:45:24
Oh noes! You've become a hacker.
#110
Re:Get-Iplayer tempts me to the terminal
Jun 19 2009 16:40:16
w00t, 1'm 4 pr0p3r h4ck3r n0w.
#111
Re:Get-Iplayer tempts me to the terminal
Jun 19 2009 20:28:32
This site is awesome, lots of commands you'll want to remember as a power user
#113
Re:Get-Iplayer tempts me to the terminal
Jun 21 2009 00:31:56
The combination of history and grep saved me some time.
"history" - prints the last ~500 commands with arguments
"grep" - searches in the given input or in files. Great for finding stuff.

Say, you used wget to download the cheat sheet mentioned by Cryophallion:
wget files.fosswire.com/2007/08/fwunixref.pdf

A while after that, you accidentally deleted it and vaguely remember having used this command, but not the exact spelling. Then,

history | grep fosswire

gives you all past commands containing "fosswire", including the above.
The "|" is called a pipe, it connects the output of a program to the input of another. You can do all kinds of stuff with it.
#115
Re:Get-Iplayer tempts me to the terminal
Jun 21 2009 00:55:04
iguana wrote:
The combination of history and grep saved me some time.
"history" - prints the last ~500 commands with arguments
"grep" - searches in the given input or in files. Great for finding stuff.

Say, you used wget to download the cheat sheet mentioned by Cryophallion:
wget files.fosswire.com/2007/08/fwunixref.pdf

A while after that, you accidentally deleted it and vaguely remember having used this command, but not the exact spelling. Then,

history | grep fosswire

gives you all past commands containing "fosswire", including the above.
The "|" is called a pipe, it connects the output of a program to the input of another. You can do all kinds of stuff with it.


yes, grep is awesome (esp with something like ps aux | grep {program name})

And here is another awesome one along the lines of your tip:
control-r puts you in search mode. Start typing, and it will fill in the last commands you typed. Hit control-r again to step back. Saves a ton of time when trying to redo a common command.
#116
Re:Get-Iplayer tempts me to the terminal
Jun 21 2009 23:15:07
yes grep is indeed useful.
you can find a certain part of large outputs easily, for example

dmesg

gives a load of messages you cannot read all at once, so most is cut off from your sight. If you need to know which serial port your 3G modem has opened (for example), you can do so by typing

dmesg | grep sierra

(sierra is manufacturer name of my modem card)

the sign "|" causes the two commands to be executed dependant on each other, but you can also couple several commands with the sign "&&" as follows:

set-led rgb 255 0 0 && sleep 1 && set-led rgb 0 0 0

(lets your email notifier light up for 1 second)


if you're unsure about syntax of a certain command, you can try evoking it with -h or --help, or you can try using the "man" command if theres a manual saved somewhere:

man dmesg

(shift-Q exits the manual viewer)

once again, w3lc0m3 t0 r34l LiVuX
#117

Discuss this item on the forums. (10 posts)

JoomlaWatch Stats 1.2.8b_10-dev by Matej Koval Technorati Profile