Moved video concat to function.
All checks were successful
Run test asserts / Test-Asserts (push) Successful in -9s
All checks were successful
Run test asserts / Test-Asserts (push) Successful in -9s
This commit is contained in:
parent
97655c2f1c
commit
f6cb4a1f9b
3 changed files with 11 additions and 9 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue