LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-06-2004, 09:47 AM   #1
discShredder
LQ Newbie
 
Registered: Feb 2004
Posts: 3

Rep: Reputation: 0
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Help with crond and auditd pfaendtner Linux - Software 4 04-25-2005 10:41 AM
crond problem branden_burger Linux - General 3 03-25-2005 05:03 PM
crond not running praveenv Linux - Newbie 6 08-31-2004 08:03 AM
Crond jimval7 Linux - General 2 03-06-2002 11:28 AM
Shutting up Crond mikeyt_333 Linux - General 9 12-03-2001 12:46 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:37 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration