A list of useful commands for the ffmpeg command line tool.
Download FFmpeg: https://www.ffmpeg.org/download.html
Full documentation: https://www.ffmpeg.org/ffmpeg.html
| package main | |
| import ( | |
| "fmt" | |
| "os" | |
| "strconv" | |
| "syscall" | |
| "unsafe" | |
| ) |
A list of useful commands for the ffmpeg command line tool.
Download FFmpeg: https://www.ffmpeg.org/download.html
Full documentation: https://www.ffmpeg.org/ffmpeg.html
| BINARY=hello_cargo | |
| run: | |
| # run | |
| @cargo run | |
| linux: | |
| # build for linux | |
| @rm -f ${BINARY} | |
| @cargo build --release --target=x86_64-unknown-linux-musl |
| # set your own path | |
| dir=/data/aria2 | |
| disk-cache=32M | |
| file-allocation=trunc | |
| continue=true | |
| max-concurrent-downloads=10 | |
| max-connection-per-server=16 | |
| min-split-size=10M | |
| split=5 |
| package main | |
| import ( | |
| "bytes" | |
| "crypto/aes" | |
| "crypto/cipher" | |
| "crypto/rand" | |
| "encoding/base64" | |
| "io" | |
| "log" |
| from ..java_class_def import JavaClassDef | |
| from ..java_field_def import JavaFieldDef | |
| from ..java_method_def import java_method_def, JavaMethodDef | |
| from ..classes.string import String | |
| class JSON(metaclass=JavaClassDef, jvm_name='org/json/JSONObject'): | |
| def __init__(self): | |
| pass |
| import logging | |
| import posixpath | |
| import sys | |
| import os.path | |
| from unicorn import * | |
| from unicorn.arm_const import * | |
| from androidemu.emulator import Emulator | |
| import androidemu.utils.debug_utils |
| # https://crackmes.one/crackme/5c268e8333c5d41e58e00654 | |
| import random | |
| available_character = list("ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789") | |
| key_pass = [] | |
| final_charcter = 0 | |
| def generate_character(): | |
| global available_character |
| BUILD_FLAG=-Og -masm=intel -fno-exceptions -fno-asynchronous-unwind-tables -fno-stack-protector | |
| run: build | |
| output/main | |
| build: | |
| gcc ${BUILD_FLAG} -o output/main src/main.c | |
| asm: | |
| gcc ${BUILD_FLAG} -S -o output/main.asm src/main.c |
| #!/bin/sh | |
| # Refer: https://trac.ffmpeg.org/wiki/How%20to%20speed%20up%20/%20slow%20down%20a%20video | |
| ffmpeg -y -i origi.mp4 -filter_complex "[0:v]setpts=2*PTS[v];[0:a]atempo=0.5[a]" -map "[v]" -map "[a]" 0.5.mp4 |