vdrconvert and /dev/stdout
Commit Message
I just noticed that if the cvs of vdrconvert is unable to write to /dev/stdout,
then dvdauthor fails. Attached is a patch.
Regards,
Comments
C.Y.M wrote:
> I just noticed that if the cvs of vdrconvert is unable to write to /dev/stdout,
> then dvdauthor fails. Attached is a patch.
>
I'm sorry, but I just realized this patch may fix one problem, but it introduces
another. If I process large files in vdr2dvd.sh, the path becomes broken for
submenu and menu m2v files. Perhaps it is best to reverse this.
Best Regards
@@ -2535,7 +2535,8 @@
SILENCE=$DVDSUBSILENCEFILE
fi
- nice -n ${PRIO} $MPLEX -v 0 -f 8 -l $duration -o /dev/stdout ${UniqueDir[Number]}/submenu/submenu-${Page}.m2v $SILENCE >${UniqueDir[Number]}/submenu/submenu-${Page}.mpg || Exit
+# nice -n ${PRIO} $MPLEX -v 0 -f 8 -l $duration -o /dev/stdout ${UniqueDir[Number]}/submenu/submenu-${Page}.m2v $SILENCE >${UniqueDir[Number]}/submenu/submenu-${Page}.mpg || Exit
+ nice -n ${PRIO} $MPLEX -v 0 -f 8 -l $duration -o ${UniqueDir[Number]}/submenu/submenu-${Page}.mpg ${UniqueDir[Number]}/submenu/submenu-${Page}.m2v $SILENCE || Exit
local Page=$[ $Page + 1 ]
done
local Number=$[ $Number + 1 ]
@@ -3180,7 +3181,8 @@
SILENCE=$DVDMAINSILENCEFILE
fi
- nice -n ${PRIO} $MPLEX -v 0 -f 8 -l $duration -o /dev/stdout ${UniqueTempDIR}/mainmenu-${Page}.m2v $SILENCE >${UniqueTempDIR}/mainmenu-${Page}.mpg || ExitError
+# nice -n ${PRIO} $MPLEX -v 0 -f 8 -l $duration -o /dev/stdout ${UniqueTempDIR}/mainmenu-${Page}.m2v $SILENCE >${UniqueTempDIR}/mainmenu-${Page}.mpg || ExitError
+ nice -n ${PRIO} $MPLEX -v 0 -f 8 -l $duration -o ${UniqueTempDIR}/mainmenu-${Page}.mpg ${UniqueTempDIR}/mainmenu-${Page}.m2v $SILENCE || ExitError
local Page=$[ $Page + 1 ]
done