Skip to content

Instantly share code, notes, and snippets.

View makinuk's full-sized avatar

Mustafa AKIN makinuk

View GitHub Profile
@makinuk
makinuk / create-vod-hls-gpu.sh
Created June 13, 2023 20:31 — forked from maitrungduc1410/create-vod-hls-gpu.sh
Bash scripts to create VOD HLS stream with ffmpeg using GPU
#!/usr/bin/env bash
START_TIME=$SECONDS
set -e
echo "-----START GENERATING HLS STREAM-----"
# Usage create-vod-hls-gpu.sh SOURCE_FILE [OUTPUT_NAME]
[[ ! "${1}" ]] && echo "Usage: create-vod-hls.sh SOURCE_FILE [OUTPUT_NAME]" && exit 1
# comment/add lines here to control which renditions would be created
renditions=(
diff -ruN ffmpeg-orig/libavcodec/Makefile ffmpeg/libavcodec/Makefile
--- ffmpeg-orig/libavcodec/Makefile 2016-03-04 00:17:21.166198276 +0200
+++ ffmpeg/libavcodec/Makefile 2016-03-04 00:18:17.583433360 +0200
@@ -102,7 +102,7 @@
motion_est.o ratecontrol.o \
mpegvideoencdsp.o
OBJS-$(CONFIG_MSS34DSP) += mss34dsp.o
-OBJS-$(CONFIG_NVENC) += nvenc.o
+OBJS-$(CONFIG_NVENC) += nvenc.o nvenc_ptx.o
OBJS-$(CONFIG_PIXBLOCKDSP) += pixblockdsp.o