From patchwork Tue Jul 10 22:43:39 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Jose Alberto Reguero X-Patchwork-Id: 13308 Received: from localhost ([127.0.0.1] helo=www.linuxtv.org) by www.linuxtv.org with esmtp (Exim 4.72) (envelope-from ) id 1SojAB-0007b5-Of; Wed, 11 Jul 2012 00:44:11 +0200 Received: from mail.tu-berlin.de ([130.149.7.33]) by www.linuxtv.org with esmtp (Exim 4.72) (envelope-from ) id 1Soj9m-0007YG-7l for vdr@linuxtv.org; Wed, 11 Jul 2012 00:44:10 +0200 X-tubIT-Incoming-IP: 213.4.138.17 Received: from impaqm1.telefonica.net ([213.4.138.17] helo=telefonica.net) by mail.tu-berlin.de (exim-4.75/mailfrontend-3) with esmtp for id 1Soj9m-0006Cj-D6; Wed, 11 Jul 2012 00:43:46 +0200 Received: from IMPmailhost4.adm.correo ([10.20.102.125]) by IMPaqm1.telefonica.net with bizsmtp id Ym5R1j01a2iL0W23Mmjkgd; Wed, 11 Jul 2012 00:43:44 +0200 Received: from jar7.dominio ([2.137.134.217]) by IMPmailhost4.adm.correo with BIZ IMP id Ymjk1j0034hbiSA1kmjkBn; Wed, 11 Jul 2012 00:43:44 +0200 X-Brightmail-Tracker: AAAAAA== X-original-sender: jareguero@telefonica.net From: Jose Alberto Reguero To: vdr@linuxtv.org Date: Wed, 11 Jul 2012 00:43:39 +0200 Message-ID: <3545862.xoiJqr5IEM@jar7.dominio> User-Agent: KMail/4.8.3 (Linux/3.4.0-1.fc17.x86_64; KDE/4.8.3; x86_64; ; ) References: <4BAA4EBA.4030406@free.fr> <201010032355.41878.jareguero@telefonica.net> MIME-Version: 1.0 X-PMX-Version: 5.6.1.2065439, Antispam-Engine: 2.7.2.376379, Antispam-Data: 2012.7.10.223018 X-PMX-Spam: Gauge=IIIIIIII, Probability=8%, Report=' HTML_00_01 0.05, HTML_00_10 0.05, MIME_TEXT_ONLY_MP_MIXED 0.05, MSGID_ADDED_BY_MTA 0.05, BODYTEXTP_SIZE_3000_LESS 0, BODY_SIZE_2000_2999 0, BODY_SIZE_5000_LESS 0, BODY_SIZE_7000_LESS 0, FROM_NAME_PHRASE 0, WEBMAIL_RCVD 0, WEBMAIL_SOURCE 0, __ANY_URI 0, __BOUNCE_CHALLENGE_SUBJ 0, __BOUNCE_NDR_SUBJ_EXEMPT 0, __CP_URI_IN_BODY 0, __CT 0, __CTE 0, __CTYPE_HAS_BOUNDARY 0, __CTYPE_MULTIPART 0, __CTYPE_MULTIPART_MIXED 0, __HAS_FROM 0, __HAS_MSGID 0, __MIME_TEXT_ONLY 0, __MIME_VERSION 0, __SANE_MSGID 0, __SUBJ_ALPHA_END 0, __TO_MALFORMED_2 0, __TO_NO_NAME 0, __URI_NS , __USER_AGENT 0' X-LSpam-Score: -1.8 (-) X-LSpam-Report: No, score=-1.8 required=5.0 tests=BAYES_00=-1.9, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RDNS_NONE=0.793 autolearn=no Subject: Re: [vdr] vdr xine-lib eac3 X-BeenThere: vdr@linuxtv.org X-Mailman-Version: 2.1.13 Precedence: list Reply-To: VDR Mailing List List-Id: VDR Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: vdr-bounces@linuxtv.org Errors-To: vdr-bounces@linuxtv.org On Martes, 10 de julio de 2012 22:53:44 Karim Afifi escribió: > Up please :-) > > Karim > > -----Message d'origine----- > De : vdr-bounces@linuxtv.org [mailto:vdr-bounces@linuxtv.org] De la part de > Karim Afifi > Envoyé : vendredi 18 mai 2012 21:32 > À : 'VDR Mailing List' > Objet : Re: [vdr] vdr xine-lib eac3 > > Hello, > > I am using vdr-1.7.27 and xineliboutput (with xine-lib from january 2012 and > José Alberto's patch). All HD dvb-t french channels are deliver "eac3", but > vdr delivers only stereo pcm on the spdif output (instead of 5.1). > > Is it the normal behaviour, or did I miss something ? > Is there a way to convert eac3 => ac3 for delivering 5.1 stream through the > spdif output ? > > Regards. > Karim > You can try latest vdr and latest xine-lib-1.2 without patches. I use also a patch(attached) for xine-lib-1.2 but perhaps you don't need it. But I don't know if spdif works because decoding eac3 is done via ffmpeg. Jose Alberto > > -----Message d'origine----- > De : vdr-bounces@linuxtv.org [mailto:vdr-bounces@linuxtv.org] De la part de > Jose Alberto Reguero Envoyé : dimanche 3 octobre 2010 23:56 À : VDR Mailing > List Objet : Re: [vdr] vdr xine-lib eac3 > > Attached is a patch to fix xine-lib ts work with eac3. With this patch you > can use xine-ui to play the records. > > Jose Alberto > > El Domingo 03 Octubre 2010, Jose Alberto Reguero escribió: > > Playing with xine-ui and demux ts don't work well. You must play it > > with > > vdr- xine. > > > > Jose Alberto > > _______________________________________________ > 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 diff -r 748c5603d2df src/combined/ffmpeg/ff_audio_decoder.c --- a/src/combined/ffmpeg/ff_audio_decoder.c Wed Feb 29 08:35:12 2012 +0200 +++ b/src/combined/ffmpeg/ff_audio_decoder.c Mon Jun 18 17:17:58 2012 +0200 @@ -448,7 +448,8 @@ /* pad input data */ memset(&this->buf[this->size], 0, FF_INPUT_BUFFER_PADDING_SIZE); - while (this->size>0) { + bytes_consumed = 0; + while (this->size>bytes_consumed) { decode_buffer_size = AVCODEC_MAX_AUDIO_FRAME_SIZE; bytes_consumed = @@ -555,8 +556,8 @@ offset += bytes_consumed; } - /* reset internal accumulation buffer */ - this->size = 0; + if (offset) + memmove(this->buf, &this->buf[offset], this->size); } } }