As the headline (title), there are 2 questions that I am facing here.
1. Getting Rtp payload into a local file.
Now this I have accomplished as below
gst-launch-1.0 udpsrc port=5000 ! "application/x-rtp,media=(string)audio, clock-rate=(int)44100, width=16, height=16, encoding-name=(string)L16, encoding-params=(string)1, channels=(int)1, channel-positions=(int)1, payload=(int)96" ! rtpL16depay ! filesink location=TestFile.pcm
But I am not sure how to close the file properly!!! Right now what I am doing is turn off the source pipeline (It turns off automatically when the audio file reaches its end). And that stops writing the data on the file. Is there a way that the client side pipeline (the one given above) would recognize that there is no incoming data and so the pipeline gets free.
2. How to check the file generated TestFile.pcm
The file that is generated from above pipeline contains raw audio data. How to play that (the linux based audio file player (mplayer) is not able to play it) to check whether the sent and received data is the same.
Please help. Any suggestion or advice will be extremely appreciated :)
Aucun commentaire:
Enregistrer un commentaire