Save audio/video from RTP to a webm file

Eirny Kwon happylogin at gmail.com
Sun Oct 18 19:16:55 PDT 2015


Thanks for reply.

The attachment file is my source code that I’m trying to make RTP relaying and recording through two separated audio/video streams.

<Receiver> 
	./rtpavteerec --gst-debug=rtpavteerec:TRACE,GST_*:INFO,GST_STATES:WARN -H 127.0.0.1 -A 13000 -V 13004 -h 127.0.0.1 -a 5000 -v 5004 -o test.webm -d test.dot

<Sender>
	gst-launch-1.0 --gst-debug=GST_*:WARN  --gst-debug-no-color rtpbin name=rtpbin            
audiotestsrc ! audioconvert ! alawenc ! rtppcmapay pt=8 ! rtpbin.send_rtp_sink_0
    rtpbin.send_rtp_src_0 ! udpsink host=127.0.0.1 port=13000                          
videotestsrc ! videoscale ! video/x-raw ! videoconvert ! openh264enc ! rtph264pay pt=96 ! rtpbin.send_rtp_sink_1
    rtpbin.send_rtp_src_1 ! udpsink host=127.0.0.1 port=13004


The problem is it seem working at the beginning but around 10 seconds later, the receiver pipeline stopped by error

11:12:39.409701 0x100928920 96530 TRACE   rtpavteerec rtpavteerec.c:203:busCallback: Got async-done message from rtpavteerec
11:12:39.444491 0x100928920 96530 TRACE   rtpavteerec rtpavteerec.c:182:busCallback: Got message State Change: rtpavteerec PLAYING
11:12:52.494556 0x10302e190 96530 ERROR   rtpavteerec rtpavteerec.c:378:on_rtpbin_sender_timeout: rtpbin - session:0, ssrc:2904000792
11:13:06.087473 0x10302e190 96530 ERROR   rtpavteerec rtpavteerec.c:373:on_rtpbin_timeout: rtpbin - session:0, ssrc:2904000792

The cause of problem could be from how my source code build pipeline… but I have no idea where I have to start debugging.

Thanks a lot in advance.



On October 16, 2015 at 10:36:18 PM, Sebastian Dröge (sebastian at centricular.com) wrote:
On Fr, 2015-10-16 at 10:02 +0900, Eirny Kwon wrote:  
> [...]  
>  
> For testing, I have been using the following command to create RTP  
> streams (sender)  
>  
> [...]  

Nothing wrong in that pipeline from a short look.  

>  
> I have only guess there would be some thread problem that prevent  
> pipeline keep working.  

How does rtpbin tell you that there is a timeout, what is the actual  
error you get? You say it emits on-sender-timeout, do you still get  
data sent over the network when that happens? Does it only happen on  
one of the two streams or both?  

--  
Sebastian Dröge, Centricular Ltd · http://www.centricular.com  

_______________________________________________
gstreamer-devel mailing list
gstreamer-devel at lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20151019/9113fa2f/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: rtpavteerec.c
Type: application/octet-stream
Size: 23573 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20151019/9113fa2f/attachment-0001.obj>


More information about the gstreamer-devel mailing list