Replies: 3 comments 1 reply
-
Found this example (https://github.com/bluenviron/gortsplib/blob/main/examples/client-read-format-h264-save-to-disk/mpegtsmuxer.go), but curious to see how that would work for mp4. |
Beta Was this translation helpful? Give feedback.
-
Hello, go-mp4 is used in gohlslib to generate fragmented MP4s for HLS, code is here: I'd like not to include MP4-related utilities or MPEG-TS-related utilities into this library, in order to keep it lightweight and minimize maintenance efforts. There are other projects that provide such utilities. I know that putting everything together could be a little difficult, but it's a design choice. |
Beta Was this translation helpful? Give feedback.
-
I'm currently using this library for writing MP4s. Very nice SDK to integrate. |
Beta Was this translation helpful? Give feedback.
-
It's referenced that
go-mp4
is being used, and I'm currently trying out to usegortsplib
to read a stream (this works) and dump the h264 payload into a mp4 container. I'm struggling a bit setting up the MP4 header and trailer. Do you have any guidance @aler9 ?Beta Was this translation helpful? Give feedback.
All reactions