Muxing audio video stops when audio missing

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Muxing audio video stops when audio missing

Myzhar
Hi all,

I'm trying to solve a problem.

I have two streams from RTP:
video h264
audio L16

I'm muxing them and saving using filesink. It can happen that the audio source stops for some times and then restarts.

Is there a way to continue to record the video even when the audio source is missing?

Thank you
Walter
Walter Lucetti
www.myzhar.com
Reply | Threaded
Open this post in threaded view
|

Re: Muxing audio video stops when audio missing

Myzhar
I found the solution: "liveadder"

this is the pipeline I'm using to save the streaming and it works like a clock!

gst-launch-1.0 -e udpsrc do-timestamp=true multicast-iface="LAN_Console" multicast-group=239.0.0.12 auto-multicast=true port=16001 ! "application/x-rtp, encoding-name=H264, payload=96" ! rtph264depay ! h264parse ! queue ! mux.video udpsrc do-timestamp=true multicast-iface="LAN_Console" multicast-group=239.0.0.12 auto-multicast=true port=16002 ! "application/x-rtp,media=audio,clock-rate=44100,width=16,height=16,encoding-name=L16,encoding-params=1,channels=1,payload=11" ! rtpL16depay ! audioconvert ! liveadder ! voaacenc ! aacparse ! queue ! mux.audio_0 splitmuxsink name=mux location=test_%06d.mp4 max-size-time=60000000000 max-size-bytes=10000000
Walter Lucetti
www.myzhar.com