[MPlayer-dev-eng] More File Demuxing Questions

Arpi arpi at thot.banki.hu
Fri Feb 1 09:54:55 CET 2002


Hi,

>  void ds_read_packet(
>    demux_stream_t *ds, stream_t *stream, int len,
>    float pts, off_t pos, int flags);
> 
> First, what flags are possible? Alex, you made an annotation in my FLI
> demuxer telling me to look for possible flags in demuxer.h. I didn't find
> them. What are the possibly flags? Next, how does the pts field work for
afair only flag is keyframe 0x1

> an audio packet? I figured out that the proper value for a video pts is
> current frame / (frames/sec). What does the value mean in the context of
> audio? The current sample position divided by the sample rate?
yes
it's mostly used for interleaved streaming files, they have PTS value
encoded into packet headers.

A'rpi / Astral & ESP-team

--
mailto:arpi at thot.banki.hu
http://esp-team.scene.hu



More information about the MPlayer-dev-eng mailing list