Separating audio and video from within container

If I have an MKV container, what can I do to either use that as is in a pipeline for some operation, or how can I pull out the audio and video from the container in order to use it within a pipeline?

If it matters, I am just trying to test taking an MKV file and put it to an RTMP sink.

4 responses