Recording DVB-T HD infrance

Message ID 201003230224.26177.jareguero@telefonica.net
State New
Headers

Commit Message

Jose Alberto Reguero March 23, 2010, 1:24 a.m. UTC
  El Miércoles, 17 de Marzo de 2010, Eric Valette escribió:
> >> Still wonder why such a one liner patch is not integrated though.
> > 
> > That forum is in French and apparently requires registration.
> > 
> > Can you post that "one-liner" here?
> 
> I just translate the instruction, into english (could do german too ;-))
> Could do a diff but for one trivial line no need for it.
> 
> Just add the following line in pat.c
> 
> case SI::AC3DescriptorTag:
> + case SI::EnhancedAC3DescriptorTag:
> dpid = stream.getPid();
> 
> 
> 
> I think for streamdev the same patch is required in
> livestreamer.c
> 
> case SI::AC3DescriptorTag:
> + case SI::EnhancedAC3DescriptorTag:
> Dprintf("cStreamdevPatFilter PMT scanner: adding PID %d (%s) %s\n",
> 
> -- eric
> 
> 
> 

I make a patch to use ffmpeg eac3 with xine. The patch is for the latest xine-
lib-1.2 hg. If you use xineliboutput you also need the second  patch attached.

Jose Alberto
  

Patch

Index: tools/ts.c
===================================================================
RCS file: /cvsroot/xineliboutput/vdr-xineliboutput/tools/ts.c,v
retrieving revision 1.21
diff -r1.21 ts.c
383c383
<           if ((stream[i] == STREAM_DESCR_AC3) && (pmt->audio_tracks_count < TS_MAX_AUDIO_TRACKS)) {
---
>           if (((stream[i] == STREAM_DESCR_AC3) || (stream[i] == STREAM_DESCR_EAC3))  && (pmt->audio_tracks_count < TS_MAX_AUDIO_TRACKS)) {
387c387,390
<               pmt->audio_tracks[pmt->audio_tracks_count].type = STREAM_AUDIO_AC3;
---
>               if (stream[i] == STREAM_DESCR_AC3)
>                 pmt->audio_tracks[pmt->audio_tracks_count].type = STREAM_AUDIO_AC3;
>               else
>                 pmt->audio_tracks[pmt->audio_tracks_count].type = STREAM_AUDIO_EAC3;
Index: tools/ts.h
===================================================================
RCS file: /cvsroot/xineliboutput/vdr-xineliboutput/tools/ts.h,v
retrieving revision 1.13
diff -r1.13 ts.h
78a79
>   STREAM_AUDIO_EAC3      = 0x84,
83a85
> #define STREAM_DESCR_EAC3   0x7a