Schooling the Wire

Three SuperCut videos from season 4 of the wire on the words, school, schooled and schooling after a prompt from Jim Groom. Made with videogrep.py

I was surprised at how few times schooled or schooling were used.

Supercut videos are a nice way of looking at this sort of stuff but you can get a quick idea of the use of words by finding them in the subtitle (.srt) files.

For example I downloaded season 4 subtitles from The Wire S04(Season 4) english subtitles – TVsubs.net. This gives several versions of the files. I found before that the DVDRip.TOPAZ.en.srt ones work best for me. I’ve put them in the same folder as my wire episodes and renamed them to match these files.

I open the terminal and type cd then drag the folder from the finder into the terminal window and hit return. This moves me into the folder.

I then grep -e 'school ' *.srt which outputs a list of the episodes with school in the subtitles and the line:

The Wire Season 4 Episode 01 - Boys of Summer.srt:for some back-to-school stuff.
The Wire Season 4 Episode 01 - Boys of Summer.srt:back-to-school stuff for?
The Wire Season 4 Episode 01 - Boys of Summer.srt:When school start, I'll be selling it
The Wire Season 4 Episode 02 - Soft Eyes.srt:for your school clothes,
The Wire Season 4 Episode 02 - Soft Eyes.srt:your school shit, man.
The Wire Season 4 Episode 02 - Soft Eyes.srt:I can't wait until school starts.
The Wire Season 4 Episode 02 - Soft Eyes.srt:of school coming up, right?
The Wire Season 4 Episode 02 - Soft Eyes.srt:- Y'all need school clothes and shit?
The Wire Season 4 Episode 02 - Soft Eyes.srt:to buy school clothes with.
The Wire Season 4 Episode 02 - Soft Eyes.srt:to school some.
The Wire Season 4 Episode 02 - Soft Eyes.srt:to that school lookin'
The Wire Season 4 Episode 03 - Home Rooms.srt:do you want to go to school for?
The Wire Season 4 Episode 04 - Refugees.srt:For school or out the business,
The Wire Season 4 Episode 04 - Refugees.srt:to start out a school year,
The Wire Season 4 Episode 04 - Refugees.srt:school on Friday,
The Wire Season 4 Episode 04 - Refugees.srt:school you, brother.
The Wire Season 4 Episode 05 - Alliances.srt:ain't in school tomorrow morning,
The Wire Season 4 Episode 05 - Alliances.srt:take him in, school him,
The Wire Season 4 Episode 06 - Margin of Error.srt:- High-school biology.
The Wire Season 4 Episode 06 - Margin of Error.srt:Ain't no school today.
The Wire Season 4 Episode 07 - Unto Others.srt:Does the school have
The Wire Season 4 Episode 07 - Unto Others.srt:creep out of school after lunch.
The Wire Season 4 Episode 07 - Unto Others.srt:He's got to be at school in the morning.
The Wire Season 4 Episode 08 - Corner Boys.srt:the word around school is
The Wire Season 4 Episode 08 - Corner Boys.srt:the school or not.
The Wire Season 4 Episode 09 - Know Your Place.srt:after school lets out--
The Wire Season 4 Episode 09 - Know Your Place.srt:to the school social worker.
The Wire Season 4 Episode 10 - Misgivings.srt:I'll get the school police.
The Wire Season 4 Episode 10 - Misgivings.srt:of the school year,
The Wire Season 4 Episode 11 - A New Day.srt:front of the school today,
The Wire Season 4 Episode 11 - A New Day.srt:at school 45,
The Wire Season 4 Episode 11 - A New Day.srt:school 52, and school 58
The Wire Season 4 Episode 11 - A New Day.srt:- The school audit.
The Wire Season 4 Episode 12 - That's Got His Own.srt:when I look at the school budget.
The Wire Season 4 Episode 12 - That's Got His Own.srt:for the school budget.
The Wire Season 4 Episode 12 - That's Got His Own.srt:with the school board itself.
The Wire Season 4 Episode 12 - That's Got His Own.srt:is on the school system.
The Wire Season 4 Episode 12 - That's Got His Own.srt:As president of the school board,
The Wire Season 4 Episode 12 - That's Got His Own.srt:not the school board,
The Wire Season 4 Episode 12 - That's Got His Own.srt:- to go see the school superintendent.
The Wire Season 4 Episode 12 - That's Got His Own.srt:the Baltimore school system's
The Wire Season 4 Episode 12 - That's Got His Own.srt:middle school no more.
The Wire Season 4 Episode 12 - That's Got His Own.srt:no school closures.
The Wire Season 4 Episode 12 - That's Got His Own.srt:over the school board
The Wire Season 4 Episode 13 - Final Grades.srt:It knocks the school deficit
The Wire Season 4 Episode 13 - Final Grades.srt:your school system."
The Wire Season 4 Episode 13 - Final Grades.srt:I went to school here

Where as schooling:


01 - Boys of Summer.srt:So... he was schooling me.
07 - Unto Others.srt:Don't be schooling us now.
08 - Corner Boys.srt:we schooling them.

Only has 3 mentions as does schooled


01 - Boys of Summer.srt:You laughing. I've been schooled, dog.
09 - Know Your Place.srt:You schooled me good.
10 - Misgivings.srt:- You schooled them well.

If you just want the number of mentions:
grep -e 'school ' *.srt | wc -l
outputs 45.

I am sure lots of ds106 students can thing of some other useful and interesting ways to use this.

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.

a little slow, a little late

Be a Little Slow

You cannot lose if you do not play.

My first post here since April! I missed the whole of the burgeon experience and have done only a handful of daily creates. I am not saying sorry, I have made a few artefacts and experimented with some stuff that is pretty #ds106. There is no really useful instructions in this post, but links for the willing.

Videogrep.py

I’ve been meaning to post about this for a while, I did a few tests in June and tweeted a bit about it. It is pretty cool:

Videogrep is a python script that searches through dialog in videos and then cuts together a new video based on what it finds. Basically, it’s a command-line “supercut” generator.

from: Videogrep: Automatic Supercuts with Python – Sam Lavigne

Here is a quick test:

And a link to another: blade runner know

I’ve not even scratched the surface of videogrep, there are some pretty amazing ideas on the link.

I had a wee bit of difficulty installing videogrep, and had, as I recall, to wander round googling to get things running. The videos produced lacked sound, but running them through miro video converter fixed that. I am guessing if you are command line savvy enough the code could be adjusted.

Here is a supercut for Barksdale in episode 1 of the wire.

gifboard

Apocalypse.now Jungle 1

More Jungle gifboards

On the back of the jungle supercut I revisited using gifboard to create automatic subtitled gifs. I notice Jim pointing to something similar. yesterday.

Both gifboard and videogrep are command line applications and not for the faint hearted.

I dusted off gifboard for a quick slice of the wire:

Rolling Bones

glitching

With a little encouragement from Mariana, I dipped my toes back into glitching world, I am afraid no movie glitchs I made were of any interest, but I had better luck with sonicification of images after Alan posted Image Bending in Audacity.

Repeating Gifs

I’ve long admired some gifs I’ve seen on tumblr that repeat across the page, during the recent giffight on emblems here are mine I figured out how to do this:

Rooster Gang

Basically a lot of copy and pasting.

Emblem Multi 500

During the emblems giffight Andrew Forgrave produced some great anaglyph gifs and some tutorials around them from which I gained a lot (globe-of-doom-anaglyph-1 | Flickr – Photo Sharing!).

The Wire

I’ve been a big fan of the wire so hoped to throw myself into some ds106 activity, turns out re-watching series one I mostly get caught up in enjoying it and following the plot, not much analysis going on here. Hopefully I get some fun before the series is out.