b6fd6cb979
website. PR: ports/113105 Submitted by: edwin
13 lines
714 B
Text
13 lines
714 B
Text
--- src/tovid.orig Sun May 27 21:50:36 2007
|
|
+++ src/tovid Sun May 27 21:50:55 2007
|
|
@@ -1930,8 +1930,8 @@
|
|
# ******************************************************************************
|
|
|
|
if ! $FAKE; then
|
|
- AUDIO_SIZE=$(du -c -b "$AUDIO_STREAM" | awk 'END{print $1}')
|
|
- VIDEO_SIZE=$(du -c -b "$VIDEO_STREAM" | awk 'END{print $1}')
|
|
+ AUDIO_SIZE=`ls -ALln "$OUT_PREFIX.$AUD_SUF" | awk '{ sum += $5 } END { print sum }'`
|
|
+ VIDEO_SIZE=`ls -ALln "$OUT_PREFIX.$VID_SUF" | awk '{ sum += $5 } END { print sum }'`
|
|
# Total size of streams so far (in MBytes)
|
|
STREAM_SIZE=$(expr \( $AUDIO_SIZE \+ $VIDEO_SIZE \) \/ 1000000)
|
|
# If it exceeds disc size, add '%d' field to allow mplex to split output
|