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:
(() => { | |
if ("externalAPI" in window && "mediaSession" in navigator) { | |
const ARTWORK_SIZES = ["200x200", "300x300", "400x400"]; | |
// обновление состояния проигрывания | |
function setPlaybackState() { | |
navigator.mediaSession.playbackState = externalAPI.isPlaying() ? "playing" : "paused"; | |
} | |
// создание метадаты для отображения в мини-плеере OS |
(cors) { | |
@cors_preflight{args.0} method OPTIONS | |
@cors{args.0} header Origin {args.0} | |
handle @cors_preflight{args.0} { | |
header { | |
Access-Control-Allow-Origin "{args.0}" | |
Access-Control-Allow-Methods "GET, POST, PUT, PATCH, DELETE, OPTIONS" | |
Access-Control-Allow-Headers * | |
Access-Control-Max-Age "3600" |
const defaultValueHandler = { | |
get: (obj, property) => | |
property in obj ? obj[property] : 'general kenobi' | |
} | |
const objectWithDefaultValue = new Proxy({}, defaultValueHandler); | |
objectWithDefaultValue.a = 'b'; | |
console.log(objectWithDefaultValue.a); // b |
const { Database } = require("sqlite3"); | |
const callback = (res, rej) => (err, val) => err ? rej(err) : res(val); | |
const sleep = (ms) => new Promise((resolve) => setTimeout(resolve, ms)); | |
const createTable = (name) => ` | |
CREATE TABLE IF NOT EXISTS ${name} ( | |
id INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT, | |
at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP, | |
priority INTEGER NOT NULL, |
export CUDA_HOME=/usr/local/cuda | |
export PATH=/usr/local/cuda/bin:$PATH | |
export CPATH=/usr/local/cuda/include:$CPATH | |
export LIBRARY_PATH=/usr/local/cuda/lib64:$LIBRARY_PATH | |
export LD_LIBRARY_PATH=/usr/local/cuda/lib64:/usr/local/cuda/extras/CUPTI/lib64:$LD_LIBRARY_PATH |
# Stop all containers | |
docker stop `docker ps -qa` | |
# Remove all containers | |
docker rm `docker ps -qa` | |
# Remove all images | |
docker rmi -f `docker images -qa ` | |
# Remove all volumes |
/* | |
* ------------------------------------------------------------ | |
* "THE BEERWARE LICENSE" (Revision 42): | |
* <author> wrote this code. As long as you retain this | |
* notice, you can do whatever you want with this stuff. If we | |
* meet someday, and you think this stuff is worth it, you can | |
* buy me a beer in return. | |
* ------------------------------------------------------------ | |
*/ |