To properly see a video recorded with a DJI Mavic 2 Pro in D-log colours, it needs conversion. This can be done with the cube file provided by DJI. Such cube files contain the lookup table (LUT) to turn the bland colours into proper ones when viewing with a run-of-the-mill viewer like MPlayer, VLC, Windows Media Player, etc.
Unfortunately, DJI's cube file is incompatibe with FFmpeg. It should work with this command, but doesn't:
ffmpeg -i input_file.mp4 -c:v h264 -crf 21 \ -vf lut3d='dlog-to-rec709.cube' output_file.mp4
This results in an error "3D LUT is empty" from FFmpeg. Fortunately, this is easily fixed. Just open the .cube file in any text editor, and find the line
LUT_3D_SIZE 33. There is a tab character between the
33, and even though this is fine according to the specifications, FFmpeg doesn't like it. Just replace it with a space, so change:
Save the file, and you're done. The above ffmpeg command will now just work.
Update: this incompatibility has been fixed in FFmpeg, and will be part of a future release (current release is 4.1).
After over two years of silence, Python-RSA 4.0 has been released! There are many improvements and also backward-incompatible changes (hence the increase of the major version number).
Get it while it's hot at the Python Package Index, or just install with
pip install --upgrade rsa.
While I'm doing web development I want to have an email server that ensures that all mail will end up in my mailbox. To this end I set up Postfix with this rule in
header_checks = regexp:/etc/postfix/header_checks.regexp
header_checks.regexp then contains:
/^To:/ REDIRECT email@example.com
This results in all mail being sent via my SMTP server is delivered to my mailbox, regardless of who it's intended for.
A new version of the Python FlickrAPI has been released. You can download or upgrade it using
pip3 install -U flickrapi.