dotfiles

configuration files for shell, text editor, graphical environment, etc.
git clone git://src.adamsgaard.dk/dotfiles
Log | Files | Refs | README | LICENSE Back to index

commit 070ae598862e27f2412475e1306cf1f6ad1718c2
parent a5b47158c0d27036e95af6bf3cf7fb8fe6c6c72f
Author: Anders Damsgaard <anders@adamsgaard.dk>
Date:   Tue, 17 Mar 2020 12:21:28 +0100

Add script to sync audio with video

Diffstat:
A.local/bin/ffmpeg-delay-audio | 14++++++++++++++
1 file changed, 14 insertions(+), 0 deletions(-)

diff --git a/.local/bin/ffmpeg-delay-audio b/.local/bin/ffmpeg-delay-audio @@ -0,0 +1,14 @@ +#!/bin/sh + +encode() { + ffmpeg -y -i "$1" \ + -itsoffset 0.300 \ + -i "$1" \ + -map 0:v -map 1:a \ + -c copy \ + "${1%%.*}_out.${1##*.}" +} + +for f in "$@"; do + encode "$f" +done