3 раза конкат, 3 раза одно и то же видео, 1 команда запускает всю папку - PullRequest
0 голосов
/ 20 апреля 2020

Я взял пример ниже и мой код хочу, чтобы он был коротким. Спасибо, что уделили мне время 3 раза, 3 раза одно и то же видео, 1 команда запускает всю папку

  ffmpeg -y -f concat -i "a\1.txt" -c copy b/1.mp4
  ffmpeg -y -f concat -i "a\2.txt" -c copy b/2.mp4
  ffmpeg -y -f concat -i "a\3.txt" -c copy b/3.mp4
  ffmpeg -y -f concat -i "a\4.txt" -c copy b/4.mp4
  ffmpeg -y -f concat -i "a\5.txt" -c copy b/5.mp4
  ffmpeg -y -f concat -i "a\6.txt" -c copy b/6.mp4
  ffmpeg -y -f concat -i "a\7.txt" -c copy b/7.mp4
  ffmpeg -y -f concat -i "a\8.txt" -c copy b/8.mp4
  ffmpeg -y -f concat -i "a\9.txt" -c copy b/9.mp4
  ffmpeg -y -f concat -i "a\10.txt" -c copy b/10.mp4
  ffmpeg -y -f concat -i "a\11.txt" -c copy b/11.mp4
  ffmpeg -y -f concat -i "a\12.txt" -c copy b/12.mp4
  ffmpeg -y -f concat -i "a\13.txt" -c copy b/13.mp4
  ffmpeg -y -f concat -i "a\14.txt" -c copy b/14.mp4
  ffmpeg -y -f concat -i "a\15.txt" -c copy b/15.mp4
  ffmpeg -y -f concat -i "a\16.txt" -c copy b/16.mp4
  ffmpeg -y -f concat -i "a\17.txt" -c copy b/17.mp4
  ffmpeg -y -f concat -i "a\18.txt" -c copy b/18.mp4
  ffmpeg -y -f concat -i "a\19.txt" -c copy b/19.mp4
  ffmpeg -y -f concat -i "a\20.txt" -c copy b/20.mp4
  ffmpeg -y -f concat -i "a\21.txt" -c copy b/21.mp4
  ffmpeg -y -f concat -i "a\22.txt" -c copy b/22.mp4
  ffmpeg -y -f concat -i "a\23.txt" -c copy b/23.mp4
  ffmpeg -y -f concat -i "a\24.txt" -c copy b/24.mp4
  ffmpeg -y -f concat -i "a\25.txt" -c copy b/25.mp4
  ffmpeg -y -f concat -i "a\26.txt" -c copy b/26.mp4
  ffmpeg -y -f concat -i "a\27.txt" -c copy b/27.mp4
  ffmpeg -y -f concat -i "a\28.txt" -c copy b/28.mp4
  ffmpeg -y -f concat -i "a\29.txt" -c copy b/29.mp4
  ffmpeg -y -f concat -i "a\30.txt" -c copy b/30.mp4

Файл txt 1 ..... 30

file 1.mp4
file 1.mp4
file 1.mp4

файл txt 2 файл 2.mp4 файл 2.mp4 файл 2.mp4 ........ 30

...