Visit the LQ Articles and Editorials section
Go Back > Forums > Linux Forums > Linux - Software
User Name
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.


  Search this Thread
Old 08-10-2006, 03:32 AM   #1
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

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


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
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 Im starting this script in a terminal it works fine, but if Im using crontab to start this script my tv card isnt initialized right.

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

Rep: Reputation: 15

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!



Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

All times are GMT -5. The time now is 05:11 PM.

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