>>371ですがffmpegは実行中でも入力を受け付けてしまう為にループ中に壊れるようです。 いろいろ教えて頂いたので情報のお礼は情報でお返ししたいと思います。 実行途中の入力受付を防ぐには-h longからでてくる-stdinオプションの項を参照。 >enable or disable interaction on standard input どうすればdisableにできるかは、さらにドキュメント参照。 https://ffmpeg.org/ffmpeg.html >-stdin Enable interaction on standard input. On by default unless standard input is used as an input. To explicitly disable interaction you need to specify -nostdin. Disabling interaction on standard input is useful, for example, if ffmpeg is in the background process group. Roughly the same result can be achieved with ffmpeg ... < /dev/null but it requires a shell.