Skip to main content

Posts

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 MP4 ffmpeg -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 image convert -auto-orient input.jpg -resize 2048 -quality 80 output.jpg Convert a series of images into a video ffmpeg -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 services systemctl --type=service See service status systemctl status sshd Start service systemctl start sshd Enable service systemctl enable sshd Writing service scripts http://0pointer.de/blog/projects/systemd-for-admins-3.html Disable CTRL-ALT-DEL systemctl mask ctrl-alt-del.target systemctl daemon-reload