~tilde

 _________  ________  _________  ________  ___       ___           ___    ___ 
|\___   ___\\   __  \|\___   ___\\   __  \|\  \     |\  \         |\  \  /  /|
\|___ \  \_\ \  \|\  \|___ \  \_\ \  \|\  \ \  \    \ \  \        \ \  \/  / /
     \ \  \ \ \  \\\  \   \ \  \ \ \   __  \ \  \    \ \  \        \ \    / / 
      \ \  \ \ \  \\\  \   \ \  \ \ \  \ \  \ \  \____\ \  \____    \/  /  /  
       \ \__\ \ \_______\   \ \__\ \ \__\ \__\ \_______\ \_______\__/  / /    
        \|__|  \|_______|    \|__|  \|__|\|__|\|_______|\|_______|\___/ /     
                                                                 \|___|/      
                                                                              
 ________   ___  ___  ________  ___       _______   ________  ________        
|\   ___  \|\  \|\  \|\   ____\|\  \     |\  ___ \ |\   __  \|\   __  \       
\ \  \\ \  \ \  \\\  \ \  \___|\ \  \    \ \   __/|\ \  \|\  \ \  \|\  \      
 \ \  \\ \  \ \  \\\  \ \  \    \ \  \    \ \  \_|/_\ \   __  \ \   _  _\     
  \ \  \\ \  \ \  \\\  \ \  \____\ \  \____\ \  \_|\ \ \  \ \  \ \  \\  \|    
   \ \__\\ \__\ \_______\ \_______\ \_______\ \_______\ \__\ \__\ \__\\ _\    
    \|__| \|__|\|_______|\|_______|\|_______|\|_______|\|__|\|__|\|__|\|__|   
                                                                              
                                                                              
  ________  ___       ___  ___  ________                                      
 |\   ____\|\  \     |\  \|\  \|\   __  \                                     
 \ \  \___|\ \  \    \ \  \\\  \ \  \|\ /_                                    
  \ \  \    \ \  \    \ \  \\\  \ \   __  \                                   
 __\ \  \____\ \  \____\ \  \\\  \ \  \|\  \                                  
|\__\ \_______\ \_______\ \_______\ \_______\                                 
\|__|\|_______|\|_______|\|_______|\|_______|

For the last couple of commutes I’ve been hooked by a ~.

(I am cross posting this at my mainly educational blog and my ds106 one because I think this is so interesting.)

It started when I read I had a couple drinks and woke up with 1,000 nerds which touches on some many interesting things, online identity, ownership, internet history and made me think about about community, teaching about the web and some of the posts Jim Groom has be posting recently (/~space for example).

The ~tilde.club set up by Paul Ford while drinking is

not a social network it is one tiny totally standard unix computer that people respectfully use together in their shared quest to build awesome web pages

It mirrors what was the standard way to give university folk accounts and allows users to work on a remote computer through the terminal, communication and creating web pages. You will get a much better idea by reading the post and going to ~tilde.club and clicking some links.

It looked interesting enough to have a shot, but I had arrived at the party a little late. Fortunately there are other tilde clubs springing up and I got in to totallynuclear.club as ~troutcolor.

All I’ve done so far is created a webpage, set up a blog and visited other members pages. I had a quick chat on the commandline with ~maze who answered some questions.

Hopefully I’ll use the blog to document what I am learning as I go. I am certainly learning. I’ve use a terminal now and then locally on my mac and even very occasionally to play with my Raspberry Pi, but this is quite different. I find myself strangely drawn to the process. For some of the users on the tilde clubs nostalgia is a reason for being their, I missed that whole section of computer history as I started late. Any webpage creation I’ve done has been by uploading files via FTP or by using blogging software or social media. The ~tilde clubs work in both a older and modern modern way. I’ve noticed similarities in the way the developers for glow blogs work, not ftp for them, they talk of git, and are often logged into some cloud server via a terminal.

There are other interesting features emerging on totallynuclear and other tilde clubs I hope to get the courage up to try the IRC chat soon.

What could it be good for

Apart from fun which is a good enough reason.

Given that I an a teacher I wonder if this could be a good way to teach pupils/students about the web. I don’t think that there is anything Perhaps cover some technology history and web literacy. Although the technology is not very shiny and new it does feel quite exciting. It also, to some extent, remove a veil from the technology and perhaps could loosen the ties to silos.

What does it look like?

This is a very short screencast just touching on the basics, which is all I know at the present.

Starters for 10

Some links to interesting totallynuclear things:

Colour of the Wire

After the last post I’ve watched a few more episodes and have arrived in Season 3 of the wire. I though it might be interesting to see the overall colours of different episodes or seasons and compare them.

Following the same path1 as in the previous post I created a montage of screenshots from Episode 1 of season 3. I sort of expected it to be a bit brighter but:

out-1000

A bit of googling took me to Image Color Summarizer – RGB and HSV Image Statistics and:

Image Color Summarizer – RGB and HSV Image Statistics Season 1 Episode 1

Image Color Summarizer – RGB and HSV Image Statistics Season 3 Episode 1

Both described as dark faded red.

colours-of-the-wire

I wonder if it would be interesting to expand this to other episodes and series or if everything looks dark.


Footnotes:

1. I had a few problems with Storyboard this time as the .srt file I downloaded didn’t work, a quick google found one that did. I also noticed that the montage code I posted last time was missing a parameter --geometry +0+0 to remove padding

Chain of Command

wire01
(the above gif has nothing to do with the rest of the post, other than it is to do with the wire.)
A while back I posted about gifboard and it’s bigger brother storyboard. I’ve played a bit with storyboard and the wire this week.

Storyboard is a command line application which creates pdfs from movies with subtitles, one page per subtitle.

I just started with a bit of playing round with no particular destination in mind. The first thing I did was rip a pdf of subtitled frames from Episode 1 using storyboard. This gave me a 30mb file with >1400 ‘pages’.

I then thought that it might be an idea to get all of these pages out as images, a quick google suggested pdfseparate. This is another commandline app. I generally have no idea what commandline options are available, so I typed: man pdfseparate in the terminal and got back the man page, so it was installed.1

For once I though ahead and moved the pdf into its own folder, I then, in the terminal, cd into the folder and:

pdfseparate The\ Wire\ Episode\ 01\ -\ The\ Target.pdf  wire-ep-1-%d.pdf

The %d bit just gave me a numbered set of jpegs. I ended up with a folder full of 1497 pdfs. I really wanted images rather than pdfs so:

mkdir jpgs; sips -s format jpeg *.* --out jpgs

This command first makes a new folder called jpgs and then uses sips (built into OSX) to convert each pdf into a jpg and put it in the folder. These jpgs were quite big so I cd into the folder and:

sips --resampleWidth 300 *.jpg

Which resizes them nicely. I also duplicated the folder and made a set of smaller jpgs and some gifs with sips too.

My first thought was to make some animated gifs2, but a gif with 1497 frames turns out to be pretty big, even if you reduce it to 8bit. There are probably a few interesting gifs in this project which I might return to.

My next idea was to make one of those infinite scrolling web page with the jpg, and this turned out ok: The Wire Scrolls On, S1E1.

infinite-scroll

This gives quite an interesting view of the episode, it is pretty dark and there are a lot of closeups and expressive faces (this might be skewed by the fact we grab bits of dialog). I was quite surprised that the page loaded quite well.

After seeing that page I thought a montage would be the next obvious step. Again a quick google suggested the ImageMagick set of command line tools. Again I’d already installed these at some time in the past so it only took another google to suggest that the montage tool was the way to go. So inside the folder of smaller jpgs:

montage wire-ep-1-[1-1497].jpg out.jpg

out-1000
I can’t imagine how long it would take to do something like this with a gui application. I can imagine that quite a few folk would not be all that interested in this process or the results, am thinking that it is somewhat analogous to looking at large sets of data. These image manipulating commandline tools allow different views of video to be created quickly. They also give an overview of a whole section that can be analysed and mused over.

I am not really much of a command line user although I’ve dabbled over the years and installed a fair number of applications along the way. I would recommend that dipping toes in, with say gifsicle before jumping in to install and try a pile of stuff. Google is your friend here and you can often find a command line way to do something by adding ‘command line’ to the search. In addition to the tools above, or even before, ffmpeg for example.

Update: The Wire EP 1 Mashup.


Footnotes:

1. I little digging around reminded me I had installed this as part of poppler. Poppler I’d installed using homebrew (the chain is tangling already). If you want to install various command line apps I’d recommend homebrew as a good option.

2. gifsicle is a wonderful command line application for creating animated gifs.

and all the pieces matter

and-all-the-pieces-matter
Gif using gifboard

This is a quick intro to installing videogrep.py a tool for making supercut movies. Written in haste, consider it a rough draft.

Videogrep is a python program run from the command line. This is quite different from using applications with a GUI. I am hoping to write up a few different tools I use for playing DS106 and will try and come back and expand on this.

More about Videogrep: Automatic Supercuts with Python – Sam Lavigne.

Code: antiboredom/videogrep · GitHub.

Caveats

  • I am no expert in using the command line. I’ve failed on quite a few attempts at installing.
  • As with a lot of software you can make mistakes, bad things can happen. You will be giving the software author control over your computer.
  • I am using Mac OS X
  • There is not a lot of detail here, I’ll come back and improve if it seems useful.
  • It is probably sensible to read all of the linked pages here rather than just go on trust.

Dependencies

Videogrep depends on a few python modules and programs. These are installed with pip (A tool for installing and managing Python packages) which you may need to install.

You also need to install FFMPEG (FFmpeg is a free software project that produces libraries and programs for handling multimedia data. ). One way to install FFmpg is with homebrew, which you need to install first!

Homebrew and ffmpeg

Homebrew, is a package manager it is installed and used via the commandline so you will need to open the terminal app.

You run stuff in the terminal by typing (or pasting) after the prompt my prompt is johnj:~ john$ if I am in my home directory which is called johnj

On the Homebrew site you can copy a line of text which if pasted into the terminal will install homebrew when you press return. I’d go to the site and copy from there rather than from here.

ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"

The script explains what it will do and then pauses before it does it.

Once the script has finished it will recommend running:

brew doctor

To check all is ok, so type that and hit return, wait a while and the prompt returns. you can now install FFmpeg. The videogrep notes suggest you do with this:

brew install ffmpeg --with-libvpx --with-libvorbis

So try that, type it in at the prompt in the terminal, lots of text should stream by, by the time it stops FFmpeg should be installed. You can check by typing

ffmpeg -h

Which will display the help.

pip

Next you want to install pip, which lets you install other stuff. Again at the prompt type:

easy_install pip

Some text will go by and the prompt should come back.

Videogrep

Finally

Down load the zip file from antiboredom/videogrep · GitHub unzip and put it somewhere handy, your desktop folder for example.

The folder is called ‘videogrep-master’ I’ve just left it as that.

Inside the folder is a txt file requirements.txt this lists the python modules that you need to install, you don’t need to open it. Back in the terminal, cd into the videogrep folder:

cd path/to/folder

to do that type cd at the prompt and drag the folder into the terminal window, I see:

johnj john$ cd /Users/john/Desktop/videogrep-master

hit return and type:

pip install -r requirements.txt

and return again a ton of text will scroll past as past.

At the end, unless you have errors you are ready to go.

First cut

You need a video file and an srt file to match, there names must be the same except for the extension, eg:

  • The Wire Season 1 Episode 06 – The Wire.avi
  • The Wire Season 1 Episode 06 – The Wire.srt

If you followed the above steps your prompt should show you are in the videogrep-master folder:

johnj:videogrep-master john$

type:

python videogrep.py --input path/to/srt file  --search pieces --output pieces.mp4

more text scrolls past the terminal. A video pieces.mp4 appears in the folder, it is the supercut video.

 

Problems along the way

I had a couple, first in installing the requirments.txt I kept getting errors about pattern. To solve this I went to pattern, downloaded pattern and installed it. I then removed that line from requirments.txt and saved it before running pip install -r requirements.txt again.

The second problem I had was the movies created had no sound. I didn’t fix that, I just used miro video converter to convert the files to apple or iphone ones which did the trick. I am guessing this could have been fixed with ffmpeg too as miro video converter is, as far as I know, a gui for ffmpeg.

The Case of the Missing Tag

missing-label
Photo edited from Labels by Mrs Magic Some rights reserved

Yesterday the DS106 daily create was Create an outograph- an image where the subject has been cut out

This technique was coined by beat poet Ted Joans; see some examples from Believe the Impossible

Upload your photo to flickr and tag it dailycreate and tdc725

Sounded interesting and easy enough to do in a few minutes. I made a few and learned a we bit more about photoshop in the process (basically, select, new layer via copy and then adding a Fill layer using the selected layer as mask). I’ve found I’ve gone to photoshop a little bit more recently as its selection tools are better than fireworks’s.

I uploaded the photo to Flickr and added the correct tags:

Taking Myself out of the photo

At that point there were no other photos tagged tdc725. This morning I checked the photo flickr and clicked to see photos with the same tag. I saw quite a few but mine was not on the list, and therefore not on the Daily Create page. I’ve seen this a few time before and tried removing and adding the tag to no effect. Then I googled and found: Flickr: The Help Forum: Ive added tags but its not working (yet?)

This post gave a clue and worked for me:

Just in case it helps others – I found that if I went into the privacy settings for a photo and re-saved (it was already set to anyone) then they pretty much appeared immediately in public tag searches.

from: Flickr: The Help Forum: Ive added tags but its not working (yet?)

I clicked Show More after Additional info on the photo page.
I then clicked Edit after Anyone can see this photo
I clicked Save on the dialog, even though it already said anyone could see the photo.
The phot showed up in the tag search immediately Flickr: “tdc725”.