From patchwork Fri May 11 17:03:42 2007 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Harald Milz X-Patchwork-Id: 12461 Received: from colin.muc.de ([193.149.48.1] helo=mail.muc.de ident=qmailr) by www.linuxtv.org with esmtp (Exim 4.50) id 1HmYxs-0003E1-Lr for vdr@linuxtv.org; Fri, 11 May 2007 19:31:36 +0200 Received: (qmail 7518 invoked by uid 66); 11 May 2007 17:31:35 -0000 Received: from seneca by colin2.muc.de with UUCP; Fri May 11 17:31:35 2007 -0000 Received: by seneca.muc.de (Postfix, from userid 2425) id 0BC8A100EAD; Fri, 11 May 2007 17:03:43 +0000 (UTC) Date: Fri, 11 May 2007 19:03:42 +0200 From: Harald Milz To: VDR Mailing List Message-ID: <20070511170342.GA32257@seneca.muc.de> Mime-Version: 1.0 Content-Disposition: inline X-PGP-Key: http://www.muc.de/~hm/hm.asc X-PGP-KeyID: CFEADB67 X-Nospam: Sending UCE and Spam is _strongly_ discouraged. User-Agent: Mutt/1.5.9i Subject: [vdr] Q: dvd-plugin and softdevice X-BeenThere: vdr@linuxtv.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: VDR Mailing List List-Id: VDR Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 11 May 2007 17:31:36 -0000 Status: O X-Status: X-Keywords: X-UID: 12867 Hi, I would like to use the dvd plugin (CVS as of today) together with softdevice-0.4.0. Plays DVDs fine but no sound. In the plugin's source code there's in player-dvd.c: BitStreamOutActive = false; HasBitStreamOut = (cPluginManager::GetPlugin("bitstreamout") != NULL); SoftDeviceOutActive = false; HasSoftDeviceOut = (cPluginManager::GetPlugin("xine") != NULL); Shouldn't the plugin also check for softdevice? player-dvd.h says static bool SoftDeviceOutActive; // currently used to switch for xine static bool HasSoftDeviceOut; // currently used to switch for xine Hmmm - However - this patch leads to May 11 18:52:00 linvdr vdr: [3894] dvd-plugin: SoftDeviceOutActive=1, HasSoftDeviceOut=1 but still no sound, but a whole lot of May 11 18:52:20 linvdr vdr: [3894] ERROR: dvd-plugin iframeassembler full 524772 May 11 18:52:20 linvdr vdr: [3982] [softdevice-audio] samplerate: 22050Hz, channels: #2 May 11 18:52:20 linvdr vdr: [3982] [softdevice-audio] Device 'spdif-48', Samplerate 22050 Channels 2 May 11 18:52:20 linvdr vdr: [3982] [softdevice-audio] Period size 1152 Buffer size 6915 May 11 18:52:20 linvdr vdr: [3982] [softdevice-audio] Hardware initialized May 11 18:52:20 linvdr vdr: [3982] [softdevice-audio] samplerate: 48000Hz, channels: #2 May 11 18:52:20 linvdr vdr: [3982] [softdevice-audio] Device 'spdif-48', Samplerate 48000 Channels 2 May 11 18:52:20 linvdr vdr: [3982] [softdevice-audio] Period size 1152 Buffer size 9216 May 11 18:52:20 linvdr vdr: [3982] [softdevice-audio] Hardware initialized spdif-48 is a plug that resamples everything to 48 kHz: pcm.spdif-48 { type plug slave.pcm "spdif" slave.rate 48000 } Seems softdevice-audio doesn't get any useful data from dvd: [mp2 @ 0xb79e7148]header missing skiping one byte and libdvdnav: Using dvdnav version 0.1.10 from http://dvd.sf.net libdvdnav: DVD Title: VDRCONVERT_11-05-2007 libdvdnav: DVD Serial Number: 464496BE00000000 libdvdnav: DVD Title (Alternative): libdvdnav: Unable to find map file '//.dvdnav/VDRCONVERT_11-05-2007.map' libdvdnav: DVD disk reports itself with Region mask 0x00000000. Regions: 1 2 3 4 5 6 7 8 libdvdnav: Language 'de' not found, using 'en' instead libdvdnav: Menu Languages available: en libdvdnav: Language 'de' not found, using 'en' instead libdvdnav: Menu Languages available: en libdvdnav: Language 'de' not found, using 'en' instead libdvdnav: Menu Languages available: en libdvdnav: Language 'de' not found, using 'en' instead libdvdnav: Menu Languages available: en libdvdnav: Language 'de' not found, using 'en' instead libdvdnav: Menu Languages available: en libdvdnav: Language 'de' not found, using 'en' instead libdvdnav: Menu Languages available: en [mpegdecoder] Error! Codec 86020 not supported by libavcodec [mpegdecoder] Error! Codec 86020 not supported by libavcodec The DVD was created using vdrconvert-CVS and plays fine on my standalone DVD player, so no region code and the generic name. Is that vdrconvert's error? ??? --- player-dvd.c.ORIG 2006-04-09 20:35:53.000000000 +0200 +++ player-dvd.c 2007-05-11 18:50:22.871312099 +0200 @@ -577,7 +577,8 @@ HasBitStreamOut = (cPluginManager::GetPlugin("bitstreamout") != NULL); SoftDeviceOutActive = false; - HasSoftDeviceOut = (cPluginManager::GetPlugin("xine") != NULL); + HasSoftDeviceOut = (cPluginManager::GetPlugin("xine") != NULL) || + (cPluginManager::GetPlugin("softdevice") != NULL); cSetupLine *slBitStreamOutActive = NULL; if(HasBitStreamOut) {