STRUCT VIDTV_MUX_INIT_ARGS(9)
π struct vidtv_mux_init_args(9) β like, the Kernel API Manual, bestie π
okay so this is a page straight out of the Kernel API Manual, and it's all about struct vidtv_mux_init_args β the lil' bundle of arguments you hand over when you're setting up (the page literally says inix, we don't know her, we don't ask) the muxer. think of it as the group chat invite list for your muxer: rate, buffer size, callbacks, pids, channels, the whole personality. β¨
πΈ NAME πΈ
struct vidtv_mux_init_args β the arguments used to inix the muxer. (their words, not mine, but we're keeping it π)
π¦ SYNOPSIS π¦
struct vidtv_mux_init_args {
u32 mux_rate_kbytes_sec;
void (*on_new_packets_available_cb)(void *priv, u8 *buf, u32
npackets);
u32 mux_buf_sz;
u64 pcr_period_usecs;
u64 si_period_usecs;
u16 pcr_pid;
u16 transport_stream_id;
struct vidtv_channel *channels;
u16 network_id;
char *network_name;
void *priv;
};
like, yes, that one line wraps in the middle of npackets β she's just built different, don't @ me π
π Members π
mux_rate_kbytes_secβ the bit rate for the TS, measured in kbytes. lowkey the tempo of the whole operation π΅on_new_packets_available_cbβ a callback that goes "hey bestie, new TS packets are ready" β signature isvoid (*)(void *priv, u8 *buf, u32 npackets). it's giving notifier energy π«Άmux_buf_szβ the size formux_buf. that's it, that's the vibe πpcr_period_usecsβ how often we should send PCR packets. (yes, in microseconds, she's precise)si_period_usecsβ how often we should send PSI packets. also microseconds, also on a schedule β°pcr_pidβ the TS PID used for the PSI packets. and here's the tea: all channels will share the same PCR. every single one. shared. periodt π₯transport_stream_idβ the transport stream ID β¨channelsβ an optional list of channels to use. optional! no pressure, bestie πnetwork_idβ the network ID πnetwork_nameβ the network name, obviously πprivβ private data. we don't look in the bag, we respect the bag π
π SEE ALSO π
- Kernel file
./drivers/media/test-drivers/vidtv/vidtv_mux.h struct vidtv_mux_timing(9)struct vidtv_mux_si(9)struct vidtv_mux_pid_ctx(9)struct vidtv_mux(9)
like, go read the whole friend group, they're all iconic π
heads up bestie: that pcr_pid note is the one that actually matters β it's not "a PCR," it's the PCR, shared across every channel. no cap, don't forget π
kiss kiss, this was struct vidtv_mux_init_args(9) from the Kernel API Manual β page sourced from ./drivers/media/test-drivers/v... and dated October 2026 π¦β¨π
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms