Image and video processing recipes

I often need to perform some operations on videos or image sequences. Usually I use linux and `ffmpeg`, and sometimes I struggle to remember all the commands. Here is a collection of recipes that I usually use with a bit of explanations. Video conversions ========================== Cut a range of frames --------------------------- Cut a range of frames (100, 130) from a video and save it to mp4 with a good quality using x264 codec: ....

March 27, 2020 · SergeM

Elasticsearch commands with curl

Commands List indexes curl -X GET localhost:9200/_cat/indices Delete index curl -X DELETE localhost:9200/YOUR_INDEX Delete all indices curl -X GET localhost:9200/_all List of all doc_types in a given index curl -X GET localhost:9200/YOUR_INDEX/_mapping | jq ".YOUR_INDEX.mappings | to_entries | .[].key" Running elastic seach with a limited memory #!/bin/sh ES_JAVA_OPTS="-Xms1g -Xmx1g" ./elasticsearch

February 10, 2017 · SergeM

windows life

doskey /history > commands.log- dump command line promt history to file some_command > output_file.txt 2>&1 - Redirect stdout and stderr to the same file src Share wifi from command line (probably obsolete in Win 8, 10) netsh wlan set hostednetwork mode=allow ssid="NETWORK_NAME" key="NETWORK_PASSWORD" keyUsage=persistent netsh wlan start hostednetwork Then in the properties of the internet connection enable access. Then allow in firewall.

June 5, 2014 · SergeM

linux life

Good start 1 sudo apt install -y mc curl jq wget htop hwinfo nmap vim Some commands top - see running processes df - check free disk space baobab - free disk space screen - multiple virtual consoles in one real [ref], need installation in ubuntu mc - file manager ccsm - disabling smooth fades and animations (speedup interface, especially useful in VirtualBox) sudo apt-get install compizconfig-settings-manager then...

June 2, 2014 · SM!