Re: [vdr] mplayer-plugin can't play h264 .ts file

2007-07-26 Thread Juri Haberland
Igor <[EMAIL PROTECTED]> wrote:
> http://bugzilla.mplayerhq.hu/show_bug.cgi?id=867
> 
> here is answer from MPlayer's developper
> 
> ===
> Huh? Why did you put that in the summary, it doesn't even appear anywhere in
> the output you pasted (and it is irrelevant to the problem anyway).
> MPEG-TS container does not specify the the resolution, since -identify relies
> on container info it can't give you the width and height.
> So I can see no real bug here, you could at most add a feature request to make
> -identify also print the resolution the decoder detects.
> ===
> 
> what do you think about this answer ?

Well, besides the fact, that it is a bit harsh, I must admit I didn't
know that.

By the way: why *are* you trying to play a transport stream with the
vdr/mplayer combination?

Cheers,
Juri

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


Re: [vdr] Announce LoadEPG 0.1.11

2007-07-26 Thread Luca Olivetti

En/na lukkinosat ha escrit:

Hello

On site http://www.kikko77.altervista.org/ in the
section download, is available the new version of
LoadEPG.

History:
2007-07-26: Version 0.1.11
- Fixed for new format epg of Digital+ (S19.2E Spain)


Since vdr 1.5.x changed the numbering of the cards if there are 
softdevices, I changed it to look for the card using the CardIndex 
(patch attached, in case you want to take a look), but it doesn't work 
anyway: it switches to the transponder with the epg, then it switches 
back instantly to the previous one, so it obviously doesn't get any data.
If I change the function cLoadepgOsd::SwitchToEpgChannel (and only that 
function) to use cDevice::PrimaryDevice() to do the switching then 
everything works as expected (well, special characters show up as little 
squares in accents in the epg, but I'll look into that).


Bye
--
Luca
diff --unified --recursive --exclude='*.o' --exclude='*~' loadepg-0.1.11.orig/loadepg.c loadepg-0.1.11/loadepg.c
--- loadepg-0.1.11.orig/loadepg.c	2007-07-26 18:32:05.0 +0200
+++ loadepg-0.1.11/loadepg.c	2007-07-26 19:55:16.36301 +0200
@@ -936,6 +936,10 @@
 Timeout = 0;
 LoadepgConfig.OldUpdateChannels = Setup.UpdateChannels;
 Setup.UpdateChannels = 0;
+EpgDevice=NULL;  
+for (int i=0; iCardIndex()==LoadepgConfig.DeviceNumber -1) 
+EpgDevice=cDevice::GetDevice(i);
 }
 
 cLoadepgOsd::~cLoadepgOsd( void )
@@ -947,7 +951,7 @@
 Setup.UpdateChannels = LoadepgConfig.OldUpdateChannels;
 if( Filter )
 {
-cDevice::GetDevice( LoadepgConfig.DeviceNumber - 1 )->Detach( Filter );
+EpgDevice->Detach( Filter );
 	delete Filter;
 }
 if( Osd )
@@ -967,7 +971,7 @@
 if( SwitchToEpgChannel() )
 	{
 	Filter = new cLoadepgFilter();
-	cDevice::GetDevice( LoadepgConfig.DeviceNumber - 1 )->AttachFilter( Filter );
+	EpgDevice->AttachFilter( Filter );
 	}
 	else
 	{
@@ -1009,6 +1013,7 @@
 
 void cLoadepgOsd::Show( void )
 {
+if ( EpgDevice == NULL) return;
 Osd = cOsdProvider::NewOsd( 160, 88 );
 if( Osd )
 {
@@ -1026,7 +1031,8 @@
 
 bool cLoadepgOsd::SaveOldChannel( void )
 {
-OldChannel = Channels.GetByNumber( cDevice::GetDevice( LoadepgConfig.DeviceNumber - 1 )->CurrentChannel() );
+if (EpgDevice == NULL) return false;
+OldChannel = Channels.GetByNumber( EpgDevice->CurrentChannel() );
 if( OldChannel )
 {
 return true;
@@ -1038,7 +1044,7 @@
 {
 if( OldChannel )
 {
- cDevice::GetDevice( LoadepgConfig.DeviceNumber - 1 )->SwitchChannel( OldChannel, true );
+ EpgDevice->SwitchChannel( OldChannel, true );
 }
 }
 
@@ -1055,9 +1061,9 @@
 *EpgChannel = *OldChannel;
 	sscanf( EpgProviderValue1[MenuItem], "%[^:]:%[^:]:%[^:]:%[^:]:%[^:]", ProviderName, Frequency, Polarization, SourceName, SymbolRate );
 	EpgChannel->cChannel::SetSatTransponderData( cSource::FromString( SourceName ), atoi( Frequency ), Polarization[0], atoi( SymbolRate ), FEC_AUTO );
-	cDevice::GetDevice( LoadepgConfig.DeviceNumber - 1 )->SwitchChannel( EpgChannel, true );
+	EpgDevice->SwitchChannel( EpgChannel, true );
 	usleep( 200 );
-	if( cDevice::GetDevice( LoadepgConfig.DeviceNumber - 1 )->HasLock() )
+	if( EpgDevice->HasLock() )
 	{
 	return true;
 	}
@@ -1071,6 +1077,10 @@
 
 eOSState cLoadepgOsd::ProcessKey( eKeys Key )
 {
+if (EpgDevice == NULL ) {
+  Skins.Message(mtError,tr("Card not available"));
+  return osEnd;
+}
 eOSState state = cOsdObject::ProcessKey( Key );
 StatusKey = 0;
 if( state == osUnknown )
diff --unified --recursive --exclude='*.o' --exclude='*~' loadepg-0.1.11.orig/loadepg.h loadepg-0.1.11/loadepg.h
--- loadepg-0.1.11.orig/loadepg.h	2007-07-26 18:32:23.0 +0200
+++ loadepg-0.1.11/loadepg.h	2007-07-26 19:41:09.43301 +0200
@@ -380,6 +380,7 @@
 	cLoadepgFilter *Filter;
 	cChannel *OldChannel;
 	cChannel *EpgChannel;
+	cDevice *EpgDevice;
 	int Margin;
 	int StatusKey;
 	int Padding;
___
vdr mailing list
vdr@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/vdr


Re: [vdr] mplayer-plugin can't play h264 .ts file

2007-07-26 Thread Igor
http://bugzilla.mplayerhq.hu/show_bug.cgi?id=867

here is answer from MPlayer's developper

===
Huh? Why did you put that in the summary, it doesn't even appear anywhere in
the output you pasted (and it is irrelevant to the problem anyway).
MPEG-TS container does not specify the the resolution, since -identify relies
on container info it can't give you the width and height.
So I can see no real bug here, you could at most add a feature request to make
-identify also print the resolution the decoder detects.
===

what do you think about this answer ?


> Igor <[EMAIL PROTECTED]> wrote:
> > I can't play by mplayer-plugin the h264-video .ts file with standard 
> > definition. But with 
> > command mplayer -vo mpegpes -ao mpegpes -nolirc -msglevel all=5 
> > /data/mplayer/video/1muz.ts
> > everything is ok
> 
> > I don't understand why there's this messages
> > 
> > Jul 12 00:30:01 arvdr logger: *** DEBUG: parsed output for ORIG_X: "0"
> > Jul 12 00:30:02 arvdr logger: *** DEBUG: parsed output for ORIG_Y: "0"
> > 
> > could you anybody help to me ?
> 
> This seems like a limitation of mplayer. The mplayer.sh script tries to
> get some information about the clip through calling mplayer with
> "mplayer -identify". In every case I've seen so far mplayer prints
> the resolution (and other info) about the clip. This output is parsed by
> the mplayer script. In your case - for some unknown reason - mplayer
> doesn't output a valid resolution of the clip. Hence the script fails...
> 
> You should try to run 'mplayer -identify -frames 0 /your/h264-video.ts'
> and look for ID_VIDEO_WIDTH and ID_VIDEO_HEIGHT. If you can't find this
> output or if it is 0, try it once again with '-frames 10'. If this still
> doesn't show the desired output, please take it to the mplayer
> developers at mplayerhq.hu. But if '-frames 10' (or any other value)
> gives you a reasonable output, please report it back to me.
> 
> Cheers,
> Juri
> 

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


[vdr] Announce LoadEPG 0.1.11

2007-07-26 Thread lukkinosat
Hello

On site http://www.kikko77.altervista.org/ in the
section download, is available the new version of
LoadEPG.

History:
2007-07-26: Version 0.1.11
- Fixed for new format epg of Digital+ (S19.2E Spain)

Hello, Luca :-)



  ___ 
L'email della prossima generazione? Puoi averla con la nuova Yahoo! Mail: 
http://it.docs.yahoo.com/nowyoucan.html

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