Skip to content

Instantly share code, notes, and snippets.

View ImoutoChan's full-sized avatar
💭
keeping my eyes on you

ImoutoChan

💭
keeping my eyes on you
View GitHub Profile
@ImoutoChan
ImoutoChan / ffmpeg commands.ps1
Last active October 14, 2024 07:29
ffmpeg commands
# m3u8 to mp4
ffmpeg -protocol_whitelist file,http,https,tcp,tls -i "input.m3u8" -bsf:a aac_adtstoasc -vcodec copy -c copy -crf 50 "output.mp4"
# mp4 to aac
ffmpeg -i "input.mp4" -vn -acodec copy "output.aac"
# merge audio video
ffmpeg -i video.mp4 -i audio.mp3 -map 0:v -map 1:a -c:v copy -c:a copy output.mp4 -y
@ImoutoChan
ImoutoChan / git-reset-author.sh
Created February 18, 2020 15:21 — forked from bgromov/git-reset-author.sh
Git: reset author for ALL commits
#!/bin/sh
# Credits: http://stackoverflow.com/a/750191
git filter-branch -f --env-filter "
GIT_AUTHOR_NAME='Newname'
GIT_AUTHOR_EMAIL='new@email'
GIT_COMMITTER_NAME='Newname'
GIT_COMMITTER_EMAIL='new@email'
" HEAD
class Program
{
private static readonly int _photoHeightLimit = 1024 * 5 - 120;
private static readonly int _photoWidthLimit = 1024 * 5 - 120;
static void Main(string[] args)
{
for (int i = 0; i < 10; i++)
{
Resize("input.jpg", new Lanczos3Resampler(), "Lanczos3Resampler.jpg");
{
"conditionGroup": {
"operator": "or",
"conditionGroups": [
{
"operator": "and",
"conditionGroups": null,
"conditions":[
{
"operator": "lower",