Using FFmpeg to replace video frames

Machine learning algorithms for video processing typically work on frames (images) rather than video.

In a typical use-case, FFmpeg can be used to extract images from video – in this example, a 50-frame sequence starting at 1:47:

>ffmpeg -i input.vid -vf “select=’gte(t,107)*lt(selected_n,50)'” -vsync passthrough ‘107+%06d.png’

Omit the -vf option if extracting the entire video. . . . → Read More: Using FFmpeg to replace video frames

FFmpeg lossless filtering

Preserving Data

Running a simple FFmpeg filter command:

>ffmpeg -i input.vid -filter_complex “[v:0]copy” output.vid

… one might expect the output video to be the same as the input video. Note that both input and output videos use the same container format (file name extension), and the command just uses the “copy” (do nothing) filter, . . . → Read More: FFmpeg lossless filtering

The Age of COVID (update)

Canada’s COVID-19 vaccination program started in December, 2020, picking up in earnest by March, 2021. The program focused on the oldest population first, with over 90% of people over 70 years old at least partially vaccinated by the end of May, 2021. However, as variants became increasingly common, the media reported that cases were . . . → Read More: The Age of COVID (update)

The Zombies

A short story on the philosophy of mind

In one of the most extraordinary events in the history of humanity, contact was made with a sentient extraterrestrial intelligence residing some light years away from Earth. Though an in-person meeting would not be possible any time soon given the vast distance involved, a radio communication . . . → Read More: The Zombies

The Age of COVID

Canada’s COVID-19 vaccination program started in December, 2020, picking up in earnest by March, 2021. The program focused on the oldest population first, with over 80% of people over 70 years old at least partially vaccinated by the end of April. However, as variants are becoming increasingly common, the media has been reporting that . . . → Read More: The Age of COVID

Upscale and interpolate video super-resolution using STARnet

Increase video resolution with an opensource machine learning algorithm for upscaling and interpolating video image frames using an automated command line script.

Bringing machine learning algorithms a step closer to usability.

Given a low-resolution video file, this script uses a machine-learning algorithm to increase (upscale) each frame’s resolution and optionally add (interpolate) an additional . . . → Read More: Upscale and interpolate video super-resolution using STARnet

Optimal Finances

A guide to optimizing your finances in Canada.

Upscale video super-resolution using RBPN

Increase video resolution with an opensource machine learning algorithm for upscaling video image frames using an automated command line script.

Bringing machine learning algorithms a step closer to usability.

Given a low-resolution video file, this script uses a machine-learning algorithm to increase (upscale) each frame’s resolution using information from neighbouring frames. The workhorse is . . . → Read More: Upscale video super-resolution using RBPN

Were early travel bans effective against the spread of Covid-19?

Evidence from previous pandemics, and early simulations generated after the beginning of the 2020 coronavirus pandemic, suggested that travel bans are a common political tool for alleviating public anxieties, but have only limited effect in delaying international spread of the Covid-19 virus. However, other models projected that travel bans could be highly effective. As . . . → Read More: Were early travel bans effective against the spread of Covid-19?

GNOME session save and restore

Save and restore your GNOME Shell desktop active running application windows and their positions across multiple workspaces using an automated command line script. Synopsis:

To save your session, press Alt+F2 or on a terminal:

>session save

To restore your session, press Alt+F2 or on a terminal:

>session restore

To restore your . . . → Read More: GNOME session save and restore