demux(3)
π NAME π
demux β Digital TV demux β¨
it's giving "the thing that pulls streams apart so you can actually watch them" π
π¦ SYNOPSIS π¦
πΈ Files πΈ
file dvb-demux.hβ Provides interfaces to deal with DVB demux. π«Ά
π Functions π
int dvb_dmx_open (int adapter, int demux)β Opens a DVB demux in read/write mode.void dvb_dmx_close (int dmx_fd)β Stops the DMX filter for the file descriptor and closes.void dvb_dmx_stop (int dmx_fd)β Stops the DMX filter for a given file descriptor.int dvb_set_pesfilter (int dmxfd, int pid, dmx_pes_type_t type, dmx_output_t output, int buffersize)β Start a filter for a MPEG-TS Packetized Elementary Stream (PES)int dvb_set_section_filter (int dmxfd, int pid, unsigned filtsize, unsigned char *filter, unsigned char *mask, unsigned char *mode, unsigned int flags)β Sets a MPEG-TS section filter.int dvb_get_pmt_pid (int dmxfd, int sid)β read the contents of the MPEG-TS PAT table, seeking for an specific service ID
π Detailed Description π
okay so bestie. the original page leaves this section completely empty. nothing. not a crumb. it's giving ghosted π so we're moving right along, no notes, periodt.
π₯ Function Documentation π₯
void dvb_dmx_close (int dmx_fd)
Stops the DMX filter for the file descriptor and closes. π
Parameters
- dmx_fd β File descriptor to close
This is a wrapper function to close().
β οΈ Warning: Deprecated. Please use dvb_dev_close() instead. (she's retired, love her, but retired π)
int dvb_dmx_open (int adapter, int demux)
Opens a DVB demux in read/write mode. β¨
Parameters
- adapter β DVB adapter number to open
- demux β DVB demux number to open
This is a wrapper function to open(). File is always opened in blocking mode.
Returns
Returns a file descriptor on success, -1 otherwise.
β οΈ Warning: Deprecated. Please use dvb_dev_open() instead. π
void dvb_dmx_stop (int dmx_fd)
Stops the DMX filter for a given file descriptor. π
Parameters
- dmx_fd β File descriptor to close
This is a wrapper function to DMX_STOP ioctl. See http://linuxtv.org/downloads/v4l-dvb-apis/dvb_demux.html for more details. (iykyk, the docs live there π)
β οΈ Warning: Deprecated. Please use dvb_dev_dmx_stop() instead.
int dvb_get_pmt_pid (int dmxfd, int sid)
read the contents of the MPEG-TS PAT table, seeking for an specific service ID π
Parameters
- dmxfd β File descriptor for the demux device
- sid β Session ID to seeking
β οΈ Warning: Deprecated. Please use dvb_get_pmt_pid() instead.
(not her telling you to use herself instead of her. main character energy honestly π that's exactly what the source says, we don't make the rules)
Returns
At return, it returns a negative value if error or the PID associated with the desired Session ID.
β οΈ Warning: This function currently assumes that the PAT fits into one session. bestie, if your PAT is thicc and needs more than one session, this is not the function for you π
int dvb_set_pesfilter (int dmxfd, int pid, dmx_pes_type_t type, dmx_output_t output, int buffersize)
Start a filter for a MPEG-TS Packetized Elementary Stream (PES) π
Parameters
- dmxfd β File descriptor for the demux device
- pid β Program ID to filter. Use
0x2000to select all PIDs - type β type of the PID (
DMX_PES_VIDEO,DMX_PES_AUDIO,DMX_PES_OTHER, etc). - output β Where the data will be output (
DMX_OUT_TS_TAP,DMX_OUT_DECODER, etc). - buffersize β Size of the buffer to be allocated to store the filtered data.
This is a wrapper function for DMX_SET_PES_FILTER ioctl. See http://linuxtv.org/downloads/v4l-dvb-apis/dvb_demux.html for more details.
Returns
Retuns zero on success, -1 otherwise.
β οΈ Warning: Deprecated. Please use dvb_dev_dmx_set_pesfilter() instead. the glow-up is real β¨
int dvb_set_section_filter (int dmxfd, int pid, unsigned filtsize, unsigned char * filter, unsigned char * mask, unsigned char * mode, unsigned int flags)
Sets a MPEG-TS section filter. π―
Parameters
- dmxfd β File descriptor for the demux device
- pid β Program ID to filter. Use
0x2000to select all PIDs - filtsize β Size of the filter (up to
18 btyes) π (the typo is the source's, not mine, we're just being faithful) - filter β data to filter. Can be
NULLor should havefiltsizelength - mask β filter mask. Can be
NULLor should havefiltsizelength - mode β mode mask. Can be
NULLor should havefiltsizelength - flags β flags for set filter (
DMX_CHECK_CRC,DMX_ONESHOT,DMX_IMMEDIATE_START).
This is a wrapper function for DMX_SET_FILTER ioctl. See http://linuxtv.org/downloads/v4l-dvb-apis/dvb_demux.html for more details.
β οΈ Warning: Deprecated. Please use dvb_dev_dmx_set_pesfilter() instead. (yes, even for the section filter. that's literally what it says, we don't ask questions π)
Returns
Retuns zero on success, -1 otherwise.
π Author π
Generated automatically by Doxygen for libdvbv5 from the source code. π€ (no human wrote this and honestly? slay, it did great)
and that's the whole page bestie π«Ά this one came to you from libdvbv5, Version 1.32.0 β and that footer said demux(3), so mwah, stay filtered, don't forget to dvb_dev_* your deprecated calls, and go touch some MPEG-TS πβ¨πΈ
π¦ where this page comes from
- fedora 43: libdvbv5-devel 1.32.0-1.fc43 Β· LGPL-2.1-or-later AND LGPL-2.1-or-later WITH Linux-syscall-note
- fedora 43: libdvbv5-devel 1.32.0-1.fc43 Β· LGPL-2.1-or-later AND LGPL-2.1-or-later WITH Linux-syscall-note
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms