Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/output/*/*.mp4
/output/*/*.txt
47 changes: 47 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
# Based on: https://stackoverflow.com/questions/17166739/how-to-display-image-for-particular-time-in-a-video-using-ffmpeg

TARGET=$@
SHELL=/bin/bash

.DEFAULT_GOAL: all

.PHONY: all
all: output/pre-roll/total.mp4

output/pre-roll/total.mp4: \
output/pre-roll-slides/pre-roll.txt
ffmpeg \
-f concat \
-i output/pre-roll-slides/pre-roll.txt \
-y \
-codec copy $(TARGET)

output/pre-roll-slides/pre-roll.txt: \
output/pre-roll-slides/1-intro.mp4 \
output/pre-roll-slides/3-sponsors.mp4
ls output/pre-roll-slides \
| grep -v '.txt' \
| awk '{print "file \x27"$$0"\x27"}' \
> $(TARGET)

output/pre-roll-slides/1-intro.mp4: \
input/pre-roll-slides/1-intro.png
ffmpeg \
-loop 1 \
-f image2 \
-i input/pre-roll-slides/1-intro.png \
-c:v libx264 \
-t 5 \
-y \
$(TARGET)

output/pre-roll-slides/3-sponsors.mp4: \
input/pre-roll-slides/3-sponsors.png
ffmpeg \
-loop 1 \
-f image2 \
-i input/pre-roll-slides/3-sponsors.png \
-c:v libx264 \
-t 5 \
-y \
$(TARGET)
Binary file added input/pre-roll-slides/1-intro.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added input/pre-roll-slides/3-sponsors.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.