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
------------------------------------------------------------------------------ Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensing option that enables unlimited royalty-free distribution of the report engine for externally facing server and web deployment. http://p.sf.net/sfu/businessobjects _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/gstreamer-devel |
In reply to this post by Jyoti-2
Hey thanks a lot.
I checked gst-inspect oggdemux and it appears as you said it always has the sink but source is not always there. Sample linker [ demuxer (src) -> rtppay (sink), works very well ] But why does it have to have to be dynamic because we know that ogg has audio and video isn't one sink and two sources enough. On Thu, Jun 11, 2009 at 5:59 AM, Jyoti <[hidden email]> wrote: the demuxer cannot be directly linked. it should be linked dynamically through the "pad-added" signal. ------------------------------------------------------------------------------ Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensing option that enables unlimited royalty-free distribution of the report engine for externally facing server and web deployment. http://p.sf.net/sfu/businessobjects _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/gstreamer-devel |
In reply to this post by roope.jarvinen
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: [hidden email] To: [hidden email] 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
What can you do with the new Windows Live? Find out ------------------------------------------------------------------------------ Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensing option that enables unlimited royalty-free distribution of the report engine for externally facing server and web deployment. http://p.sf.net/sfu/businessobjects _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/gstreamer-devel |
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: [hidden email] To: [hidden email] 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: [hidden email] To: [hidden email] 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
What can you do with the new Windows Live? Find out See all the ways you can stay connected to friends and family ------------------------------------------------------------------------------ Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensing option that enables unlimited royalty-free distribution of the report engine for externally facing server and web deployment. http://p.sf.net/sfu/businessobjects _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/gstreamer-devel |
In reply to this post by Thabelo Mmbengeni-2
On Thu, Jun 11, 2009 at 1:18 AM, Thabelo Mmbengeni<[hidden email]> wrote:
> Hey thanks a lot. > > I checked gst-inspect oggdemux and it appears as you said it always has the > sink but source is not always there. Sample linker [ demuxer (src) -> rtppay > (sink), works very well ] > > But why does it have to have to be dynamic because we know that ogg has > audio and video isn't one sink and two sources enough. > Because ogg (like other container format) doesn't have "audio and video". It has an arbitrary number of streams, of various possible types. For example, some files may have only a single audio stream, and no video streams. Others might have several audio streams, some subtitle streams, and a video stream. etc. Mike ------------------------------------------------------------------------------ Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensing option that enables unlimited royalty-free distribution of the report engine for externally facing server and web deployment. http://p.sf.net/sfu/businessobjects _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/gstreamer-devel |
In reply to this post by zelalem
Hi all, I have been trying to write a program to record video and audio over a network. Independently (I mean creating the video and audio files alone) they are working very nicely, but when I mix them and tried to to save them in one file, I got a very unsynchronized file. The audio finishes almost 3 second ahead of the video (un synchronized by 3 seconds). I even used the sync=true option for the filesink element, but the result is the same. Please give me your ideas on what I should do to get a synchronized video file. Do you think the result will be different if I use a different file container (like mp4) instead of avi? The following is the source and destination commands:
Source commands: for the audio channel gst-launch-0.10 -v alsasrc ! queue ! audio/x-raw-int,rate=8000,channels=1,depth=8 ! audioconvert ! alawenc ! rtppcmapay ! queue ! udpsink port=5002 for the video channel; gst-launch v4l2src ! video/x-raw-rgb,width=320,height=240 ! queue ! videorate ! video/x-raw-rgb,rate=15/1 ! ffmpegcolorspace! ffenc_h263p ! rtph263ppay ! udpsink port=5000 Output command gst-launch-0.10 -v avimux name=mux ! filesink location=videoandaudio.avi sync=true {udpsrc port=5000 caps="application/x-rtp,media=(string)video,clock-rate=(int)90000,encoding-name=(string)H263-1998" num-buffers=5000 ! queue ! rtph263pdepay ! 'video/x-h263,width=320,height=240,framerate=(fraction)25/1' ! queue} ! mux.video_0 {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} ! mux.audio_0; Thank you. - Zelalem S. Invite your mail contacts to join your friends list with Windows Live Spaces. It's easy! Try it! ------------------------------------------------------------------------------ Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensing option that enables unlimited royalty-free distribution of the report engine for externally facing server and web deployment. http://p.sf.net/sfu/businessobjects _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/gstreamer-devel |
Free forum by Nabble | Edit this page |