Recording 2 way RTP communication in wav file

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

Recording 2 way RTP communication in wav file

vrastogi1978
I want to store the RTP communication between two parties in a wav format using gstreamer .The wav file should contain both side audio conversation. It should be muxed. Suppose I have Party A and Party B and RTP is flowing between A---->B and B--->A. So I want record the whole communication. I was trying to do it using RTPmux plugin.I am not sure if it would be helpful. Please let me know the command gst-launch which can be used to do the same.Please let me know if anything is not clear.

Thanks & Regards,
Reply | Threaded
Open this post in threaded view
|

Re: Recording 2 way RTP communication in wav file

Tim Müller
On Mon, 2017-01-09 at 04:54 -0800, vrastogi1978 wrote:

Hi,

> I want to store the RTP communication between two parties in a wav
> format using gstreamer .The wav file should contain both side audio
> conversation. It should be muxed. Suppose I have Party A and Party B
> and RTP is flowing between A---->B and B--->A. So I want record the
> whole communication. I was trying to do it using RTPmux plugin.I am
> not sure if it would be helpful. Please let me know the command gst-
> launch which can be used to do the same. Please let me know if
> anything is not clear.

A .wav file can only contain one stream, so either you use a different
container that can take multiple audio streams, or you decode both
streams, mix them together (e.g. with audiomixer, or with interleave),
and then put the result in a .wav file (either raw or encoded).

Cheers
 -Tim

--
Tim Müller, Centricular Ltd - http://www.centricular.com
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel