Convert WebVTT to a Transcript using Python

by @edent | # # # # # | Read ~133 times.
YouTube showing subtitles.

I want to convert YouTube's auto-generated subtitles into a plain transcript. Why is this so hard? This blog post gives a more detailed explanation than my answer to this StackOverflow question. Here's what the subtitles look like when you view a video: And here's what the code which generates those subtitles looks like: 00:00:00.930 --> […]

Continue reading

Using the Evoluent VMCR C Series Vertical Mouse with Linux

by @edent | # # # # # # # | Read ~266 times.
Mouse with multiple buttons.

This is a quick guide for setting up your new mouse with Ubuntu. I'm a big fan of the Evoluent Mouse range, and I've agreed to publish this Linux guide in return for a review sample. The Basics The only way to configure this mouse is via the command-line. This may look a bit daunting, […]

Continue reading

How to detect 3D video?

by @edent | # # # #
Still from the moview Finding Nemo. The image is split side by side.

Here's an interesting conundrum. My TV can automatically detect when 3D video is being played and offers to switch into 3D mode - but how does the detection work? This post will give you a few strategies for detecting 3D images using Python. Firstly, some terminology. 3D videos are usually saved either as Side-By-Side images, […]

Continue reading

Adjusting timestamps on images with Python

by @edent | # # # # # | Read ~443 times.

As ever, mostly notes to myself. I have a bunch of old images which don't have any timestamp associated with them. This quick Python script will add a DateTime EXIF metadata tag to an image. This uses piexif which can be installed using pip install piexif This simple script reads a photo, adds a timestamp, […]

Continue reading

Import Images From A Migrated WordPress

by @edent | # # # # # | Read ~215 times.
The Logo for WordPress

Here's how to solve a common WordPress problem. I want to re-import all my blog's images into the media library. I've moved my blog to a new host - but kept the same domain name. I started with a new WordPress install, the uploads folder still has all my images, but WordPress can't see them. […]

Continue reading

Using YouTube to Transcode Videos to DASH on the Command Line

by @edent | # # # # | 9 comments | Read ~976 times.

This is part of my redecentralisation efforts to liberate my videos from YouTube. MPEG-DASH is a simple method of streaming videos which doesn't require any specialised server software. You convert a high resolution video into a series of smaller resolution videos. You chop each of the videos up into several chunks. As the video plays, […]

Continue reading

Previewing Circular Avatars

by @edent | # # # # # | Read ~184 times.

Play with the demo I was lucky enough to go to Number 10 Downing Street for a meeting a few weeks ago. A perfect opportunity for a photo of me by that famous door. Being the vain man that I am, I wanted to set it as my avatar photo. But Twitter and other social […]

Continue reading

Easy Tutorial For Getting Twitter Friends Using Python & Tweepy

by @edent | # # # # | 1 comment | Read ~2,183 times.

Here's a very simple introduction to getting started with Tweepy - a Python program which lets you access Twitter. This will work on small computers like the Raspberry Pi. Everything here takes place in the Terminal on the Command Line. This should work on Windows and Mac - but I'm using Linux. Get Python Open […]

Continue reading

Long Exposures - Creating Average Frames From Movies

by @edent | # # # # | 3 comments | Read ~7,085 times.

I read a Guardian article about an artist who set up an analogue camera in front of their TV, set it to long exposure, and set a movie playing. The result was a rather wonderful collection of images. You can see more of Jason Shulman's works Is there a way to automate this process? Yes! […]

Continue reading

Fixing Broken Zip Files from Bandcamp - File name too long

by @edent | # # # | Read ~200 times.

I recently downloaded an album from Bandcamp. On trying to extract the zip file using Ubuntu, I got the error "File name too long." This is a known problem with Bandcamp. If you have a problem with long filenames in zip files, here's how to fix it. Quick Solution unzip -p -c whatever.zip "filename.ogg" > […]

Continue reading