for finding encoder info use:
$ ffprobe -i original.mp4
for next commands, encoder settings MUST BE the same or better then original video to don't lose significant quality and color during re-encoding
shake detection and stabilization:
| #!/usr/bin/env python3 | |
| import os | |
| import shutil | |
| import subprocess | |
| import logging | |
| from pathlib import Path | |
| from dataclasses import dataclass | |
| from time import sleep, perf_counter | |
| from typing import List, Iterator, Optional |
| from dataclasses import dataclass | |
| from pathlib import Path | |
| from typing import Tuple | |
| import cv2 | |
| import numpy as np | |
| @dataclass | |
| class FaceDetection: |
| #!/bin/bash | |
| die(){ | |
| echo "$1" | |
| exit 1 | |
| } | |
| # Function to verify SHA256 hash of a downloaded file. | |
| verify_hash(){ | |
| local expected="$1" |
| #!/bin/bash | |
| if [ "$1" == "insert" ]; then | |
| for cfip in `curl -sw '\n' https://www.cloudflare.com/ips-v{4,6}`; | |
| do | |
| ufw allow proto tcp from $cfip to any port 80,443 comment 'Cloudflare'; | |
| done | |
| echo $0 'Inserted' | |
| elif [ "$1" == "delete" ]; then | |
| while ufw status numbered | grep -q 'Cloudflare'; |
| #!/bin/bash | |
| # Convert a MDB file (Access) to SQL | |
| # Needs mdbtools[http://mdbtools.sourceforge.net/] | |
| # run 'aptitude install mdbtools' on Debian/Ubuntu | |
| # Created by Álvaro Justen <https://github.com/turicas> | |
| # License: GPLv2 | |
| mdb=$1 | |
| sql=$2 |