Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
donmor opened this issue Aug 25, 2024 · 1 comment
Open

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

donmor opened this issue Aug 25, 2024 · 1 comment

Comments

@donmor
Copy link

donmor commented Aug 25, 2024

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?

@donmor donmor changed the title What if a mpeg file with multiple video tracks is provided? What if a mpeg file with multiple video streams is provided? Aug 25, 2024
@gen2brain
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants