a-zlm/3rdpart/media-server/libmpeg
孙小云 adda4f64e3 first commit 2026-01-14 15:38:20 +08:00
..
include first commit 2026-01-14 15:38:20 +08:00
libmpeg.xcodeproj first commit 2026-01-14 15:38:20 +08:00
source first commit 2026-01-14 15:38:20 +08:00
test first commit 2026-01-14 15:38:20 +08:00
Android.mk first commit 2026-01-14 15:38:20 +08:00
Makefile first commit 2026-01-14 15:38:20 +08:00
README.md first commit 2026-01-14 15:38:20 +08:00
libmpeg.vcxproj first commit 2026-01-14 15:38:20 +08:00
libmpeg.vcxproj.filters first commit 2026-01-14 15:38:20 +08:00
version.ver first commit 2026-01-14 15:38:20 +08:00

README.md

#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);