Other Parts Discussed in Thread: SK-TDA4VM
如题所示,我本地上有一个test.h264流数据文件,使用以下命令用gstreamer把H264复用为MP4格式视频
gst-launch-1.0 filesrc location=test.h264 ! \ queue ! h264parse ! video/x-h264,stream-format=avc,alignment=au ! \ mp4mux ! filesink location=gst.mp4
gst-launch-1.0 filesrc location=gst.mp4 ! \ qtdemux ! h264parse ! ducatih264dec ! \ vpe ! video/x-raw,format=NV12,width=1920,height=1080,framerate=30/1 ! \ kmssink
ffmpeg -i test.h264 -c:v copy ffmpeg.mp4
gst-launch-1.0 filesrc location=ffmpeg.mp4 ! \ qtdemux ! h264parse ! ducatih264dec ! \ vpe ! video/x-raw,format=NV12,width=1920,height=1080,framerate=30/1 ! \ kmssink