1 2 3 4 5 6 7 8
use Linux::DVB::DVBT; my $dvb = Linux::DVB::DVBT->new(); my $channel = 'CHANNEL'; $dvb->select_channel( $channel ) ; $dvb->record( $channel, 30 * 60 );
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
use Linux::DVB::DVBT; my $dvb = Linux::DVB::DVBT->new(); my @chan_spec; my @arg = ( 'file=name', 'chan=channel', 'len=5' ); my $error; $error = $dvb->multiplex_parse( \@chan_spec, @arg ); my %options = ( lang => '+eng', out => 'avs', ); $error = $dvb->multiplex_select( \@chan_spec, %options ); my %multiplex_info = $dvb->multiplex_info() ; $dvb->multiplex_record( %multiplex_info ); $dvb->dvb_close();