tvheadend/tvheadend — pull request #109 by john-tornblom (2012-08-04 23:22:38+00:00)
Title: Multiple output muxers

I've been trying to figure out a way to allow the user to decide in what container the media is to be muxed into.
This PR represents a starting point of that, not be confused with a finished product intended for end users. The reason for me making a pull request is to reach out to developers and advanced users who might like to help me. There is no ETA what so ever, but the more YOU can help improving the code, the faster we can get a reliable solution into the main tree.

At this point, two muxers can be used. The built-in matroska muxer, or a simple pass-through muxer that will dump whatever container the source is in onto a file or a socket.

There is no need to point out the lack of pmt generation for the pass-through muxer, missing UI configuration or incorrect file suffixes. Although bug reports are useful, the main question here is if the approach I'm taking is a good one.

Bets way to test this is by http streaming:
mplayer "http://localhost:9981/stream/channel/ChannelName?mux=pass"
or
mplayer "http://localhost:9981/stream/channel/ChannelName?mux=matroska"

Changing the muxer for file recording should also work but require manual editing in the dvr profile config files or source editing.

And no, vlc nor any other pmt dependent media player works with mpegts pass-through at this point.