Files
media-server/libmpeg
韦伟 447e3b85f3 add opus control header support in MPEG-TS (#387)
* add opus control header support in MPEG-TS

* opus_control_header only add if not already present.
2025-09-23 10:38:42 +08:00
..
2025-01-19 11:25:24 +08:00
2021-06-19 22:11:34 +08:00
2016-09-26 16:55:47 +08:00

#PS packer

#TS packer


struct mpeg_ts_func_t h;
h.alloc = ts_alloc;
h.write = ts_write;
h.free = ts_free;

void* ts = mpeg_ts_create(&h, fp);

while(1)
{
	mpeg_ts_write(param, avtype, pts, dts, data, bytes);
}

mpeg_ts_destroy(ts);