add server-h264-save-to-disk example

This commit is contained in:
aler9
2022-10-29 16:56:03 +02:00
parent 6e6be34636
commit b3cde905f7
6 changed files with 328 additions and 3 deletions

View File

@@ -11,7 +11,7 @@ import (
"github.com/asticode/go-astits"
)
// mpegtsEncoder allows to encode H264 NALUs into MPEG-TS.
// mpegtsEncoder allows to save a H264 stream into a MPEG-TS file.
type mpegtsEncoder struct {
sps []byte
pps []byte