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

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

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

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

Thunderbird: Highlight row on focus

I use the keyboard a lot. For many years now, Thunderbird’s default theme (probably inherited from the desktop, which does the same thing on many dialogues) has had a little quirk that is slightly less conducive to keyboard use: It does not highlight the row with focus. Here is an example:

This way, I . . . → Read More: Thunderbird: Highlight row on focus

https and the browser conspiracy

While Google promotes HTTPS Everywhere, browsers have been working with a certifying authority oligopoly for many years promoting and enforcing an industry based on perception.

https: The good and the bad

The ‘s’ in https stands for ‘secure’ and indicates use of the SSL or TLS protocol. The SSL protocol serves 2 primary purposes:

Verification: . . . → Read More: https and the browser conspiracy

HTTP DDoS: “Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)”

Our servers were attacked recently by a constant stream of HTTP POST requests. The requests were coming in from a large range of IP addresses, at a rate of about 5-10 per second, with random POST data. However, all the requests had the same UserAgent, they always accessed the non-www form of the same domain, . . . → Read More: HTTP DDoS: “Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)”

Shell escaping in Perl

Shell Escaping:

There are several methods for escaping special characters in the Linux shell:

Double quotes: Double-quoted strings require escaping of only a few characters. Example: >echo “Some String: &>|\”\$’\`\s\\” Some String: &>|”$’`\s\ This method is useful as long as the string contains few or no characters that are special to the shell. It also . . . → Read More: Shell escaping in Perl

GNOME session save and restore

A newer version of this script is now available.

This script is used to save and restore a desktop session.

Why this script?

Some desktop managers do offer some session management features. Under GNOME it may be possible to run gnome-session-properties manually and turn on “Automatically remember running applications when logging out”. However, some GNOME . . . → Read More: GNOME session save and restore

Prevent GNOME screensaver during full-screen Flash videos

While movie players (such as VLC) prevent the GNOME screensaver from activating during movie playback, playing Flash videos does not affect the screensaver, which means having to move the mouse occasionally, or turning off the screensaver while watching YouTube videos and the like.

There is no perfect solution to this, but using a script, it . . . → Read More: Prevent GNOME screensaver during full-screen Flash videos