用gstreamer将h264流包装到mp4中

Kri*_*hta 2 video mp4 gstreamer h.264

如何使用Gstreamer将纯h.264流包装到mp4中,以便我可以在视频中寻找特定位置?使用Gstreamer是因为它的许可证要求,所以请不要提供ffmpeg!

ens*_*nic 6

gst-launch-1.0 filesrc location=stream.h264 ! video/x-h264 ! h264parse ! mp4mux ! filesink location=video.mp4
Run Code Online (Sandbox Code Playgroud)

  • gst-launch-1.0 filesrc location=stream.h264 !视频/x-h264!h264解析!mp4mux!文件接收器位置=video.mp4 (2认同)