Re: [vdr] [ANNOUNCE] improved LIRC remote for VDR-1.5.12
Reinhard Nissl a écrit : Dominique Matz schrieb: sound very good, but vdr as root do not :-( do you think it is possible to use this or something else with an non root user? Well, only the LIRC_PRIORITYBOOST option requires root privileges to work. If you don't have root privileges, you'll just get an error logged and the LIRC thread runs without any change in priority -- that's all. See man setpriority for details. An option would be to lower priority of all threads except this one. I guess only relative priority within VDR is important. You can also raise priority in your init scripts (nice=-N), before running VDR. This way every thread will have nice=0 priority, except the LIRC one, which will stay at nice=-N -- NH ___ vdr mailing list vdr@linuxtv.org http://www.linuxtv.org/cgi-bin/mailman/listinfo/vdr
Re: [vdr] [ANNOUNCE] improved LIRC remote for VDR-1.5.12
Nicolas Huillard wrote: Reinhard Nissl a écrit : Dominique Matz schrieb: sound very good, but vdr as root do not :-( do you think it is possible to use this or something else with an non root user? Well, only the LIRC_PRIORITYBOOST option requires root privileges to work. If you don't have root privileges, you'll just get an error logged and the LIRC thread runs without any change in priority -- that's all. See man setpriority for details. An option would be to lower priority of all threads except this one. I guess only relative priority within VDR is important. You can also raise priority in your init scripts (nice=-N), before running VDR. This way every thread will have nice=0 priority, except the LIRC one, which will stay at nice=-N Since the lirc thread doesn't do anything except waiting for input most of the time it should be scheduled quickly anyways. Maybe the useless select timeout destroys that advantage somewhat. Also if multiple lines in the buffer are a problem what about changing the code to consume only one line at a time instead of messing with thread priorities? cu Ludwig -- (o_ Ludwig Nussel //\ V_/_ http://www.suse.de/ SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nuernberg) ___ vdr mailing list vdr@linuxtv.org http://www.linuxtv.org/cgi-bin/mailman/listinfo/vdr
Re: [vdr] Two VDR's on one machine
I have the same problem with 1x dvb-s and 1x dvb-s2. In the mean time I intend to buy a second dvb-S instead of the dvb-S2, but of course I am interested in a solution to have s ans s2 working together Serge -Oorspronkelijk bericht- Van: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Namens Magnus Hörlin Verzonden: woensdag 9 januari 2008 19:58 Aan: VDR Mailing List Onderwerp: [vdr] Two VDR's on one machine I can't get Reinhard's h.264/dvb-s2 patches and multiproto to work when running both dvb-s2 and dvb-t at the same time. Dvb-t works if I don't load the dvb-s modules and dvb-s(2) works if I don't load the dvb-t modules but it doesn't work with both. Instead I'm currently running my dvb-t vdr on my server as usual and another vdr with dvb-s2 on one of my diskless clients. However, recording hd channels over nfs and simulaneously streaming it to my other diskless client overloads my network. Therefore I'm interested to know how hard it would be to modify vdr so I can run one vdr process with, say /dev/dvb/adapter0-3 and a second one on adapter4? Where do I start looking? Is it doable? I tried running a virtual Ubuntu on my Mandriva server and used dvb-t usb sticks on the ubuntu but usb in vmware wasn't stable enough, at least on my attempts. /Magnus H ___ vdr mailing list vdr@linuxtv.org http://www.linuxtv.org/cgi-bin/mailman/listinfo/vdr ___ vdr mailing list vdr@linuxtv.org http://www.linuxtv.org/cgi-bin/mailman/listinfo/vdr
Re: [vdr] MP3/MPlayer plugin HG repository
Hello Stefan, Happy New Year :) On Di, Jan 01, 2008 at 06:55:45 +, Stefan Huelswitt wrote: I would like to announce a HG repository and bugtracking system for the MP3/MPlayer plugin at http://sharesource.org/project/mp3/ At the moment I consider this an experimental feature, as I'm not sure if that's the right way to go. May be you could let me know your opinion. Well in my opinion this feature can be usefull. Thanks for your work on these plugins. Halim ___ vdr mailing list vdr@linuxtv.org http://www.linuxtv.org/cgi-bin/mailman/listinfo/vdr
Re: [vdr] Two VDR's on one machine
On Thu, Jan 10, 2008 at 12:18:16PM +0100, serge pecher wrote: I have the same problem with 1x dvb-s and 1x dvb-s2. In the mean time I intend to buy a second dvb-S instead of the dvb-S2, but of course I am interested in a solution to have s ans s2 working together ??? I use VDR with two DVB-S and one DVB-S2 here without problem... -- Grégoire FAVRE http://gregoire.favre.googlepages.com http://www.gnupg.org http://picasaweb.google.com/Gregoire.Favre ___ vdr mailing list vdr@linuxtv.org http://www.linuxtv.org/cgi-bin/mailman/listinfo/vdr
[vdr] Rotor patch for 1.5.12
Hy. Afther aplyng the patch from you stil cant compile i get the following error: menu.c:304: error: no matching function for call to 'cChannel::SetSatTransponderData(int, int, char, int, fe_code_rate)' ../../..//include/vdr/channels.h:231: note: candidates are: bool cChannel::SetSatTransponderData(int, int, char, int, int, int, int, int) menu.c:316: error: no matching function for call to 'cChannel::SetSatTransponderData(int, int, char, int, fe_code_rate)' ../../..//include/vdr/channels.h:231: note: candidates are: bool cChannel::SetSatTransponderData(int, int, char, int, int, int, int, int) I use vdr-1.5.12 patched with dvb-s2 suppor. It seams in vdr/channels.h at line 231 this function: bool SetSatTransponderData(int Source, int Frequency, char Polarization, int Srate, int CoderateH, int Modulation, int ModulationSystem, int RollOff); it is changed afther patch with function above and in menu.c at line 304 is expecting another function like this: SChannel-cChannel::SetSatTransponderData(RotorPos-R_Code(),Frequenz,Pol,Symbolrate,FEC_AUTO); so i modified this line in menu.c like this: SChannel-cChannel::SetSatTransponderData(RotorPos-R_Code(),Frequenz,Pol,Symbolrate,Symbolrate,Symbolrate,Symbolrate,Symbolrate); it compile but is not working because functios is not ok, i dont know any coding and i think is because of dvb-s2 api. Could somebody telme right functions. Looking for last minute shopping deals? Find them fast with Yahoo! Search. http://tools.search.yahoo.com/newsearch/category.php?category=shopping ___ vdr mailing list vdr@linuxtv.org http://www.linuxtv.org/cgi-bin/mailman/listinfo/vdr
[vdr] BUG: DVB-T and DVB-S[2] do not work with VDR multiproto [Was: Two VDR's on one machine]
This problem keeps coming up over again, but for some reason Reinhard and Manu don't seem to want to talk about it. I do not understand why you can't use DVB-T with DVB-S2 using the multiproto drivers and VDR, but I doubt it can be much of a problem. I started modifying VDR to use the old API calls for DVB-T whilst using the new calls for DVB-S and S2 and I managed to get VDR to tune to the current DVB-T frequency and show the picture, but it would not tune to new frequencies. :-( I too was considering using 2 VDRs on a single system using the -D options but it's very messy. It would be great if someone could look into this for us! ___ vdr mailing list vdr@linuxtv.org http://www.linuxtv.org/cgi-bin/mailman/listinfo/vdr
Re: [vdr] Two VDR's on one machine
Thanks for the info. Could you have a look at http://dvbkivabien2.info/viewtopic.php?f=7t=12943p=121435#p121435 where a gave more explanation about my problem. Its seems that the tuner of the S2-3200 is not detected, but I dont know what to do. Thanks, Serge -Oorspronkelijk bericht- Van: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Namens Gregoire Favre Verzonden: donderdag 10 januari 2008 12:39 Aan: VDR Mailing List Onderwerp: Re: [vdr] Two VDR's on one machine On Thu, Jan 10, 2008 at 12:18:16PM +0100, serge pecher wrote: I have the same problem with 1x dvb-s and 1x dvb-s2. In the mean time I intend to buy a second dvb-S instead of the dvb-S2, but of course I am interested in a solution to have s ans s2 working together ??? I use VDR with two DVB-S and one DVB-S2 here without problem... -- Grégoire FAVRE http://gregoire.favre.googlepages.com http://www.gnupg.org http://picasaweb.google.com/Gregoire.Favre ___ vdr mailing list vdr@linuxtv.org http://www.linuxtv.org/cgi-bin/mailman/listinfo/vdr ___ vdr mailing list vdr@linuxtv.org http://www.linuxtv.org/cgi-bin/mailman/listinfo/vdr
[vdr] firmware problems - /tmp/dvb-ttpci-01.fw
Hello List, I have several problems with the latest available dvb fw. Dvd plugin produces dropouts and asyncs, mp3 plugin skips some seconds at the begining of tracks files etc. Today I downgraded the fw to /tmp/dvb-ttpci-01.fw-2622 form linuxtv.org and the errors don't occour any more. I think this fw has several problems with high bitrates on e. G. German channels like Das erste or ZDF. This was the reason why I am using the latest testfirmware. Is any updated firmware available wich don't has such problems? Thanks Halim -- Halim Sahin E-Mail: halim.sahin (at) t-online.de ___ vdr mailing list vdr@linuxtv.org http://www.linuxtv.org/cgi-bin/mailman/listinfo/vdr
Re: [vdr] Two VDR's on one machine
On Thu, Jan 10, 2008 at 02:29:58PM +0100, serge pecher wrote: Thanks for the info. Could you have a look at http://dvbkivabien2.info/viewtopic.php?f=7t=12943p=121435#p121435 where a gave more explanation about my problem. Its seems that the tuner of the S2-3200 is not detected, but I dont know what to do. Well, it don't seems you have a guest access to read it ? I don't have a S2-3200, but I think the first revision has a problem (that was the main reason not to buy one) the best place to seek for information is vdrportal.de in which there are a few topics about this card. But honestly, if you did a ./scripts/rmmod.pl load from the v4l dir of the http://jusst.de/hg/multiproto it should work out of the box :-) I use this small script in order to update/compil it (p=4000.diff is just a patch to enable support for my card which for an unknow reason isn't included sofar in multiproto). By the way, I have no idea if your card need a firmware or not... mine even if it's a budget one need one. Good luck, -- Grégoire FAVRE http://gregoire.favre.googlepages.com http://www.gnupg.org http://picasaweb.google.com/Gregoire.Favre #!/bin/bash p=4000.diff MAKE='nice -n 4 make -j3' OPTIONS=show update dry-run apply undry-run unapply compile install log exit select opt in $OPTIONS; do if [ $opt = show ]; then vi $p elif [ $opt = update ]; then hg pull -u http://jusst.de/hg/multiproto elif [ $opt = dry-run ]; then patch --dry-run -p1 $p elif [ $opt = apply ]; then patch -p1 $p elif [ $opt = undry-run ]; then patch --dry-run -p1 -R $p elif [ $opt = unapply ]; then patch -p1 -R $p elif [ $opt = compile ]; then cd v4l $MAKE distclean \ $MAKE allmodconfig $MAKE elif [ $opt = install ]; then sudo $MAKE install cd .. elif [ $opt = log ]; then hg log|less elif [ $opt = exit ]; then exit else echo bad option fi done ___ vdr mailing list vdr@linuxtv.org http://www.linuxtv.org/cgi-bin/mailman/listinfo/vdr
Re: [vdr] Two VDR's on one machine
Will try the script this evening Someone told me while looking at my logs on the dvbkivabien site, that the tuner of the S2-3200 was'tn detected. Do you know what I should see in lsmod if it was (what are I looking for ?). If a use a non dvbs2/h264 patched vdr, should the s2-3200 work in only dvb-s mode or am I obliged to use a patched vdr to have any result ? (just looking to have an image for the moment, not that interested in HD for the time being). Thanks, Serge -Oorspronkelijk bericht- Van: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Namens Gregoire Favre Verzonden: donderdag 10 januari 2008 17:44 Aan: VDR Mailing List Onderwerp: Re: [vdr] Two VDR's on one machine On Thu, Jan 10, 2008 at 02:29:58PM +0100, serge pecher wrote: Thanks for the info. Could you have a look at http://dvbkivabien2.info/viewtopic.php?f=7t=12943p=121435#p121435 where a gave more explanation about my problem. Its seems that the tuner of the S2-3200 is not detected, but I dont know what to do. Well, it don't seems you have a guest access to read it ? I don't have a S2-3200, but I think the first revision has a problem (that was the main reason not to buy one) the best place to seek for information is vdrportal.de in which there are a few topics about this card. But honestly, if you did a ./scripts/rmmod.pl load from the v4l dir of the http://jusst.de/hg/multiproto it should work out of the box :-) I use this small script in order to update/compil it (p=4000.diff is just a patch to enable support for my card which for an unknow reason isn't included sofar in multiproto). By the way, I have no idea if your card need a firmware or not... mine even if it's a budget one need one. Good luck, -- Grégoire FAVRE http://gregoire.favre.googlepages.com http://www.gnupg.org http://picasaweb.google.com/Gregoire.Favre ___ vdr mailing list vdr@linuxtv.org http://www.linuxtv.org/cgi-bin/mailman/listinfo/vdr
Re: [vdr] Two VDR's on one machine
Hi, serge pecher schrieb: Could you have a look at http://dvbkivabien2.info/viewtopic.php?f=7t=12943p=121435#p121435 where a gave more explanation about my problem. Its seems that the tuner of the S2-3200 is not detected, but I don’t know what to do. Well, I don't understand French. Try this: cd /path/to/multiproto/tree make unload make load Check the output of dmesg now or have a look at /var/log/messages (other distributions my use a different file). Bye. -- Dipl.-Inform. (FH) Reinhard Nissl mailto:[EMAIL PROTECTED] ___ vdr mailing list vdr@linuxtv.org http://www.linuxtv.org/cgi-bin/mailman/listinfo/vdr
Re: [vdr] Two VDR's on one machine
On Thu, Jan 10, 2008 at 07:33:11PM +0100, serge pecher wrote: Hello, Will try the script this evening You could maybe first start it with unload option to be sure there aren't other modules loaded about DVB, also you have to be sure DVB wasn't compiled in the kernel. The simple script was only to update and compil the modules, use the scripts/rmmod.pl to load / unload the modules. Someone told me while looking at my logs on the dvbkivabien site, that the tuner of the S2-3200 was'tn detected. Do you know what I should see in lsmod if it was (what are I looking for ?). One could also simply use dmesg, like here : dmesg |grep DVB|grep regi which here gives me : DVB: registering new adapter (TT-Budget/WinTV-NOVA-CI PCI) DVB: registering frontend 0 (ST STV0299 DVB-S)... DVB: registering new adapter (cx88[0]) DVB: registering frontend 1 (Conexant CX24116/CX24118)... DVB: registering new adapter (cx88[1]) DVB: registering frontend 2 (Conexant CX24123/CX24109)... So my 3 cards are detected right. If a use a non dvbs2/h264 patched vdr, should the s2-3200 work in only dvb-s mode or am I obliged to use a patched vdr to have any result ? (just looking to have an image for the moment, not that interested in HD for the time being). If you use multiproto driver from just.de then you have to use a patched VDR (it's a guess as I didn't try it with an vanilla VDR). Good luck, -- Grégoire FAVRE http://gregoire.favre.googlepages.com http://www.gnupg.org http://picasaweb.google.com/Gregoire.Favre ___ vdr mailing list vdr@linuxtv.org http://www.linuxtv.org/cgi-bin/mailman/listinfo/vdr
Re: [vdr] Rotor patch for 1.5.12
Hi, lucian orasanu schrieb: it is changed after patch with function above and in menu.c at line 304 is expecting another function like this: SChannel-cChannel::SetSatTransponderData(RotorPos-R_Code(),Frequenz,Pol,Symbolrate,FEC_AUTO); so i modified this line in menu.c like this: SChannel-cChannel::SetSatTransponderData(RotorPos-R_Code(),Frequenz,Pol,Symbolrate,Symbolrate,Symbolrate,Symbolrate,Symbolrate); Try changing it to: SChannel-cChannel::SetSatTransponderData(RotorPos-R_Code(),Frequenz,Pol,Symbolrate,DVBFE_FEC_AUTO,DVBFE_MOD_AUTO,DVBFE_DELSYS_DVBS,DVBFE_ROLLOFF_UNKNOWN); You'll need to apply the attached VDR patch instead of the one included with vdr-rotor. Please keep in mind that I cannot test this patch. The suggested line above will only support DVB-S. For DVB-S2 and H.264 support, a lot more needs to be changed. Bye. -- Dipl.-Inform. (FH) Reinhard Nissl mailto:[EMAIL PROTECTED] --- ../vdr-1.5.12-dvbs2-other/device.h 2007-10-21 11:21:52.0 +0200 +++ device.h 2008-01-10 22:09:12.0 +0100 @@ -23,6 +23,7 @@ #include spu.h #include thread.h #include tools.h +#include linux/dvb/frontend.h #define MAXDEVICES 16 // the maximum number of devices in the system #define MAXPIDHANDLES 64 // the maximum number of different PIDs per device @@ -261,6 +266,7 @@ public: virtual bool HasProgramme(void); /// Returns true if the device is currently showing any programme to /// the user, either through replaying or live. + virtual bool SendDiseqcCmd(dvb_diseqc_master_cmd cmd) {return false;} // PID handle facilities --- ../vdr-1.5.12-dvbs2-other/dvbdevice.c 2008-01-01 22:55:18.0 +0100 +++ dvbdevice.c 2008-01-10 22:13:39.0 +0100 @@ -71,6 +71,7 @@ static int DvbOpen(const char *Name, int class cDvbTuner : public cThread { private: enum eTunerStatus { tsIdle, tsSet, tsTuned, tsLocked }; + bool SendDiseqc; int fd_frontend; int cardIndex; int tuneTimeout; @@ -83,6 +84,7 @@ private: cMutex mutex; cCondVar locked; cCondVar newSet; + dvb_diseqc_master_cmd diseqc_cmd; bool GetFrontendStatus(fe_status_t Status, int TimeoutMs = 0); bool SetFrontend(void); virtual void Action(void); @@ -91,12 +93,14 @@ public: virtual ~cDvbTuner(); bool IsTunedTo(const cChannel *Channel) const; void Set(const cChannel *Channel, bool Tune); + bool SendDiseqcCmd(dvb_diseqc_master_cmd cmd); bool Locked(int TimeoutMs = 0); }; cDvbTuner::cDvbTuner(int Fd_Frontend, int CardIndex, dvbfe_delsys FrontendType) { fd_frontend = Fd_Frontend; + SendDiseqc = false; cardIndex = CardIndex; frontendType = FrontendType; tuneTimeout = 0; @@ -145,6 +149,17 @@ bool cDvbTuner::Locked(int TimeoutMs) return tunerStatus = tsLocked; } +bool cDvbTuner::SendDiseqcCmd(dvb_diseqc_master_cmd cmd) +{ + cMutexLock MutexLock(mutex); + if (!(frontendType (DVBFE_DELSYS_DVBS | DVBFE_DELSYS_DVBS2)) || SendDiseqc) +return false; + diseqc_cmd=cmd; + SendDiseqc=true; + newSet.Broadcast(); + return true; +} + bool cDvbTuner::GetFrontendStatus(fe_status_t Status, int TimeoutMs) { if (TimeoutMs) { @@ -348,6 +363,10 @@ void cDvbTuner::Action(void) if (GetFrontendStatus(NewStatus, 10)) Status = NewStatus; cMutexLock MutexLock(mutex); +if (SendDiseqc) { + CHECK(ioctl(fd_frontend, FE_DISEQC_SEND_MASTER_CMD, diseqc_cmd)); + SendDiseqc=false; + } switch (tunerStatus) { case tsIdle: break; @@ -918,6 +950,11 @@ bool cDvbDevice::HasLock(int TimeoutMs) return dvbTuner ? dvbTuner-Locked(TimeoutMs) : false; } +bool cDvbDevice::SendDiseqcCmd(dvb_diseqc_master_cmd cmd) +{ + return dvbTuner-SendDiseqcCmd(cmd); +} + int cDvbDevice::GetAudioChannelDevice(void) { if (HasDecoder()) { --- ../vdr-1.5.12-dvbs2-other/dvbdevice.h 2008-01-01 22:55:18.0 +0100 +++ dvbdevice.h 2008-01-10 22:09:12.0 +0100 @@ -66,11 +67,13 @@ public: virtual bool SetChannelDevice(const cChannel *Channel, bool LiveView); public: virtual bool HasLock(int TimeoutMs = 0); + virtual bool SendDiseqcCmd(dvb_diseqc_master_cmd cmd); // PID handle facilities ___ vdr mailing list vdr@linuxtv.org http://www.linuxtv.org/cgi-bin/mailman/listinfo/vdr