ElasticSearch
Creating Indexes
curl -H "Content-Type: application/json" -X PUT -d @store/ddl/elasticsearch/dialog.json http://localhost:9200/dialog-en
Deleting dialogs
curl -H "Content-Type: application/json" -X POST -d '{"query":{"match":{"title_id":"1a9b4"}}}' http://localhost:9200/dialog-en/_delete_by_query
Fonts
Logo
Montserrat Semi-Bold
Size: 80
ffmpeg
Install version 3.3
sudo add-apt-repository ppa:jonathonf/ffmpeg-3
sudo apt update && sudo apt upgrade
Uninstall version 3.3
sudo apt install ppa-purge && ppa-purge ppa:jonathonf/ffmpeg-3
ffmpeg -i video.mkv -vn -c:a aac -b:a 64k -ac 2 audio.m4a
ffmpeg -i video.mkv -acodec pcm_s16le -ac 1 -ar 16000 audio.wav
Subtitles
Prepare subtitles
subx format -s ./en-orig.srt --html --non-dialog --new-line --round-time --build-phrases ./en-mod.srt
subx format -s ./ptbr-orig.srt --html --non-dialog --new-line ./ptb.srt
subx sync -s ./en-mod.srt -t ./ptbr.srt ./ptb.srt