Skip to content

Instantly share code, notes, and snippets.

@daniel-thompson
Created May 11, 2022 17:48
Show Gist options
  • Save daniel-thompson/d437c1e3ef2d9787d652aa84fa86e1e6 to your computer and use it in GitHub Desktop.
Save daniel-thompson/d437c1e3ef2d9787d652aa84fa86e1e6 to your computer and use it in GitHub Desktop.
Quick 'n dirty GNOME screencast concatenation
cd ~/Videos/Screencasts
# Generate the list of file to be joined. The `sort -n` is a bit paranoid but
# ensures this gist works on directories containing 9.webm and 10.webm !
ls *.webm | sort -n | sed -e "s/^/file '/" -e "s/\$/'/" > mywork.list
# Join everything together and place the output in the parent diectory
# (so that *.webm never matches the spliced file).
ffmpeg -f concat -safe 0 -i mywork.list -c copy mywork.webm
@daniel-thompson
Copy link
Author

The resulting video has been tested in Totem (gStreamer) and by uploading it to youtube: https://youtu.be/QB-nNWCcl3w

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment