Re: [vdr] streamdev ring buffer problem
On Sat, 10 Feb 2007 16:50:44 +0200 (EET), Teemu Suikki wrote But, if I shutdown the client vdr box, somehow the server doesn't notice that the client has disappeared. Streamdev-server stays active, but obviously the stream doesn't go anywhere so I get tons of ring buffer overflow errors in syslog.. Also vdr cpu usage goes to 100% at this point. I'm just about to track this one down. Check http://www.vdr-developer.org/mantisbt/view.php?id=201 Cheers, Frank ___ vdr mailing list vdr@linuxtv.org http://www.linuxtv.org/cgi-bin/mailman/listinfo/vdr
Re: [vdr] ANNOUCEMENT: xmltv2epg
Rob Davis wrote: Pjotr Kourzanov wrote: Rob Davis wrote: Pjotr Kourzanov wrote: Oops, forgot the scripts;-) Pjotr Kourzanov wrote: Dear all, Having been dissatisfied with performance and features of xmltv2vdr (too slow, no credits/category information in epg.data) I have created a new script (based on AWK), that can be found in the attachment. If you want to try it, put your channels.conf.xmltv in one folder with these two scripts, and then run cat *.xml | ./xmltv2epg epg. My mileage: 54MB XML - 18MB EPG in 44 minuties (xmltv2vdr used to take 9 hours). Looks good, but what does the command line look like? Well, do a cat *.xml | ./xmltv2epg epg if you have many separate xml files. Otherwise, ./xmltv2epg file.xml epg should suffice. Sorry chaps to go back to an old thread.. How would you send epg back into vdr? I know you could just use it directly from vdradmin, but I would like to append the xmltv listings to data already downloaded. Should I just cat epg.data - or do I need to upload it using an svdr command? Nowadays I use this script to upload it to the VDR: #!/bin/sh { echo -ne ${clre:+clre\n} echo quit } | netcat localhost 2001 for x in $@; do { echo $x /dev/stderr echo pute cat $x | ./epgfix echo . echo quit } | netcat localhost 2001 done . epgfix is to truncate the lines to VDR's 10k limit (for some reason, 10240-1 failed for me once, hence -2:-): #!/usr/bin/awk -f {print substr($0,1,10*1024-2)} . run it with clre=1 ./putepg file1 file2 ... to clear VDR's EPG first. Regards, Pjotr. ___ vdr mailing list vdr@linuxtv.org http://www.linuxtv.org/cgi-bin/mailman/listinfo/vdr
[vdr] xmltv2vdr speedup and modification
Hi, I recently worked on xmltv2vdr.pl (version 1.0.6) and checked why it was so slow on my mighty Celeron 233. So I modified it a little to avoid reading all the xmltv file for each channel defined in the channels.conf. The result is good : I can process my 5Mo xmltv file in less than 10 minutes whereas it took at least 1 hour with vanilla 1.0.6 release. I also added support for sub-title in the xmltv file (I think someone already posted about that in the list). I only use it for one week so it can still be buggy. I'll be happy to take care of any bug found. Hope this helps those with old hardware like me. Sebastien xmltv2vdrv5.pl Description: Binary data ___ vdr mailing list vdr@linuxtv.org http://www.linuxtv.org/cgi-bin/mailman/listinfo/vdr
RE: [vdr] xmltv2vdr speedup and modification
wanted outout of . -command, and see if it's status is 250? But now I think code is checking status of c -command? As socket is not read between calls, and there should be data in buffer for c-command. But I cannot be sure as I don't know SVDRP command that well. c 250 foo 250-foo . 354-not ok It could still succeed if from socket buffer 250- is read. Also the 2 substr calls in SVDRPreceive is a bit weird, but I am uncertain if regexp would help that. At least change - to '-'. -- There is a LOT to improve, but if you do these, you Celeron will fly. I hope you'll get to minute scale (or even better). Look with time xmltv2vdr to see how much process time is used for user code and how much for kernel code. And to see if optimizations help. Have fun.. :) Best regards, Jori Ps. complete untested code, there might be some problems as I didn't run this code even once. #!/usr/bin/perl # xmltv2vdr.pl # # Converts data from an xmltv output file to VDR - tested with 1.2.6 # # The TCP SVDRSend and Receive functions have been used from the getskyepg.pl # Plugin for VDR. # # This script requires: - # # The PERL module date::manip (required for xmltv anyway) # # You will also need xmltv installed to get the channel information: # http://sourceforge.net/projects/xmltv # # This software is released under the GNU GPL # # See the README file for copyright information and how to reach the author. # 20070210 / SL / Little optimization to make it work on old hardware, # Added support for sub title. # 20070212 / JH / Perl and logistic optimization # $Id: xmltv2vdr.pl 1.0.6 2004/04/19 20:01:04 psr Exp $ use Getopt::Std; use Time::Local; use Date::Manip; # Instead of using this, for less dependency could use posix mktime # Convert XMLTV time format (MMDDmmss ZZZ) into VDR (secs since epoch) sub xmltime2vdr { my $xmltime=shift; my $skew=shift; if (defined $timecache{$xmltime}-{$skew}) { return $timecache{$xmltime}-{$skew}; } else { $secs = Date::Manip::UnixDate($xmltime, %s) + $skew*60; $timecache{$xmltime}-{$skew} = $secs; return $secs; } } # Send info over SVDRP (thanks to Sky plugin) sub SVDRPsend { my $s = shift; if ($sim == 0) { print SOCK $s\r\n; } else { print $s\r\n; } } # Recv info over SVDRP (thanks to Sky plugin) sub SVDRPreceive { my $expect = shift | 0; if ($sim == 1) { return 0; } my @a = (); while (SOCK) { s/\s*$//; # 'chomp' wouldn't work with \r\n push(@a, $_); if (substr($_, 3, 1) ne -) { my $code = substr($_, 0, 3); die(expected SVDRP code $expect, but received $code) if ($code != $expect); last; } } return @a; } # Process info from XMLTV file / channels.conf and send via SVDRP to VDR sub ReadChannels { open(CHANNELS, $channelsfile) || die cannot open channels.conf file; while ( $chanline=CHANNELS ) { # Split a Chan Line chomp $chanline; ($channel_name, $freq, $param, $source, $srate, $vpid, $apid, $tpid, $ca, $sid, $nid, $tid, $rid, $xmltv_channel_name) = split(/:/, $chanline); if ( $source eq 'T' ) { $epgfreq=substr($freq, 0, 3); } else { $epgfreq=$freq; } if (!$xmltv_channel_name) { if(!$channel_name) { $chanline =~ m/:(.*$)/; if ($verbose == 1 ) { warn(Ignoring header: $1\n); } } else { if ($verbose == 1 ) { warn(Ignoring channel: $channel_name, no xmltv info\n); } } next; } @channels = split ( /,/, $xmltv_channel_name); foreach $myChannel ( @channels ) { $chanName{$myChannel} = $channel_name; # Save the Channel Entry if ($nid0) { $chanId{$myChannel} = C $source-$nid-$tid-$sid $channel_name; } else { $chanId{$myChannel} = C $source-$nid-$epgfreq-$sid $channel_name; } } } close CHANNELS; } sub ProcessEpg { my %chanId; my %chanName; my %chanMissing; $desccount = shift; # Verbosity # Set XML parsing variables $chanevent = 0; $dc = 0; $founddesc=0; $chanCur = ; $nbEventSent = 0; $atLeastOneEpg = 0; # Find XML events foreach $xmlline (@xmllines) { chomp $xmlline; study $xmlline; # measure program performance with and without this if ($xmlline =~ m:;:o) { # run the rest only if ; is found on line, study should help finding ; a lot $line=~s/ und szlig;/ß/go; $line=~s/ und amp;/\/go; $line=~s/ und middot;/·/go; $line=~s/ und eacute;/é/go; $line=~s/ und
[vdr] dvb-ttpci firmware messages in syslog
Hello I found this in my syslog: dvb-ttpci: __av7110_send_fw_cmd(): timeout waiting for COMMAND idle dvb-ttpci: av7110_send_fw_cmd(): av7110_send_fw_cmd error -110 dvb-ttpci: av7110_fw_cmd error -110 What is the reason for this? I am searching what causes my ts-continuity errors while recording with vdr. ? CU Halim ___ vdr mailing list vdr@linuxtv.org http://www.linuxtv.org/cgi-bin/mailman/listinfo/vdr
[vdr] new satellite names in sources.conf
Intelsat has changed satnames and I have changed them in sources.conf This might be interesting for other plugins using satellitenames. Reelchannelscan for example is using these names. I have changed the files for reelchannelscan, you can find it here: http://www.vdr-portal.de/board/thread.php?threadid=60814 http://www.intelsat.com/network/satellite/new-names.asp As of 1 February 2007, Intelsat will change the names of 16 of its 51 satellites. The name change is part of our integration efforts, and is being implemented based in part on consensus feedback and recommendations from our customer community. The changes being implemented are the following Galaxy (G) replaces the Intelsat Americas (IA) brand Intelsat (IS) replaces the PanAmSat brand (PAS) Unique or joint venture satellites, such as SBS-6, Horizons or APR, will retain the same name LocationOld NameNew NameAcronym 129°W IA-7 (Telstar 7)Galaxy 27 G-27 121°W IA-13 (Telstar 13) Galaxy 23 G-23 97°WIA-5 (Telstar 5)Galaxy 25 G-25 93°WIA-6 (Telstar 6)Galaxy 26 G-26 89°WIA-8Galaxy 28 G-28 58°WPAS-9 Intelsat 9 IS-9 45°WPAS-1R Intelsat 1R IS-1R 43°WPAS-3R Intelsat 3R IS-3R PAS-6B Intelsat 6B IS-6B 26°EPAS-5 Intelsat 5 IS-5 (Arabsat 2C)(Arabsat 2C) 45°EPAS-12 Intelsat 12 IS-12 (Europe*Star 1) (Europe*Star 1) 68.5°E PAS-7 Intelsat 7 IS-7 PAS-10 Intelsat 10 IS-10 72°EPAS-4 Intelsat 4 IS-4 166°E PAS-8 Intelsat 8 IS-8 169°E PAS-2 Intelsat 2 IS-2 --- sources.conf.old2007-02-13 02:26:39.0 +0100 +++ sources.conf2007-02-13 02:40:27.0 +0100 @@ -38,7 +38,7 @@ S39EHellas Sat 2 S40EExpress AM1 S42ETurksat 1C/2A -S45EPAS 12 +S45EIntelsat 12 S49EYamal 202 S53EExpress AM 22 S55EInsat 3E Intelsat 702 @@ -48,9 +48,9 @@ S62EIntelsat 902 S64EIntelsat 906 S66EIntelsat 704 -S68.5E PAS 7/10 +S68.5E Intelsat 7/10 S70.5E Eutelsat W5 -S72EPAS 4 +S72EIntelsat 4 # Asia @@ -98,8 +98,8 @@ S160E Optus B1 S162E Superbird B2 S164E Optus A3 -S166E PAS 8 -S169E PAS 2 +S166E Intelsat 8 +S169E Intelsat 2 S172E AMC 23 S180E Intelsat 701 S177W NSS 5 @@ -125,12 +125,12 @@ S34.5W Intelsat 903 S37.5W Telstar 11 AMC 12 S40.5W NSS 806 -S43WPAS 3R/6B -S45WPAS 1R +S43WIntelsat 3R/6B +S45WIntelsat 1R S50WIntelsat 705 S53WIntelsat 707 S55.5W Intelsat 805 -S58WPAS 9 +S58WIntelsat 9 S61WAmazonas # America @@ -151,13 +151,13 @@ S85WAMC 2 S85.1W XM 3 S87WAMC3 -S89WIntelsat Americas 8 +S89WGalaxy 28 S91WGalaxy 11 Nimiq 1 S91.5W DirecTV 2 S92WBrasilsat B4 -S93WIntelsat Americas 6 +S93WGalaxy 26 S95WGalaxy 3C -S97WIntelsat Americas 5 +S97WGalaxy 25 S99WGalaxy 4R S99.2W Spaceway 2 S101W DirecTV 1R/4S/8 AMC4 @@ -168,11 +168,11 @@ S111.1W Anik F2 S113W Solidaridad 2 S119W Echostar 7 DirecTV 7S -S121W Echostar 9 Intelsat Americas 13 +S121W Echostar 9 Galaxy 23 S123W Galaxy 10R S125W Galaxy 14 S127W Galaxy 13/Horizons 1 -S129W Echostar 5 Intelsat Americas 7 +S129W Echostar 5 Galaxy 27 S131W AMC 11 S133W Galaxy15/1R S135W AMC 10 Thilo -- Thilo Wunderlich ___ vdr mailing list vdr@linuxtv.org http://www.linuxtv.org/cgi-bin/mailman/listinfo/vdr
[vdr] pvrinput radio
I've asked this before, last year, but never had a response. How do I configure radio channels in VDR. My channels.conf has: Classic Hits:9:I999C0:C:0:0:300:305:A1:12003:1:1006:0 But I think I'm picking up the wrong device, as I hear no audio. I have a single PVR-150 with ivtv and the following devices: /dev/video0 /dev/video24 /dev/video32 When I do a 'ivtv-radio -f9' I see: aplay -f dat /dev/video24#which works Sowhat should my Parameters be?? C0 - Input 0 C12 - Input 1 C23 - Input 2 C34 - Input 3 C45 - Input 4 C56 - Input 5 C67 - Input 6 C78 - Input 7 C89 - Input 8 C999 - Input 9 Thanks - in advance! ___ vdr mailing list vdr@linuxtv.org http://www.linuxtv.org/cgi-bin/mailman/listinfo/vdr