[MPlayer-dev-eng] Search avi with vorbis audio sample

Arpi arpi at thot.banki.hu
Sun Feb 17 02:47:09 CET 2002


Hi,

> > if you implemented demux_ogg, it won't work with current ogg/vorbis audio
> > support as it demuxes things _again_... i think it should be removed...
> > and later use some demuxer loopback to decode ogg-in-avi files
> > (similar to mpeg pes-in-ts)
> 
> Ok I didn't have the time to all explain when I writed this mail. I found tw
> o ways
> of handeling this problem.
> The first I found, is more complexe but the best I think. It's also my first
>  idea, my mind
> seems to don't like too simple solution ;)
> Let's do some (bad) ascii art first : 
> 
> +-------+       VIDEO                                                       
>           +-------+  VIDEO
> |                  |--------------------------------------|                 
>  | ----
> |                  |                                                        
>                               |DEMUXER|
> |    AVI       | OGG/VORBIS+---------+      +---------+       |DEMUXER| VORB
> IS
> |DEMUXER|-----------| DS STREAM |---|OGG DEMUX|---|                  |------
> |                  |                        +---------+      +---------+    
>   +-------+
> +-------+

it's somehow broken :((((
(even with linewrap disabled or watching raw mail source)

> Now some explanations :
...
> 
> Ok I hope all this can be undertanded by somebody ;)

yes, i understood. and i like the idea! implement it!
some hints:
when seeking, you should call seeking function of the sub-demuxers.
call first the video one, then get back its position and seek the audio to
thet position. why? audio sterams are usually seekable to any position,
while video depends on keyframes.

i had similar idea, but i wanted to make a demuxer stream, a stream type
which reads from a second demuxer instead of a real stream.

so: stream -> demuxer1 -> stream -> demuxer2 -> decoders

i need it for mpeg-TS support (mpeg-PS muxed into mpeg-TS format)


A'rpi / Astral & ESP-team

--
Developer of MPlayer, the Movie Player for Linux - http://www.MPlayerHQ.hu



More information about the MPlayer-dev-eng mailing list