LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   crond doesn't like mpeg2enc ? (https://www.linuxquestions.org/questions/linux-software-2/crond-doesnt-like-mpeg2enc-166847/)

discShredder 04-06-2004 09:47 AM

crond doesn't like mpeg2enc ?
 
hi,
i'm using a studio pctv/rave card as a vcr for tv-movies. everything works fine, except of the cron-based recording.
I wrote a little vcr script for recording and converting to a vcd image:
###################################################################
#!/bin/sh
streamer -o $1.yuv -O $1.wav -f 4mpeg -F mono16 -r 25 -s $3 -n pal -i $4 -t $2 > streamer.log 2>&1
toolame -b 224 -p 2 -m s $1.wav $1.mp2 > toolame.log 2>&1
cat $1.yuv | mpeg2enc -f 1 -I 0 -S 800 -B 224 -N -s -o $1.m1v
mplex -v 1 -f 1 -S800 $1.mp2 $1.m1v -o $1.mpg > mplex.log 2>&1
vcdimager $1.mpg > vcdimager.log 2>&1
###################################################################
when i call the script from a shell with

$ vcr testMovie 00:00:10 352x288 Composite1

everything works perfect, but with time-automation via crond the execution stops in the "cat $1.yuv | mpeg2enc..." line. Only a few seconds of the movie get encoded and when I mplex the result the movie freezes after few seconds.
I also tried to pipe it to another shell but with no results :-(
cat takes the first portion of the yuv file, passes it to mpeg2enc and suddenly stops execution (maybe when it tries to grab the next part?).
Is there another way of piping a file to mpeg2enc than cat or is it a crond "problem"?
thanx for your help.


All times are GMT -5. The time now is 02:51 PM.