linux/drivers/media/dvb/dvb-core
Peter Hartley b01cd93789 V4L/DVB (7293): DMX_OUT_TSDEMUX_TAP: record two streams from same mux, resend
Currently (in linux-2.6.24, but linux-dvb hg looks similar), the
dmx_output_t in the dmx_pes_filter_params decides two things: whether
output is sent to demux0 or dvr0 (in dmxdev.c:dvb_dmxdev_ts_callback),
*and* whether to depacketise TS (in dmxdev.c:dvb_dmxdev_filter_start).
As it stands, those two things can't be set independently: output
destined for demux0 is depacketised, output for dvr0 isn't.

This is what you want for capturing multiple audio streams from the same
multiplex simultaneously: open demux0 several times and send
depacketised output there. And capturing a single video stream is fine
not what you want: you want multi-open (so demux0, not dvr0), but you
want the TS nature preserved (because that's what you want on output, as
you're going to re-multiplex it with the audio).

At least one existing solution -- GStreamer -- sends all its streams
simultaneously via dvr0 and demuxes again in userland, but it seems a
bit of a shame to pick out all the PIDs in kernel, stick them back
together in kernel, and send them to userland only to get unpicked
again, when the alternative is such a small API addition.

The attached patch adds a new value for dmx_output_t:
DMX_OUT_TSDEMUX_TAP, which sends TS to the demux0 device. With this
patch and a dvb-usb-dib0700 (and UK Freeview from Sandy Heath), I can
successfully capture an audio/video PID pair into a TS file that mplayer
can play back.

Signed-off-by: Peter Hartley <pdh@utter.chaos.org.uk>
Acked-by: Andreas Oberritter <obi@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2008-04-24 14:07:46 -03:00
..
demux.h V4L/DVB (3413): Typos grab bag of the month 2006-03-08 12:04:24 -03:00
dmxdev.c V4L/DVB (7293): DMX_OUT_TSDEMUX_TAP: record two streams from same mux, resend 2008-04-24 14:07:46 -03:00
dmxdev.h V4L/DVB (5511): Fix 2/3 for bug 7819: demux and dvr 2007-04-27 15:45:31 -03:00
dvb_ca_en50221.c V4L/DVB (6356): "while (!ca->wakeup)" breaks the CAM initialisation 2007-10-22 12:01:50 -02:00
dvb_ca_en50221.h
dvb_demux.c V4L/DVB (6311): dvb: Replace list_for_each+list_entry with list_for_each_entry 2007-10-10 13:34:33 -03:00
dvb_demux.h V4L/DVB (5512): Fix 3/3 for bug 7819: fixed hotplugging for dvbnet 2007-04-27 15:45:32 -03:00
dvb_filter.c V4L/DVB (3218): Whitespace cleanups 2006-01-09 15:25:34 -02:00
dvb_filter.h [PATCH] V4L/DVB: (3086c) Whitespaces cleanups part 3 2005-12-12 08:57:44 -08:00
dvb_frontend.c V4L/DVB (6882): dvb_frontend: release analog demod in dvb_frontend_detach 2008-01-25 19:04:11 -02:00
dvb_frontend.h V4L/DVB (6881): include struct analog_demod_ops directly inside struct dvb_frontend 2008-01-25 19:04:11 -02:00
dvb_math.c V4L/DVB (3996): Make the table static 2006-06-25 02:00:11 -03:00
dvb_math.h V4L/DVB (3988): Add math routines required by DVB demods 2006-06-25 02:00:08 -03:00
dvb_net.c V4L/DVB (7094): static memory 2008-04-24 13:42:20 -03:00
dvb_net.h V4L/DVB (5512): Fix 3/3 for bug 7819: fixed hotplugging for dvbnet 2007-04-27 15:45:32 -03:00
dvb_ringbuffer.c V4L/DVB (6570): core/dvb_ringbuffer.c: remove unused exports 2008-01-25 19:02:03 -02:00
dvb_ringbuffer.h V4L/DVB (3484): Make dvb_ringbuffer compatible to dmxdev_buffer 2006-03-21 08:53:17 -08:00
dvbdev.c V4L/DVB (7140): constify function pointer tables 2008-04-24 14:07:15 -03:00
dvbdev.h V4L/DVB (5510): Fix 1/3 for bug 7819: fixed frontend hotplug issue 2007-04-27 15:45:30 -03:00
Kconfig V4L/DVB (5600): Allow compiling just DVB CORE 2007-05-09 10:12:49 -03:00
Makefile V4L/DVB (4411): Fix minor errors in build files 2006-08-08 15:53:03 -03:00