Re: eac3 support

Jose Alberto Reguero <[email protected]> Sat, 10 Apr 2010 16:30:49 +0200
Newsgroups gmane.comp.video.xine.user
Message-ID <[email protected]>
El Sábado, 10 de Abril de 2010, zaverel escribió:
> hello
> 
> this is a link to the vdr record in TS format (h264 +eac3)
> 2 mn ~ 103 Mo
> 
> http://dl.free.fr/ew4rJddM8
> 
> and this is for the same record just converted in MKV (h264 +eac3)
> 2 mn ~ 103 Mo
> 
> http://dl.free.fr/tWkHPPCc1
> 
> With TS or MKV only 2.0 audio is good ,
> 5.0 audio is very bad
> 
> 
> see you
> 

To play the vdr sample you also need xine_audio.patch attached.  To downmix 
eac3 to stereo you need ff_audio_decoder.patch

Jose Alberto

> Le 09/04/2010 19:37, Darren Salt a écrit :
> > I demand that zaverel may or may not have written...
> > 
> >> Is xine-lib support all eac3 features or not ?
> > 
> > Don't know. I have nothing with which to test this.
> > 
> >> I'm using vdr and doing record in ts format.
> >> 
> >> 
> >> ffmpeg -i 00001.ts
> >> 
> >> Input #0, mpegts, from '00001.ts':
> >>   Duration: 00:02:10.51, start: 10461.634989, bitrate: 6905 kb/s
> >>   Program 132
> >>   
> >>     Stream #0.0[0x78]: Video: h264, yuv420p, 1440x1080 [PAR 4:3 DAR
> >> 
> >> 16:9], 50 fps, 50 tbr, 90k tbn, 50 tbc
> >> 
> >>     Stream #0.1[0x82](fra): Audio: eac3, 48000 Hz, 5.0, s16, 256 kb/s
> >>     Stream #0.2[0x83](qaa): Audio: eac3, 48000 Hz, stereo, s16, 128 kb/s
> > 
> > [snip]
> > 
> >> Since only mkv eac3 is supported , i convert the ts in mkv.
> > 
> > Patches which add support to the MPEG TS demuxer are welcome...
> > 
> > [snip]
> 
> ---------------------------------------------------------------------------
> --- Download Intel&#174; Parallel Studio Eval
> Try the new software tools for yourself. Speed compiling, find bugs
> proactively, and fine-tune applications for parallel performance.
> See why Intel Parallel Studio got high marks during beta.
> http://p.sf.net/sfu/intel-sw-dev
> _______________________________________________
> xine-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/xine-user

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev

_______________________________________________
xine-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xine-user
xine_audio.patch (text/x-patch, 437 B)
diff -r cb99a1abe986 src/combined/ffmpeg/xine_audio.list
--- a/src/combined/ffmpeg/xine_audio.list	Fri Apr 09 18:55:47 2010 +0200
+++ b/src/combined/ffmpeg/xine_audio.list	Sat Apr 10 16:20:55 2010 +0200
@@ -41,10 +41,10 @@
 AMR_NB			AMR_NB			AMR narrow band
 AMR_WB			AMR_WB			AMR wide band
 EAC3			EAC3			E-AC-3
+A52			AC3			AC3
 
 # disabled codecs (ref. configure.ac)
 !			AAC
-!			AC3
 !			ADPCM_ADX
 !			ADPCM_G726
 !			DSICINAUDIO
ff_audio_decoder.patch (text/x-patch, 590 B)
diff -r cb99a1abe986 src/combined/ffmpeg/ff_audio_decoder.c
--- a/src/combined/ffmpeg/ff_audio_decoder.c	Fri Apr 09 18:55:47 2010 +0200
+++ b/src/combined/ffmpeg/ff_audio_decoder.c	Sat Apr 10 16:23:14 2010 +0200
@@ -219,6 +219,12 @@
 				this->context->extradata_size);
 	      break;
 	    }
+	  case BUF_AUDIO_EAC3:
+	  case BUF_AUDIO_A52:
+	    {
+	      this->context->request_channels = 2;
+	      break;
+	    }
           default:
             xprintf(this->stream->xine, XINE_VERBOSITY_LOG,
                     "ffmpeg_audio_dec: unknown header with buf type 0x%X\n", codec_type);