Skip to content

Instantly share code, notes, and snippets.

@frozer
frozer / ffmpeg_tip_and_tricks.md
Last active February 5, 2024 01:07
FFMPEG tips&tricks

How can I reduce a video's size with ffmpeg?

ffmpeg -i input.mp4 -vcodec libx265 -crf 28 output.mp4

Note that lower CRF values correspond to higher bitrates, and hence produce higher quality videos.

How Can I Edit a Video File's "Comments" Field?

ffmpeg -i input.mp4 -c copy -metadata title="Your Title" -metadata artist="spaceman" -metadata comment="Comments go here" output.mp4
@frozer
frozer / release.yaml
Last active February 16, 2025 19:16
Github Actions - Push a new release, automated release notes, build artifacts
on:
push:
tags:
- 'v*'
permissions:
contents: write
env:
project_name: PROJECT NAME USED IN RELEASE TITLE
#!/bin/bash
# GitHub Release Asset Downloader
# Simplest way to download the latest artifact from a public GitHub project
# Based on https://github.com/thenets/bash-helpers/blob/main/scripts/github-release-downloader.sh
# How to use:
# 1. Export the GITHUB_TOKEN variable
# 2. Export the following variables or pass them as parameters.
# $ ./github-release-downloader.sh \
# <GITHUB_ORG> \