Skip to content

Instantly share code, notes, and snippets.

View ocdude's full-sized avatar

Cristian Alvarado ocdude

View GitHub Profile
ffmpeg -f lavfi -i sine=frequency=1000:duration=5 -f lavfi -i sine=frequency=1000:duration=5 -filter_complex "[0:a][1:a]amerge=inputs=2[aout]" -map "[aout]" output.wav
#!/bin/bash
# This script is for encoding videos in 1080p60 for YouTube using YouTube's recommendations
# Optionally allows for usage of nvenc instead of libx264
# Usage: yt-1080p60.sh INFILE OUTFILE [nvenc]
INFILE="$1"
OUTFILE="$2"
ENCODER="$3"
@ocdude
ocdude / install-ffmpeg.sh
Last active July 5, 2019 20:25
ffmpeg configure parameters
#!/bin/bash
# This script will download all of the appropriate and necessary components required to
# install FFMPEG on Ubuntu 14.04 and above. This uses checkinstall instead of the normal
# make install to generate a .deb so ffmpeg and the x265 library can be managed by the package manager.
# When passed the nvenc parameter, it will attempt to compile ffmpeg with the nvenc and nvenc_h265 encoders which use
# nvidia GPUs for encoding rather than CPU. Check https://developer.nvidia.com/nvidia-video-codec-sdk for more information.
set -e