Re: [vdr] How to extract HD dvb subtitles (and possibly convert to srt)?

2011-01-08 Thread Luca Olivetti

Al 04/01/11 10:01, En/na Luca Olivetti ha escrit:

En/na Luca Olivetti ha escrit:


Yesterday I noticed that the timing offset is not fixed but depends on
the recording (e.g, with my previous experiments I hardcoded a 4
seconds delay for the bbc channels, while yesterday I needed a 2
minutes delay).
I don't know the cause of this offset (ProjectX or the crappy media
player of my tv) but the problem can be easily solved with Subtitles:


I now know the cause of the offset, but I don't know how to (easily) fix
it: Project-X for some reason (maybe a wrong option I gave?) doesn't
extract the pts from the video stream, so it doesn't synchronize the
subtitles to the video but it simply assumes the time starts with the
first subtitle.
If, e.g., the first subtitle appears 3 minutes into the recording, it
will get a timestamp of 0 seconds so it will show 3 minutes early.

These are the options I'm giving to Project-X (via its ini file):


Ok, I found there's an option to enable hd video demuxing 
(OptionPanel.enableHDDemux), *but* ProjectX crashes with it enabled, so 
I changed the script to use dvbsnoop to obtain the first pts of the 
video track and of the subtitles track, and use the difference as a time 
offset.


BTW: am I the only one needing this and/or wrestling with ProjectX to 
manipulate vdr recordings? I wasn't exactly overwhelmed with the replies...


Bye
--
Luca

___
vdr mailing list
vdr@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/vdr


Re: [vdr] VDR creates 2GB files when using --edit (vdr 1.7.16)

2011-01-08 Thread Udo Richter
Am 03.01.2011 23:34, schrieb Marco Göbenich:
 tried to cut a one file recording per commandline with vdr 1.7.16, but
 it always creates multiple files splitted after 2GB, used also  -c
 /etc/vdr so that vdr knows where to find setup.conf, but it doesen't
 matter.

That's because the editing process is started right on command line
parsing, while the config file is loaded after all parsing is done.

The attached patch is a quick and untested fix, and loads the setup.conf
prior to editing. Make sure you place any -c option before --edit, or it
will not work.

A better approach would be to delay the whole editing until the complete
command line is processed, somewhere short after the setup.conf got
loaded regularly.

Cheers,

Udo
--- vdr.c.bak	2011-01-08 16:09:49.0 +0100
+++ vdr.c	2011-01-08 16:09:55.0 +0100
@@ -282,6 +282,9 @@
 return 2;
 break;
   case 'e' | 0x100:
+if (!ConfigDirectory)
+   ConfigDirectory = DEFAULTCONFDIR;
+Setup.Load(AddDirectory(ConfigDirectory, setup.conf));
 return CutRecording(optarg) ? 0 : 2;
   case 'E': EpgDataFileName = (*optarg != '-' ? optarg : NULL);
 break;
___
vdr mailing list
vdr@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/vdr


Re: [vdr] Problem with osdteletext plugin 0.9.0

2011-01-08 Thread Udo Richter
Am 06.01.2011 15:15, schrieb Michal:
 I'm successfully using osdteletext-0.8.2.cz from
 http://www.cssf.cz/showthread.php?35867-vdr-1.7.10-a-eHD with attached
 patch.

This issue is tracked at vdr-developer.org bug tracking:
http://projects.vdr-developer.org/issues/469

Cheers,

Udo

___
vdr mailing list
vdr@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/vdr


Re: [vdr] VDR creates 2GB files when using --edit (vdr 1.7.16)

2011-01-08 Thread Marco Göbenich

Hi!

I think a better approach would be a second commandline parameter e.g. 
--filesize=10G or to (mis)use the new parameter --edit=10G.


Regards

Marco


Am 08.01.2011 16:18, schrieb Udo Richter:

Am 03.01.2011 23:34, schrieb Marco Göbenich:

tried to cut a one file recording per commandline with vdr 1.7.16, but
it always creates multiple files splitted after 2GB, used also  -c
/etc/vdr so that vdr knows where to find setup.conf, but it doesen't
matter.

That's because the editing process is started right on command line
parsing, while the config file is loaded after all parsing is done.

The attached patch is a quick and untested fix, and loads the setup.conf
prior to editing. Make sure you place any -c option before --edit, or it
will not work.

A better approach would be to delay the whole editing until the complete
command line is processed, somewhere short after the setup.conf got
loaded regularly.

Cheers,

Udo


___
vdr mailing list
vdr@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/vdr


--
Needful GbR  Rheinstraße 60a  Telefon +49 (0) 26 24 / 95 29 301
 56203 Hoehr-Grenzhausen  Telefax +49 (0) 26 24 / 95 29 303
 http://www.needful.deE-Mail  m...@needful.de

___
vdr mailing list
vdr@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/vdr


[vdr] [patch] pin epgsearch plugins compatibility

2011-01-08 Thread jdobry

Hello all,

I found that pin  epgsearch plugins are not compatible if it is 
compiled on 1.7.16 (maybe more versions).


Patch for epgsearch-0.9.25.beta18 is in attachment

Jiri Dobry

diff -rupN epgsearch-0.9.25.beta18/menu_commands.c epgsearch-0.9.25.beta18-1/menu_commands.c
--- epgsearch-0.9.25.beta18/menu_commands.c	2010-09-19 20:01:58.0 +0200
+++ epgsearch-0.9.25.beta18-1/menu_commands.c	2011-01-08 22:42:28.0 +0100
@@ -165,7 +165,7 @@ eOSState cMenuSearchCommands::Record(voi
   }
 #ifdef USE_PINPLUGIN
   aux = ;
-  aux = UpdateAuxValue(aux, protected, timer-FskProtection() ? yes : no);
+  aux = UpdateAuxValue(aux, protected, timer-HasFlags(tfProtected) ? yes : no);
   fullaux = UpdateAuxValue(fullaux, pin-plugin, aux);
 #endif
 
diff -rupN epgsearch-0.9.25.beta18/menu_main.c epgsearch-0.9.25.beta18-1/menu_main.c
--- epgsearch-0.9.25.beta18/menu_main.c	2010-09-19 20:01:58.0 +0200
+++ epgsearch-0.9.25.beta18-1/menu_main.c	2011-01-08 22:42:46.0 +0100
@@ -226,7 +226,7 @@ eOSState cMenuSearchMain::Record(void)
 	 }
 #ifdef USE_PINPLUGIN
   aux = ;
-  aux = UpdateAuxValue(aux, protected, timer-FskProtection() ? yes : no);
+  aux = UpdateAuxValue(aux, protected, timer-HasFlags(tfProtected) ? yes : no);
   fullaux = UpdateAuxValue(fullaux, pin-plugin, aux);
 #endif
 
diff -rupN epgsearch-0.9.25.beta18/menu_myedittimer.c epgsearch-0.9.25.beta18-1/menu_myedittimer.c
--- epgsearch-0.9.25.beta18/menu_myedittimer.c	2010-09-19 20:01:57.0 +0200
+++ epgsearch-0.9.25.beta18-1/menu_myedittimer.c	2011-01-08 22:59:59.0 +0100
@@ -34,6 +34,9 @@ The project's page is at http://winni.vd
 #include menu_deftimercheckmethod.h
 #include timerstatus.h
 #include math.h
+#ifdef USE_PINPLUGIN
+#include ../pin/pin.h
+#endif
 
 const char *cMenuMyEditTimer::CheckModes[3];
 
@@ -63,7 +66,7 @@ cMenuMyEditTimer::cMenuMyEditTimer(cTime
 	strcpy(file, Timer-File());
 	channel = Timer-Channel()-Number();
 #ifdef USE_PINPLUGIN
-fskProtection = Timer-FskProtection();  
+fskProtection = Timer-HasFlags(tfProtected);  
 #endif
 	if (forcechannel)
 	channel = forcechannel-Number();
@@ -125,7 +128,7 @@ void cMenuMyEditTimer::Set()
 Add(new cMenuEditStrItem( tr(Directory), directory, MaxFileName, tr(AllowedChars)));
 Add(new cMenuEditBitItem( trVDR(Active),   flags, tfActive));
 #ifdef USE_PINPLUGIN
-if (cOsd::pinValid) Add(new cMenuEditChanItem(tr(Channel), channel));
+if (PinService::pinValid) Add(new cMenuEditChanItem(tr(Channel), channel));
 else {
   cString buf = cString::sprintf(%s\t%s, tr(Channel), Channels.GetByNumber(channel)-Name());
   Add(new cOsdItem(buf));
@@ -144,7 +147,7 @@ void cMenuMyEditTimer::Set()
 Add(new cMenuEditIntItem( trVDR(Priority), priority, 0, MAXPRIORITY));
 Add(new cMenuEditIntItem( trVDR(Lifetime), lifetime, 0, MAXLIFETIME));
 #ifdef USE_PINPLUGIN
-if (cOsd::pinValid || !fskProtection) Add(new cMenuEditBoolItem(tr(Childlock),fskProtection));
+if (PinService::pinValid || !fskProtection) Add(new cMenuEditBoolItem(tr(Childlock),fskProtection));
 else {
   cString buf = cString::sprintf(%s\t%s, tr(Childlock), fskProtection ? trVDR(yes) : trVDR(no));
   Add(new cOsdItem(buf));
diff -rupN epgsearch-0.9.25.beta18/menu_searchresults.c epgsearch-0.9.25.beta18-1/menu_searchresults.c
--- epgsearch-0.9.25.beta18/menu_searchresults.c	2010-09-19 20:01:56.0 +0200
+++ epgsearch-0.9.25.beta18-1/menu_searchresults.c	2011-01-08 22:44:10.0 +0100
@@ -259,7 +259,7 @@ eOSState cMenuSearchResults::Record(void
 
 #ifdef USE_PINPLUGIN
  aux = ;
- aux = UpdateAuxValue(aux, protected, timer-FskProtection() ? yes : no);
+ aux = UpdateAuxValue(aux, protected, timer-HasFlags(tfProtected) ? yes : no);
  fullaux = UpdateAuxValue(fullaux, pin-plugin, aux);
 #endif
 
diff -rupN epgsearch-0.9.25.beta18/menu_whatson.c epgsearch-0.9.25.beta18-1/menu_whatson.c
--- epgsearch-0.9.25.beta18/menu_whatson.c	2010-11-24 19:14:00.0 +0100
+++ epgsearch-0.9.25.beta18-1/menu_whatson.c	2011-01-08 22:44:01.0 +0100
@@ -580,7 +580,7 @@ eOSState cMenuWhatsOnSearch::Record(void
  }
 #ifdef USE_PINPLUGIN
  aux = ;
- aux = UpdateAuxValue(aux, protected, timer-FskProtection() ? yes : no);
+ aux = UpdateAuxValue(aux, protected, timer-HasFlags(tfProtected) ? yes : no);
  fullaux = UpdateAuxValue(fullaux, pin-plugin, aux);
 #endif
  SetAux(timer, fullaux);
___
vdr mailing list
vdr@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/vdr


Re: [vdr] [patch] pin epgsearch plugins compatibility

2011-01-08 Thread jdobry

Opps! My patch was wrong, here is fixed version
Jiri


Dne 8.1.2011 23:31, jdo...@centrum.cz napsal(a):

Hello all,

I found that pin  epgsearch plugins are not compatible if it is
compiled on 1.7.16 (maybe more versions).

Patch for epgsearch-0.9.25.beta18 is in attachment

Jiri Dobry




diff -rupN epgsearch-0.9.25.beta18/menu_commands.c epgsearch-0.9.25.beta18-1/menu_commands.c
--- epgsearch-0.9.25.beta18/menu_commands.c	2010-09-19 20:01:58.0 +0200
+++ epgsearch-0.9.25.beta18-1/menu_commands.c	2011-01-08 22:42:28.0 +0100
@@ -165,7 +165,7 @@ eOSState cMenuSearchCommands::Record(voi
   }
 #ifdef USE_PINPLUGIN
   aux = ;
-  aux = UpdateAuxValue(aux, protected, timer-FskProtection() ? yes : no);
+  aux = UpdateAuxValue(aux, protected, timer-HasFlags(tfProtected) ? yes : no);
   fullaux = UpdateAuxValue(fullaux, pin-plugin, aux);
 #endif
 
diff -rupN epgsearch-0.9.25.beta18/menu_main.c epgsearch-0.9.25.beta18-1/menu_main.c
--- epgsearch-0.9.25.beta18/menu_main.c	2010-09-19 20:01:58.0 +0200
+++ epgsearch-0.9.25.beta18-1/menu_main.c	2011-01-08 22:42:46.0 +0100
@@ -226,7 +226,7 @@ eOSState cMenuSearchMain::Record(void)
 	 }
 #ifdef USE_PINPLUGIN
   aux = ;
-  aux = UpdateAuxValue(aux, protected, timer-FskProtection() ? yes : no);
+  aux = UpdateAuxValue(aux, protected, timer-HasFlags(tfProtected) ? yes : no);
   fullaux = UpdateAuxValue(fullaux, pin-plugin, aux);
 #endif
 
diff -rupN epgsearch-0.9.25.beta18/menu_myedittimer.c epgsearch-0.9.25.beta18-1/menu_myedittimer.c
--- epgsearch-0.9.25.beta18/menu_myedittimer.c	2010-09-19 20:01:57.0 +0200
+++ epgsearch-0.9.25.beta18-1/menu_myedittimer.c	2011-01-09 00:51:27.0 +0100
@@ -34,6 +34,10 @@ The project's page is at http://winni.vd
 #include menu_deftimercheckmethod.h
 #include timerstatus.h
 #include math.h
+#ifdef USE_PINPLUGIN
+#include vdr/childlock.h
+using namespace PinPatch;
+#endif
 
 const char *cMenuMyEditTimer::CheckModes[3];
 
@@ -63,7 +67,7 @@ cMenuMyEditTimer::cMenuMyEditTimer(cTime
 	strcpy(file, Timer-File());
 	channel = Timer-Channel()-Number();
 #ifdef USE_PINPLUGIN
-fskProtection = Timer-FskProtection();  
+fskProtection = Timer-HasFlags(tfProtected);  
 #endif
 	if (forcechannel)
 	channel = forcechannel-Number();
@@ -125,7 +129,7 @@ void cMenuMyEditTimer::Set()
 Add(new cMenuEditStrItem( tr(Directory), directory, MaxFileName, tr(AllowedChars)));
 Add(new cMenuEditBitItem( trVDR(Active),   flags, tfActive));
 #ifdef USE_PINPLUGIN
-if (cOsd::pinValid) Add(new cMenuEditChanItem(tr(Channel), channel));
+if (ChildLock::IsUnlocked()) Add(new cMenuEditChanItem(tr(Channel), channel));
 else {
   cString buf = cString::sprintf(%s\t%s, tr(Channel), Channels.GetByNumber(channel)-Name());
   Add(new cOsdItem(buf));
@@ -144,7 +148,7 @@ void cMenuMyEditTimer::Set()
 Add(new cMenuEditIntItem( trVDR(Priority), priority, 0, MAXPRIORITY));
 Add(new cMenuEditIntItem( trVDR(Lifetime), lifetime, 0, MAXLIFETIME));
 #ifdef USE_PINPLUGIN
-if (cOsd::pinValid || !fskProtection) Add(new cMenuEditBoolItem(tr(Childlock),fskProtection));
+if (ChildLock::IsUnlocked() || !fskProtection) Add(new cMenuEditBoolItem(tr(Childlock),fskProtection));
 else {
   cString buf = cString::sprintf(%s\t%s, tr(Childlock), fskProtection ? trVDR(yes) : trVDR(no));
   Add(new cOsdItem(buf));
diff -rupN epgsearch-0.9.25.beta18/menu_searchresults.c epgsearch-0.9.25.beta18-1/menu_searchresults.c
--- epgsearch-0.9.25.beta18/menu_searchresults.c	2010-09-19 20:01:56.0 +0200
+++ epgsearch-0.9.25.beta18-1/menu_searchresults.c	2011-01-08 22:44:10.0 +0100
@@ -259,7 +259,7 @@ eOSState cMenuSearchResults::Record(void
 
 #ifdef USE_PINPLUGIN
  aux = ;
- aux = UpdateAuxValue(aux, protected, timer-FskProtection() ? yes : no);
+ aux = UpdateAuxValue(aux, protected, timer-HasFlags(tfProtected) ? yes : no);
  fullaux = UpdateAuxValue(fullaux, pin-plugin, aux);
 #endif
 
diff -rupN epgsearch-0.9.25.beta18/menu_whatson.c epgsearch-0.9.25.beta18-1/menu_whatson.c
--- epgsearch-0.9.25.beta18/menu_whatson.c	2010-11-24 19:14:00.0 +0100
+++ epgsearch-0.9.25.beta18-1/menu_whatson.c	2011-01-08 22:44:01.0 +0100
@@ -580,7 +580,7 @@ eOSState cMenuWhatsOnSearch::Record(void
  }
 #ifdef USE_PINPLUGIN
  aux = ;
- aux = UpdateAuxValue(aux, protected, timer-FskProtection() ? yes : no);
+ aux = UpdateAuxValue(aux, protected, timer-HasFlags(tfProtected) ? yes : no);
  fullaux = UpdateAuxValue(fullaux, pin-plugin, aux);
 #endif
  SetAux(timer, fullaux);

___
vdr mailing list
vdr@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/vdr