vdrconvert and /dev/stdout

Message ID 43225BA1.8030007@syphir.sytes.net
State New
Headers

Commit Message

C.Y.M Sept. 10, 2005, 4:05 a.m. UTC
  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 Sept. 29, 2005, 6:21 p.m. UTC | #1
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
  

Patch

--- vdrconvert/vdr2dvd.sh.orig	2005-09-08 21:19:29.000000000 -0700
+++ vdrconvert/vdr2dvd.sh	2005-09-09 20:06:01.000000000 -0700
@@ -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