JakeWharton/mkvdts2ac3 — Issue #64: Add progress to Muxing portion
Author: choekstr
Created: 2011-12-23 01:26:35+00:00
State: open
Labels: Feature Request

Using the same technique as ffmpeg to grab just the progress bar I have reworked the Muxing portion to add progress updates in realtime.

Here is the code that needs replacing:

if [ $EXECUTE = 1 ]; then
color YELLOW; echo $"Muxing AC3 Track in:"; color OFF
eval $CMD >/tmp/mkvmerge_output &
PID=$!
while [ -e /proc/$PID ];do
echo -ne "\r$(tail -1 /tmp/mkvmerge_output|grep Progress)" #Display progress from outp
ut
sleep .5
done
checkerror $? $"Merging the AC3 track back into the MKV failed." 1
cleanup /tmp/mkvmerge_output

fi