Streaming a specific video track from a file containing multiple video streams
Posted: 19 Jul 2022 18:21
Hi,
I have a video file that contains two video streams in it. If I go under Tools-> Media Information-> Codec I can see two streams with different IDs listed. Furthermore, If I go to Video->Video Track I can see the two video tracks listed and I can select either one for viewing purposes or show both (another window will pop up). I am trying to have VLC transcode this original video into two different RTSP streams using the command line (each corresponding to a video track/stream from the original file/stream). Currently I transcode the original video file into an RTSP stream using the following command:
Right now, if I open the resulting rtsp stream on another VLC instance I only see one video track. Therefore, the transcoding command is automatically picking the first video track and only transcoding that one. So how can I specific which track to transcode?
Similarly, how can I specify which video track to play using the following command:
Any help is appreciated!!!
Thanks in advance
I have a video file that contains two video streams in it. If I go under Tools-> Media Information-> Codec I can see two streams with different IDs listed. Furthermore, If I go to Video->Video Track I can see the two video tracks listed and I can select either one for viewing purposes or show both (another window will pop up). I am trying to have VLC transcode this original video into two different RTSP streams using the command line (each corresponding to a video track/stream from the original file/stream). Currently I transcode the original video file into an RTSP stream using the following command:
Code: Select all
vlc -q -vvv <File> --sout "#transcode {vcodec=h264,acodec=mpga,ab=128,channels=2,samplerate=44100,scodec=none}:rtp{sdp=rtsp://:8554/test1}"
Similarly, how can I specify which video track to play using the following command:
Code: Select all
vlc -q -vvv testVideo.mpg
Thanks in advance