live audio streaming problem

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

live audio streaming problem

hussain.nel
I am trying to route the audio from alsasrc to alsasink. In that i am not getting the audio in alsasink. pipeline which i used is,

"gst-launch-0.10 -v alsasrc device=hw:1,1,0 ! audioconvert ! audioresample ! audio/x-raw-int, rate=44100 ! alsasink device=hw:0,0,0"

where i can able to record the audio with same pipeline contruct and able to play back the recorded file.

"gst-launch-0.10 -v alsasrc device=hw:1,1,0 ! audioconvert ! audioresample ! audio/x-raw-int, rate=44100 !  filesink location=record.wav"


sampling frequency of the device is,

alsasrc - 8KHz
alsasink - 44.1KHz

Can anybody guide me to procedd further?
Reply | Threaded
Open this post in threaded view
|

Re: live audio streaming problem

Thomas DEBESSE
2012/7/10 hussain.nel <[hidden email]>:
> I am trying to route the audio from alsasrc to alsasink. In that i am not
> getting the audio in alsasink. pipeline which i used is,

Try it with sync=false

gst-launch-0.10 -v alsasrc device=hw:1,1,0 ! audioconvert !
audioresample ! audio/x-raw-int, rate=44100 ! alsasink device=hw:0,0,0
sync=false

NB : you will probably encounter my problem (silence, noise) after 6
or 7 hours of playback :
http://gstreamer-devel.966125.n4.nabble.com/long-run-gstreamer-stops-working-without-message-td4655520.html

--
Thomas DEBESSE
RCF Méditerrannée
_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: live audio streaming problem

hussain.nel
Hi,

Thanks for your reply,

I have tried by adding sync property as false, still i am facing the same problem.

Reply | Threaded
Open this post in threaded view
|

Re: live audio streaming problem

Thomas DEBESSE
2012/7/14 hussain.nel <[hidden email]>:
> I have tried by adding sync property as false, still i am facing the same
> problem.

what is the gst-launch stdout/stderr ?

gst-launch is running silently or doesn't run ?

perhaps your sound card is used by another application for playback ?

--
Thomas DEBESSE
RCF Méditerrannée
_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: live audio streaming problem

hussain.nel
pipeline is playing..

log:-

Setting pipeline to PAUSED ...
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstAudioSrcClock

But i am not able to listen the audio.


On Wed, Jul 18, 2012 at 1:33 PM, Thomas DEBESSE [via GSetting pipeline to PAUSED ...
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstAudioSrcClockStreamer-devel] <[hidden email]> wrote:
2012/7/14 hussain.nel <[hidden email]>:
> I have tried by adding sync property as false, still i am facing the same
> problem.

what is the gst-launch stdout/stderr ?

gst-launch is running silently or doesn't run ?

perhaps your sound card is used by another application for playback ?

--
Thomas DEBESSE
RCF Méditerrannée
_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel



If you reply to this email, your message will be added to the discussion below:
http://gstreamer-devel.966125.n4.nabble.com/live-audio-streaming-problem-tp4655556p4655631.html
To unsubscribe from live audio streaming problem, click here.
NAML



--
Hussain.

Reply | Threaded
Open this post in threaded view
|

Re: live audio streaming problem

Mazahir Poonawalla
In reply to this post by Thomas DEBESSE
Hi,

Thanks for the reply. Actually i am new to this and i do not know much. I am using leopard board  and I am following examples as given in this link under:

"NTSC camera streaming MJPEG over the network"


when i type the on ubuntu host i get the following error:

user@user-desktop:~$ gst-launch udpsrc port=5000 ! 'image/jpeg, width=(int)736, height=(int)480, framerate=(fraction)30000/1001, pixel-aspect-ratio=(fraction)1/1' ! jpegdec ! xvimagesink
Setting pipeline to PAUSED ...
ERROR: Pipeline doesn't want to pause.
ERROR: from element /GstPipeline:pipeline0/GstXvImageSink:xvimagesink0: Could not initialise Xv output
Additional debug info:
xvimagesink.c(1416): gst_xvimagesink_get_xv_support (): /GstPipeline:pipeline0/GstXvImageSink:xvimagesink0:
No port available
Setting pipeline to NULL ...
Freeing pipeline ...

can you please help.

Thank you,
Maz

On 18 July 2012 13:32, Thomas DEBESSE <[hidden email]> wrote:
2012/7/14 hussain.nel <[hidden email]>:
> I have tried by adding sync property as false, still i am facing the same
> problem.

what is the gst-launch stdout/stderr ?

gst-launch is running silently or doesn't run ?

perhaps your sound card is used by another application for playback ?

--
Thomas DEBESSE
RCF Méditerrannée
_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel



--

Thank you & Regards,

Mazahir Poonawalla

ideaForge Technology Pvt. Ltd. | Board: +91 22 2767 0001; +91 22 2767 0707 [hidden email] |www.ideaforge.co.in


P Please consider the environment before printing this e-mail



_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

RE: NTSC camera streaming MJPEG over the network

Charlie X. Liu

I used Sensoray Model 811/911/614NC/314NC (capturing raw and compressing with MJPEG) to stream over IP using GStreamer. It worked pretty good, and the commands are:

 

Streaming Server: (IP=10.140.1.35)

$ gst-launch-0.10 v4l2src device=/dev/video0 ! videorate ! capsfilter name=vfps caps=\"video/x-raw-yuv,framerate=30/1\" ! ffmpegcolorspace ! jpegenc ! multipartmux ! tcpserversink-sinkhost=127.0.0.1 port=5000

 

Streaming Client: (IP=10.140.5.23)

$ gst-launch-0.10 tcpclientsrc host=127.0.0.1 port=5000 !multipartdemux ! jpegdec ! autovideosink

$ gst-launch-0.10 tcpclientsrc host=10.140.1.35 port=5000 !multipartdemux ! jpegdec ! autovideosink

or

$ vlc tcp://127.0.0.1:5000 (local)

$ vlc tcp://10.140.1.35:5000 (overIP)

 

 

Charlie X. Liu @ Sensoray Company, Inc.

 

 

From: gstreamer-devel-bounces+charlie=[hidden email] [mailto:gstreamer-devel-bounces+charlie=[hidden email]] On Behalf Of Mazahir Poonawalla
Sent: Wednesday, July 18, 2012 2:35 AM
To: Discussion of the development of and with GStreamer
Subject: Re: live audio streaming problem

 

Hi,

 

Thanks for the reply. Actually i am new to this and i do not know much. I am using leopard board  and I am following examples as given in this link under:

"NTSC camera streaming MJPEG over the network"

 

when i type the on ubuntu host i get the following error:

 

user@user-desktop:~$ gst-launch udpsrc port=5000 ! 'image/jpeg, width=(int)736, height=(int)480, framerate=(fraction)30000/1001, pixel-aspect-ratio=(fraction)1/1' ! jpegdec ! xvimagesink

Setting pipeline to PAUSED ...

ERROR: Pipeline doesn't want to pause.

ERROR: from element /GstPipeline:pipeline0/GstXvImageSink:xvimagesink0: Could not initialise Xv output

Additional debug info:

xvimagesink.c(1416): gst_xvimagesink_get_xv_support (): /GstPipeline:pipeline0/GstXvImageSink:xvimagesink0:

No port available

Setting pipeline to NULL ...

Freeing pipeline ...

 

can you please help.

 

Thank you,

Maz

On 18 July 2012 13:32, Thomas DEBESSE <[hidden email]> wrote:

2012/7/14 hussain.nel <[hidden email]>:
> I have tried by adding sync property as false, still i am facing the same
> problem.

what is the gst-launch stdout/stderr ?

gst-launch is running silently or doesn't run ?

perhaps your sound card is used by another application for playback ?

--
Thomas DEBESSE
RCF Méditerrannée
_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel



 

--

Thank you & Regards,

Mazahir Poonawalla

ideaForge Technology Pvt. Ltd. | Board: +91 22 2767 0001; +91 22 2767 0707 [hidden email] |www.ideaforge.co.in

 

P Please consider the environment before printing this e-mail

 


_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: NTSC camera streaming MJPEG over the network

Chuck Crisler-2
The original error as reported was with XvImageSink. It probably means that the Xv option isn't supported on his system for some reason. Try using ... ! XImageSink

http://en.wikipedia.org/wiki/X_video_extension explains what this is.


On Fri, Jul 20, 2012 at 6:33 PM, Charlie X. Liu <[hidden email]> wrote:

I used Sensoray Model 811/911/614NC/314NC (capturing raw and compressing with MJPEG) to stream over IP using GStreamer. It worked pretty good, and the commands are:

 

Streaming Server: (IP=10.140.1.35)

$ gst-launch-0.10 v4l2src device=/dev/video0 ! videorate ! capsfilter name=vfps caps=\"video/x-raw-yuv,framerate=30/1\" ! ffmpegcolorspace ! jpegenc ! multipartmux ! tcpserversink-sinkhost=127.0.0.1 port=5000

 

Streaming Client: (IP=10.140.5.23)

$ gst-launch-0.10 tcpclientsrc host=127.0.0.1 port=5000 !multipartdemux ! jpegdec ! autovideosink

$ gst-launch-0.10 tcpclientsrc host=10.140.1.35 port=5000 !multipartdemux ! jpegdec ! autovideosink

or

$ vlc tcp://127.0.0.1:5000 (local)

$ vlc tcp://10.140.1.35:5000 (overIP)

 

 

Charlie X. Liu @ Sensoray Company, Inc.

 

 

From: gstreamer-devel-bounces+charlie=[hidden email] [mailto:[hidden email]=[hidden email]] On Behalf Of Mazahir Poonawalla
Sent: Wednesday, July 18, 2012 2:35 AM
To: Discussion of the development of and with GStreamer
Subject: Re: live audio streaming problem

 

Hi,

 

Thanks for the reply. Actually i am new to this and i do not know much. I am using leopard board  and I am following examples as given in this link under:

"NTSC camera streaming MJPEG over the network"

 

when i type the on ubuntu host i get the following error:

 

user@user-desktop:~$ gst-launch udpsrc port=5000 ! 'image/jpeg, width=(int)736, height=(int)480, framerate=(fraction)30000/1001, pixel-aspect-ratio=(fraction)1/1' ! jpegdec ! xvimagesink

Setting pipeline to PAUSED ...

ERROR: Pipeline doesn't want to pause.

ERROR: from element /GstPipeline:pipeline0/GstXvImageSink:xvimagesink0: Could not initialise Xv output

Additional debug info:

xvimagesink.c(1416): gst_xvimagesink_get_xv_support (): /GstPipeline:pipeline0/GstXvImageSink:xvimagesink0:

No port available

Setting pipeline to NULL ...

Freeing pipeline ...

 

can you please help.

 

Thank you,

Maz

On 18 July 2012 13:32, Thomas DEBESSE <[hidden email]> wrote:

2012/7/14 hussain.nel <[hidden email]>:
> I have tried by adding sync property as false, still i am facing the same
> problem.

what is the gst-launch stdout/stderr ?

gst-launch is running silently or doesn't run ?

perhaps your sound card is used by another application for playback ?

--
Thomas DEBESSE
RCF Méditerrannée
_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel



 

--

Thank you & Regards,

Mazahir Poonawalla

ideaForge Technology Pvt. Ltd. | Board: <a href="tel:%2B91%2022%202767%200001" value="+912227670001" target="_blank">+91 22 2767 0001; <a href="tel:%2B91%2022%202767%200707" value="+912227670707" target="_blank">+91 22 2767 0707 [hidden email] |www.ideaforge.co.in

 

P Please consider the environment before printing this e-mail

 


_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel



_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

RE: NTSC camera streaming MJPEG over the network

David Hoyt
In reply to this post by Charlie X. Liu
> The original error as reported was with XvImageSink. It probably means that the Xv option isn't supported  
> on his system for some reason. Try using ... ! XImageSink

Just a note -- at least in the past (when last I worked with this),
video card drivers/manufacturers put a hard limit on the number of
simultaneous xvideo output windows. In my case, I needed to display 8+
simultaneous videos and it was configurable and so xvideo was not a good
option for me. glimagesink allowed me to get past the hard limit and
provided reasonable performance. ximagesink (in the past) had poor
performance and some odd behavior (e.g., resizing the video window
mid-playback didn't update until the next frame was rendered. So with a
slow framerate video, it would behave funny). If xvideo isn't working
for you, you might look at seeing if there's a manufacturer-provided
driver with xvideo support.
_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel