LinuxQuestions.org
Visit Jeremy's Blog.
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 08-10-2006, 03:32 AM   #1
Goofy180173
Member
 
Registered: Nov 2005
Location: Austria
Distribution: Open Suse 10.3
Posts: 32

Rep: Reputation: 15
tv-recording whith transcode and init whith v4lctl is not working with cron


I´m using transcode to record from my tv-card so i have to use v4lctl to switch to the right channel. If I´m not at home i tried to use cron to start record. I´m using this script

#!/bin/sh

TODAY=$( date +%Y%m%d )
NOW=$( date +%H:%M )

#init tv-card
v4lctl -c /dev/video0 setinput television
v4lctl setfreqtab europe-west
v4lctl setnorm PAL-BG
v4lctl setchannel 1
#record
transcode \
-x v4l2=resync_margin=1:resync_interval=250,v4l2 \
-g 720x576 \
-i /dev/video0 \
-p /dev/dsp \
-c 00:40:00 \
-e 32000,16,2 \
-N 0x1 \
-J resample,levels,smartyuv \
-w 4000 \
-y ffmpeg \
-F mjpeg \
-o /home/gottfried/videos/aufnahme-${TODAY}-${NOW}.avi


if I´m starting this script in a terminal it works fine, but if I´m using crontab to start this script my tv card isn´t initialized right.

Is there an other way to init the tv-card?
 
Old 10-13-2006, 12:54 PM   #2
RGummi
Member
 
Registered: Nov 2005
Posts: 90

Rep: Reputation: 15
Hi,

I have made my own script and it works fine. But you should use the "at" command for sheduling. At which user does the cron job run? I use ivtv-tune and give the frequency! I think your cron job runs with root account and it does not know what channel 1 is!

R
 
  


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
HP laserjet 1010 whith Slackware 9.1 zokter Linux - Hardware 0 03-04-2005 09:41 AM
pb whith videocard or screen palamaman Linux - Newbie 4 10-22-2004 04:38 AM
Help whith network manual configuration zokter Slackware 2 11-05-2003 03:22 AM
apt whith LFS monkeymartin Linux From Scratch 1 08-22-2003 04:51 PM
urgent pb whith firwell COBRA88 Linux - Security 1 04-28-2002 07:20 PM

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

All times are GMT -5. The time now is 03:31 PM.

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