LinuxQuestions.org
Visit Jeremy's Blog.
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, 04: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


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

#!/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 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, 01: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


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


All times are GMT -5. The time now is 10:37 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration