Menu

#11 Error caused by mplayer -identify reporting decimal length

closed
nobody
None
5
2006-09-14
2006-03-12
Tom Dexter
No

mplayer seems to report a length (in seconds) with
fractions. I'm not sure whether or not it used to, but
it breaks any2dvd at line 381. This change fixes it:

--- any2dvd 2006-01-14 04:21:46.000000000 -0500
+++ any2dvd_FIXED 2006-03-12 10:09:08.000000000 -
0500
@@ -378,7 +378,7 @@
rm -rf $workDir/VTS-$VTS/tmp_cpics/
let chapternum=2
let
CHAPTERPOINT=$CHAPTERPOINT+$CHAPTERTIME_SECS
-if [ "`mplayer -vo dummy -identify "$1" 2>&1 | grep
ID_LENGTH | cut -d= -f2`" -gt 0 ]; then # Check if
muxed audio track is longer than video stream,
otherwise $prefpic will return zero causing hang
+if [ "`mplayer -vo dummy -identify "$1" 2>&1 | grep
ID_LENGTH | cut -d= -f2 | awk -F '.' '{ print $1; }'`"
-gt 0 ]; then # Check if muxed audio track is
longer than video stream, otherwise $prefpic will
return zero causing hang
until [ $CHAPTERPOINT -ge $DURATION_SECS ]; do
mkdir -p $workDir/VTS-$VTS/tmp_cpics/
echo "Creating Titleset $VTS Chapter
$chapternum"

Tom

Discussion

  • Rick

    Rick - 2006-09-14

    Logged In: YES
    user_id=1269204

    Many thanks, fixed in 0.32

     
  • Rick

    Rick - 2006-09-14
    • status: open --> closed
     

Log in to post a comment.