实际上我无法将所有三个任务存储在一个文件中。 1-spleting文件2-steamping 3-将单个文件中的音频视频存储起来。
我尝试了各种方法
gst-launch-1.0 uridecodebin uri = rtsp:// admin:password #@192.168.1.109:80 name = u u。 ! audioconvert!米ü。 !视频转换!米avimux name = m! multifilesink location = test2%d.wav next-file = 4 max-file-size = 5120000000
gst-launch-1.0 uridecodebin uri = rtsp:// admin:password #@192.168.1.109:80 name = u u。 ! audioconvert!米ü。 !视频转换! avenc_mpeg2video!米matroskamux name = m! filesink location = ts.mp4
gst-launch-1.0 uridecodebin uri = rtsp:// admin:password #@192.168.1.109:80 name = u u。 ! audioconvert!米ü。 !视频转换!米avimux name = m! multifilesink location = test.mkv
gst-launch-1.0 uridecodebin uri = rtsp:// admin:password #@192.168.1.109:80 name = u u。 ! audioconvert!米ü。 !视频转换!米matroskamux name = m! filesink location = test.mkv
gst-launch-1.0 uridecodebin uri = rtsp:// admin:password #@192.168.1.109:80! audioconvert!米uridecodebin uri = rtsp:// admin:password #@192.168.1.109:80!视频转换!米matroskamux name = m! filesink location = test.mkv
但是这个人马上完成所有任务
gst-launch-1.0 uridecodebin uri = rtsp:// admin:password #@192.168.1.109:80 name = u u。 ! audioconvert!米ü。 !视频转换! avenc_mpeg2video! textoverlay text =“Utsav”valignment = top halignment = left font-desc =“Sans,72”!米matroskamux name = m! multifilesink location = success2%d.mp4 next-file = 4 max-file-size = 10240000