gen2brain / mpeg

MPEG-1 Video decoder, MP2 Audio decoder and MPEG-PS Demuxer in pure Go
MIT License
125 stars 11 forks source link

What if a mpeg file with multiple video streams is provided? #8

Open donmor opened 2 weeks ago

donmor commented 2 weeks ago

There's method NumVideoStreams, which, as referred in the doc, only returns 0 or 1. So will it return 2 if a clip with 2 video streams is provided?

And there's SetAudioStream but no SetVideoStream. Will there be one if multiple video streams is supported?

gen2brain commented 2 weeks ago

Note that there is support only for MPEG-PS (Program Stream) container, not for MPEG-TS (Transport Stream) or multiplexed MPEG-1 stream. TS supports multiple programs whereas PS is usually a single program (video track) and one or more audio tracks.