JakeWharton/mkvdts2ac3 — Issue #69: ffmpeg snags stdin which prevents while loops from continuing
Author: mattster98
Created: 2012-02-24 12:48:48+00:00
State: open

I was trying to use mkvdts2ac3 in a while loop to process all my mkv's that have DTS tracks, and it would always stop after processing one file. I searched around a bit and the cause appears to be that ffmpeg does that "Press [q] to stop encoding" and that somehow breaks the while loop.

The fix, from here: http://ubuntuforums.org/archive/index.php/t-1335037.html
was to add < /dev/null to satisfy the stdin for ffmpeg. However, I can't make that work without eliminating the perl progress tracking for that step. It works great if I change that line to just run a basic ffmpeg command line instead.

Hopefully your bash-fu is stronger than mine and you can make this work, while still keeping the nifty progress tracking you've got.

Thanks for the awesome script!!