[MPlayer-dev-eng] [PATCH] Default to the first found ES in MPEG TS

Reimar Döffinger Reimar.Doeffinger at gmx.de
Mon Aug 2 12:56:30 CEST 2010


On Mon, Aug 02, 2010 at 12:46:36PM +0200, Nico Sabbi wrote:
> Yue Shi Lai ha scritto:
> > Hi,
> >
> > I found that the logic in libmpdemux/demux_ts.c, which by default 
> > choses the _last_ ES (if no PID is requested, it just loop through and 
> > only the last PID is kept), is very annoying when playing back MPEG TS 
> > with multiple video and audio ES. Usually the last ES tends to be 
> > commentary or picture-in-picture features, and the user is forced to 
> > look through the TS structure every time to get the PID of the 
> > "normal" streams.
> >
> > I am not sure if this behavior occurs with other types of multiplexed 
> > streams, but attached is a simple 3 line patch that fixes this for 
> > MPEG TS. I would be glad for any comments.
> >
> > Best,
> >
> > Yue Shi Lai
> 
> I don't see why this patch should make the stream selection more 
> deterministic: mpeg-ts is and will always be full of channels
> and even with your patch applied the chosen streams will be as random as 
> they currently are.
> 
> 
> If I misunderstood your patch explain, please.
> 
> Anyway there's a key binding to change program, IIRC it's '#'

That's TAB IIRC.
# changes audio.


More information about the MPlayer-dev-eng mailing list