aboutsummaryrefslogtreecommitdiffstats
path: root/multimedia/tovid/files/patch-src__tovid
blob: bb7c53d304fd07cb84d7d5b82e02d1a4ee157bb9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
--- 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