July 17, 2011

The World Cup in a file

Filed under: Ubuntu — Tags: , , , — squirreltech @ 8:07 pm

Some family friends are staying at our place for a week or so and they really wanted to see the Women’s World Cup finals. Well, they were going to be out and about for the actual game, so they asked if it was possible to record it. We got rid of DVR last November (that’s like $800 saved!!) so I decided to see what my Ubuntu machine could do.

To test it first (game hasn’t started yet), I decided to try a current, live stream and I found this site that would give me a “sop” link, but putting that into VLC gave me this error:

Your input can't be opened:
VLC is unable to open the MRL 'sop://broker.sopcast.com:3912/111719'. Check the log for details.

So, some research brought me to kabology and how to install the sopcast player. I ran these commands in a term window:

echo "deb http://ppa.launchpad.net/jason-scheunemann/ppa/ubuntu `lsb_release -cs` main" | sudo tee -a /etc/apt/sources.list && sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys CD30EE56
sudo apt-get update && sudo apt-get install sopcast-player sp-auth

This created the “SopCast Player” in Applications -> Sound & Video. I fired that up and entered my test sop mrl (?) and I was then greeted with a man announcing a basketball game (I think) in some Eastern European language! I then fired up vlc (version 1.1.9)  and clicked Media > Streaming… I clicked on the Network tab and entered http://localhost:8902. (The 8902 port can be configured in the SopCast Player Edit > Preferences > Out-bound Port.) Clicking “Stream” brought me to a Stream Output wizard. I selected a File to stream to an MP4 and checked the Display Locally check box so I could check in on the game here and there. Then I hit Stream.

I was then presented with a black box with the audio, but then I realized I had been doing all this from TightNVC viewer on my win 7 laptop. I walked over to the machine itself, and noticed it was playing video too!

Blog at WordPress.com.