Minimal example: transcode from MP3 to WMA:
ffmpeg -i input.mp3 output.wma
You can get the list of supported formats with:
ffmpeg -formats
You can get the list of installed codecs with:
import requests | |
from cryptography.hazmat.primitives.serialization.pkcs12 import load_key_and_certificates | |
from cryptography.hazmat.primitives.serialization import Encoding, PrivateFormat, NoEncryption | |
from cryptography.hazmat.backends import default_backend | |
from requests_toolbelt.adapters.x509 import X509Adapter | |
backend = default_backend() | |
with open('test_cert.p12', 'rb') as pkcs12_file: | |
pkcs12_data = pkcs12_file.read() |
#!/usr/bin/env python3 | |
# This is written for OSX, python3, and the current (2018-12-04) version of the Notion app | |
# It writes incomplete todo items, found in Notion's localStorage, to a "todo.html" file, | |
# with links back to the Notion app | |
import os | |
import sqlite3 | |
import json | |
from html import escape |
#!/usr/bin/env bash | |
# Use this one-liner to produce a JSON literal from the Git log: | |
git log \ | |
--pretty=format:'{%n "commit": "%H",%n "author": "%aN <%aE>",%n "date": "%ad",%n "message": "%f"%n},' \ | |
$@ | \ | |
perl -pe 'BEGIN{print "["}; END{print "]\n"}' | \ | |
perl -pe 's/},]/}]/' |