[Mplayer-cvslog] CVS: main/libmpdemux asfheader.c,1.28,1.29

Arpi arpi at thot.banki.hu
Tue Feb 5 18:06:01 CET 2002


Hi,

> this biggest-bitrate-stream selection is a good idea, but it should be
> optional! The 'preferred' stream is always with-the-lowest-id!
disagree

teh current (i mean old) stream selection was the first-packet.
so teh first audio packet's id was selected as audio id and teh first video
packet's id as video id. it workarounded broken files with many headers but
only 2 streams.

anyway, wa sthis patch tested for this? good samples are the files generated
by asfrecorder.

> I think all this stream id selection should be done commonly in the demuxer
> code, all demuxers should set the available streams (with flags?) and then
> we should select, optionally with this biggest-bitrate or lowest-id method.
> (and other methods are welcomed, i think)
not all files has header for streams

> Note: also we should select lowest-id streams in mpg demuxer too, i've got a
> DVD, with two audio streams, id=128 - movie audio, id=129 director's issue,
> good, but id=129 comes first in the stream, se auto-selection selects it,
> instead selecting the real id=128 stream.
no way to find the lowest id unless demuxing a big enough part of the file
_before_ teh actuall decoding...


A'rpi / Astral & ESP-team

--
"I don't RTFM? Wow. What's the meaning of this? It's new for me."
	-- Martin Baum, a tipical MPlayer user...



More information about the MPlayer-cvslog mailing list