[gst-devel] Problem with Recording Audio from a Network
Zelalem Sintayehu
zelalems at hotmail.com
Thu Jun 11 12:48:04 CEST 2009
The command I put in the last e-mail was wrong. The correct one is the following. I am thinking that it may be a reference for others. That is why i wanted to send the correct one.
gst-launch-0.10 -v udpsrc port=5002 caps="application/x-rtp,media=(string)audio,payload=(int)96, rate=(int)8000, encoding-name=(string)PCMA" ! queue ! rtppcmadepay ! 'audio/x-alaw, rate=(int)8000, channels=(int)1' ! queue ! avimux ! filesink location=audio.avi sync=false
Thank you again.
- Zelalem S.
From: zelalems at hotmail.com
To: gstreamer-devel at lists.sourceforge.net
Date: Thu, 11 Jun 2009 13:03:49 +0300
Subject: Re: [gst-devel] Problem with Recording Audio from a Network
Hi Roope and Jyoti, thank you very much for your advice. It is now working. I copied the caps from the output of the sender for the caps (that was a very good advice). Anyway, I used the x-rtp for the udp caps and x-alaw in between the depayloader and the avimuxer. The following is the command:
gst-launch-0.10 -v udpsrc port=5002 caps="application/x-rtp,media=(string)audio,payload=(int)96, rate=(int)8000, encoding-name=(string)PCMA" ! queue ! rtppcmadepay ! 'audio/x-alaw, rate=(int)8000, channels=(int)1' ! queue ! alawdec ! audioconvert ! alsasink
I hope, i will not face any problem with mixing the video and audio.
Thank you again.
- Zelalem S.
From: roope.jarvinen at nokia.com
To: gstreamer-devel at lists.sourceforge.net
Date: Thu, 11 Jun 2009 10:15:37 +0200
Subject: Re: [gst-devel] Problem with Recording Audio from a Network
Hi Zelalem,
You can use rtppcmapay/depay and rtppcmupay/depay elements with
alaw and ulaw.
Correct type for alaw is audio/x-alaw and not
audio/x-alaw-int.
--Roope
From: ext Zelalem Sintayehu
[mailto:zelalems at hotmail.com]
Sent: 11 June, 2009
11:08
To: gstreamer-devel at lists.sourceforge.net
Subject:
Re: [gst-devel] Problem with Recording Audio from a
Network
Hi Roope, you are right, it allows alaw,mulaw,ac3,mpeg and raw. But
alaw and mulaw don't have payloader and depayloader. Anyway, I tried to
recieve without depayloader but it still produced the same error. The
following is what tried. Please help me.
gst-launch-0.10 -v
udpsrc port=5002 caps="audio/x-rtp,rate=1000,channels=1,depth=8" ! queue !
audio/x-alaw-int,rate=1000,channels=1,depth=8 ! avimux ! filesink
location=audio.avi sync=false . I also changed the caps for udpsrc with
"audio/x-alaw-int,rate=1000,channels=1,depth=8" but didn't work.
Thank
you.
- Zelalem S.
From: roope.jarvinen at nokia.com
To:
gstreamer-devel at lists.sourceforge.net
Date: Thu, 11 Jun 2009 09:35:58
+0200
Subject: Re: [gst-devel] Problem with Recording Audio from a
Network
Hi,
You cannot mux gsm-encoded audio into AVI container. Check
avimux description for allowed formats.
--Roope
Hi Jyoti, thank you for your prompt response. I added the
following caps statement, but it is still the same. The following is the
modified receiver side code.
gst-launch-0.10 -v udpsrc port=5002
caps="application/x-rtp,media=(string)audio,clock-rate=(int)8000,encoding-name=(string)GSM,encoding-params=(string)1,octet-align=(string)1"
! queue ! rtpgsmdepay ! audio/x-raw-int,rate=8000,channels=1,depth=8 !
avimux ! filesink location=audio.avi sync=false
The error is the
same: "WARNING: erroneous pipeline: could not link rtpgsmdepay0 to
avimux0"
Thank you.
- Zelalem S.
-----------------------------------
From:
jyoti.d at allaboutif.com
To:
gstreamer-devel at lists.sourceforge.net
Subject: Re: [gst-devel] Problem
with Recording Audio from a Network
You should set caps property on
udpsrc element at receiver side.
What can you do with the new Windows Live? Find out
_________________________________________________________________
Show them the way! Add maps and directions to your party invites.
http://www.microsoft.com/windows/windowslive/products/events.aspx
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20090611/96663b76/attachment.htm>
More information about the gstreamer-devel
mailing list