Have such script:
#!/bin/bash # $1 -- extension, like *.MP4 # $2 -- output file name ffmpeg -f concat -i <(find . -name '$1' -printf "file '$PWD/%p'\n" | sort) -c copy $2
Trying to concatenate MP4 file, get error:
/dev/fd/63: Invalid data found when processing input
What the problem could be? Using Linux Mint 18, based on Ubuntu 16.04.
P.S. I see the problem is $1 is not substituted in quote - '$1'. Hard coded for now. How to substitute?