Skip to content

Instantly share code, notes, and snippets.

@thorseraq
Created September 16, 2023 09:55
Show Gist options
  • Select an option

  • Save thorseraq/a6c2787185013e9e6b3d7ebab6a2f41f to your computer and use it in GitHub Desktop.

Select an option

Save thorseraq/a6c2787185013e9e6b3d7ebab6a2f41f to your computer and use it in GitHub Desktop.
video_merger
# 1. first goto video folder
# 2. generate video file(front camera) list of current folder
ls | grep 'front' | awk '{print "file \x27" $0 "\x27"}' > merge.txt
# 3. (optional), edit merge.txt, remove unwanted video files name
# 4. merge videos
ffmpeg -f concat -safe 0 -i merge.txt -c copy output.mp4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment