Moved video concat to function.
All checks were successful
Run test asserts / Test-Asserts (push) Successful in -9s

This commit is contained in:
Willem Cazander 2024-06-30 04:34:07 +02:00
parent 97655c2f1c
commit f6cb4a1f9b
3 changed files with 11 additions and 9 deletions

View file

@ -14,6 +14,7 @@ MB_FLIGHT_VIDEO ?= off
MB_FLIGHT_PREFIX ?= msxbuild
MB_FLIGHT_SEPERATOR ?= -
MB_FLIGHT_RECORD_FLAG ?= -doublesize
MB_FLIGHT_VIDEO_NAME ?= flight-video
# OS cmds
ifeq ($(OS),Windows_NT)
@ -68,6 +69,12 @@ define mb_create_dist
@echo === Creating distribution archive.
tar -czf $(1) -C $(2) `ls $(2)`
endef
define mb_create_flight_video
@echo === Indexing flight videos
ls -1tr $(1)/*-omsx/videos/*.avi | awk -F "$(1)/" -v s="file '" -v e="'" '{print s$$2e}' > $(1)/$(MB_FLIGHT_VIDEO_NAME).lst
ffmpeg -v quiet -y -f concat -i $(1)/$(MB_FLIGHT_VIDEO_NAME)lst -c copy $(1)/$(MB_FLIGHT_VIDEO_NAME).avi
@echo === Flight video completed
endef
# Include extra features
include $(PATH_MSXBUILD)/lib/make/mb_sdcc.mk