Skip to content

Instantly share code, notes, and snippets.

@aferriss
Last active March 7, 2016 23:18
Show Gist options
  • Save aferriss/269416cdb9bc2d2cb711 to your computer and use it in GitHub Desktop.
Save aferriss/269416cdb9bc2d2cb711 to your computer and use it in GitHub Desktop.
ffmpeg pipes for render without saving
#I think it might be possible to do this all in a single shell by using single ampersand (&) at end of each command
#make two pipes
mkfifo /tmp/pipe1 /tmp/pipe2
#send input1 to pipe1
ffmpeg -y -i input1.mp4 -c copy -f nut /tmp/pipe1
#open a new shell window/tab
#send input2 to pipe2
ffmpeg -y -i input2.mp4 -c copy -f nut /tmp/pipe2
#open a new shell window/tab
#combine pipes into single file
ffmpeg -y -i /tmp/pipe1 -i /tmp/pipe2 -filter_complex concat=n=2:v=1 both.mov
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment