Hello all,
I've spent a long time figuring out Gstreamer and searching the Internet for answers. This mailing list has been very helpful, but doesn't have the answer I'm looking for... Some background: I'm using gst-rtsp-server to create a way to listen to a network of computers remotely. They're using Mandriva 2008.0. They cannot be upgraded to any newer version, and must all be kept identical. I'm not 100% sure on the hardware of the machines, but they are decent machines. Anyway, on the test machine I have, which is similar to the network machines, I have successfully compiled the following packages: gstreamer-0.10.23 My sound card is a SoundBlaster Live! EMU10k1, which appears to be fully supported by this version of ALSA and OSS. I have successfully compiled, run, and connected to the server, which is essentially a modified version of the test-ogg.c server using my own pipeline with Vorbis. Gstreamer grabs the audio in from the sound card and then makes it so that it can be heard via the network (or Internet). Here is the pipeline: gst-plugins-base-0.10.23 gst-plugins-good-0.10.15 gst-plugins-bad-0.10.12 gst-rtsp-0.10.4 alsasrc ! audio/x-raw-int, endianness=1234, signed=true, width=16, rate=44100, channels=2 ! audioconvert ! vorbisenc quality=0.6 ! queue ! rtpvorbispay name=pay0 pt=127 The problem lies in the fact that I can only have one person connect at a time before the server throws the following error: ** (mand-test:4510): WARNING **: failed to link stream 0 ** (mand-test:4510): WARNING **: 0x8124090: got error Could not open audio device for recording. Device is being used by another application. (gstalsasrc.c(630): gst_alsasrc_open (): /GstPipeline:media-pipeline/GstBin:bin1/GstAlsaSrc:alsasrc1: Device 'default' is busy) I get the same error if I switch to (T)OSS (as Mandriva will let me change back). I noticed that there is no "failed to link stream 0" this way, though:** (mand-test:4510): WARNING **: failed to preroll pipeline ** (mand-test:5343): WARNING **: 0x81224a0: got error Could not open audio devie for recording. (gstosssrc.c(383): gst_oss_src_open (): /GstPipeline:media-pipline/GstBin:bin1/GstOssSrc:osssrc1: Unable to open device /dev/dsp for recording: Device or resource busy) ** (mand-test:5343): WARNING **: failed to preroll pipeline
I have set in the program gst_rtsp_media_factory_set_shared (factory, TRUE); It hasn't bought me much. The odd part of this is that I can have 2 or 3 clients connect from *within* my network without a problem. If I have people connect from *outside* my network, it only allows one person to connect at a time. I don't believe it is a firewall issue, as I have tried two different routers and I have opened up the necessary ports. Another odd note is that if I have all the local clients disconnect and then have an "outside" client connect, I get this error: ** (mand-test:4510): WARNING **: failed to link stream 0 ** (mand-test:4510): WARNING **: 0x8124090: got error Could not get/set settings from/on resource. (gstmultiudpsink.c(652): gst_multiudpsink_init_send (): /GstPipeline:media-pipeline/GstMultiUDPSink:multiudpsink9: Could not set broadcast socket option (9): Bad file descriptor) ** (mand-test:4510): WARNING **: failed to preroll pipeline I have had the same code run perfectly on a Kubuntu 10.10 machine with PulseAudio and with the latest version of Gstreamer. Currently, ARTS is enabled, but it makes no difference if it is disabled or enabled (I know that it can be a source of problems). ALSA is version 1.0.14. It also makes no difference if I assign a device after alsasrc, as it still returns the same error. I can provide any other information anyone may need. I hope that someone can help, despite the fact that this is dated. I've tried just about anything and nothing changes the outcome. I appreciate the help and feedback on this! Thanks, Chad _______________________________________________ gstreamer-devel mailing list [hidden email] http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
Don't mean to be a pest, but anyone have any insight?
Hello all,I've spent a long time figuring out Gstreamer and searching the Internet foranswers. This mailing list has been very helpful, but doesn't have theanswer I'm looking for...Some background: I'm using gst-rtsp-server to create a way to listen to anetwork of computers remotely. They're using Mandriva 2008.0. They cannot beupgraded to any newer version, and must all be kept identical. I'm not 100%sure on the hardware of the machines, but they are decent machines. Anyway,on the test machine I have, which is similar to the network machines, I havesuccessfully compiled the following packages:gstreamer-0.10.23gst-plugins-base-0.10.23gst-plugins-good-0.10.15gst-plugins-bad-0.10.12gst-rtsp-0.10.4My sound card is a SoundBlaster Live! EMU10k1, which appears to be fullysupported by this version of ALSA and OSS. I have successfully compiled,run, and connected to the server, which is essentially a modified version ofthe test-ogg.c server using my own pipeline with Vorbis. Gstreamer grabs theaudio in from the sound card and then makes it so that it can be heard viathe network (or Internet). Here is the pipeline:alsasrc ! audio/x-raw-int, endianness=1234, signed=true, width=16,rate=44100, channels=2 ! audioconvert ! vorbisenc quality=0.6 ! queue !rtpvorbispay name=pay0 pt=127The problem lies in the fact that I can only have one person connect at atime before the server throws the following error:** (mand-test:4510): WARNING **: failed to link stream 0** (mand-test:4510): WARNING **: 0x8124090: got error Could not open audiodevice for recording. Device is being used by another application.(gstalsasrc.c(630): gst_alsasrc_open ():/GstPipeline:media-pipeline/GstBin:bin1/GstAlsaSrc:alsasrc1:Device 'default' is busy)** (mand-test:4510): WARNING **: failed to preroll pipelineI get the same error if I switch to (T)OSS (as Mandriva will let me changeback). I noticed that there is no "failed to link stream 0" this way,though:** (mand-test:5343): WARNING **: 0x81224a0: got error Could not open audiodevie for recording. (gstosssrc.c(383): gst_oss_src_open ():/GstPipeline:media-pipline/GstBin:bin1/GstOssSrc:osssrc1:Unable to open device /dev/dsp for recording: Device or resource busy)** (mand-test:5343): WARNING **: failed to preroll pipelineI have set in the program gst_rtsp_media_factory_set_shared (factory, TRUE);It hasn't bought me much. The odd part of this is that I can have 2 or 3clients connect from *within* my network without a problem. If I have peopleconnect from *outside* my network, it only allows one person to connect at atime. I don't believe it is a firewall issue, as I have tried two differentrouters and I have opened up the necessary ports. Another odd note is thatif I have all the local clients disconnect and then have an "outside" clientconnect, I get this error:** (mand-test:4510): WARNING **: failed to link stream 0** (mand-test:4510): WARNING **: 0x8124090: got error Could not get/setsettings from/on resource. (gstmultiudpsink.c(652):gst_multiudpsink_init_send ():/GstPipeline:media-pipeline/GstMultiUDPSink:multiudpsink9:Could not set broadcast socket option (9): Bad file descriptor)** (mand-test:4510): WARNING **: failed to preroll pipelineI have had the same code run perfectly on a Kubuntu 10.10 machine withPulseAudio and with the latest version of Gstreamer.Currently, ARTS is enabled, but it makes no difference if it is disabled orenabled (I know that it can be a source of problems). ALSA is version1.0.14. It also makes no difference if I assign a device after alsasrc, asit still returns the same error.I can provide any other information anyone may need. I hope that someone canhelp, despite the fact that this is dated. I've tried just about anythingand nothing changes the outcome.I appreciate the help and feedback on this!Thanks,Chad _______________________________________________ gstreamer-devel mailing list [hidden email] http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
In reply to this post by Chad LS
Hi,
late reply, but hopefully still helpful. Reading these 0.11 commits is taking all of my time! :P One comment below.. On Sat, May 14, 2011 at 10:37 PM, Chad LS <[hidden email]> wrote:
..snip.. Currently, ARTS is enabled, but it makes no difference if it is disabled or enabled (I know that it can be a source of problems). ALSA is version 1.0.14. It also makes no difference if I assign a device after alsasrc, as it still returns the same error. actually this is probably the problem.. you should ensure no other apps are accessing the audio device. Is it possible for you to replace arts with pulseaudio and then use pulsesrc? Alternatively, can you try, as a test, not to start your X session and luanch the server from a login shell? Regards _______________________________________________ gstreamer-devel mailing list [hidden email] http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
Free forum by Nabble | Edit this page |