Skip to main content


Showing posts from March, 2019

Image and video conversion with FFmpeg and ImageMagick

These commands require FFmpeg and ImageMagick, available for both Windows and Linux.Convert an AVI to MP4ffmpeg -i input.avi -c:v libx264 -crf 19 -preset slow -c:a aac -b:a 192k -ac 2 out.mp4 Auto orient, resize and change quality of an imageconvert -auto-orient input.jpg -resize 2048 -quality 80 output.jpg Convert a series of images into a videoffmpeg -pattern_type glob -i 'cam*.jpg' -c:v libx264 out.mp4

SystemD reference sheet

Get default target (runlevel)systemctl get-default List all targets (runlevels)systemctl --type=target Set default target (runlevel)systemctl set-default List all running servicessystemctl --type=service See service statussystemctl status sshd Start servicesystemctl start sshd Enable servicesystemctl enable sshd Writing service scripts CTRL-ALT-DELsystemctl mask systemctl daemon-reload