gpt-3.5-turbo-0301· openai
Suzhen/CodeChat
print " " separated list of files in current dir in terminal
- User
print "|" separated list of files in current dir in terminal
- Assistant
ls | xargs echo
- User
print list of files in current dir in terminal separated with | symbol
- Assistant
ls | tr '\n' '|'
- User
make the same command with not certain files listed in command, but with all files in current folder ffmpeg -i “concat:0.ts|1.ts|2.ts|3.ts|5.ts|6.ts|7.ts|8.ts” -c copy output.mp4
- Assistant
You can use the following command to concatenate all .ts files in the current folder using ffmpeg:
codeffmpeg -i "concat:$(printf '%s|' *.ts)" -c copy output.mp4This will create a string of file names separated by the pipe symbol (|) using the printf command, and then pass that string to the concat demuxer in the input file parameter of the ffmpeg command.