Play a video with many streams
Posted: 22 May 2012 19:07
Hi,
I'm actually playing a MPEG video in C++ using ffmpeg. However, there is several video stream. Seeing that VLC use ffmpeg, I think somebody may help me here.
In my test video there is 4 videos streams with ids : 0, 16, 33, 49 and no audio stream. But formatContext->streams give me only 2 streams : a video stream with PID 33 and an audio stream with PID 49 whereas there should be 4 videos streams ! It's the same with VLC (in the console we can see the 4 pids but there is only one video stream and one audio stream).I'm sure my video contains 4 videos streams identified by these PID.
I don't find how to get them with ffmpeg lib or ffprobe command.
Here a part of the vlc log :
ts debug:
pid list:ts debug:
- pid[0] seents debug:
- pid[16] seents debug:
- pid[33] seents debug:
- pid[49] seen
How can I get these stream :s
Is somebody have any idea ?
I'm actually playing a MPEG video in C++ using ffmpeg. However, there is several video stream. Seeing that VLC use ffmpeg, I think somebody may help me here.
In my test video there is 4 videos streams with ids : 0, 16, 33, 49 and no audio stream. But formatContext->streams give me only 2 streams : a video stream with PID 33 and an audio stream with PID 49 whereas there should be 4 videos streams ! It's the same with VLC (in the console we can see the 4 pids but there is only one video stream and one audio stream).I'm sure my video contains 4 videos streams identified by these PID.
I don't find how to get them with ffmpeg lib or ffprobe command.
Here a part of the vlc log :
ts debug:
pid list:ts debug:
- pid[0] seents debug:
- pid[16] seents debug:
- pid[33] seents debug:
- pid[49] seen
How can I get these stream :s
Is somebody have any idea ?