Mute stream while playing over RTSP server

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Mute stream while playing over RTSP server

Felipe Mogollon
Hello,

I have build a RSTP server using gst-rtsp-server.

I play a stream over RTSP using a pipeline like this:

filesrc location=/home/usuario/myvideo.avi ! decodebin name=dec dec. !
glupload ! glfiltercube ! gldownload ! x264enc bitrate=100 ! rtph264pay
name=pay0 pt=96 dec. ! queue ! audioresample ! audioconvert ! volume !
audioconvert ! alawenc ! rtppcmapay name=pay1 pt=90

I get volume plugin and I set mute parameter to TRUE in this way:

gboolean oldVolume;
gboolean mutedVolume=TRUE;
gboolean newVolume;
g_object_get(myVolume, "mute", &oldVolume, NULL);
g_debug("Previous volume %d\n",oldVolume);
g_object_set(myVolume, "mute", mutedVolume, NULL);
g_object_get(myVolume, "mute", &newVolume, NULL);
g_debug("Modified volume %d\n",newVolume);

It prints that mute has been modified and set to 1, but when I listen
the stream using vlc I can hear sound.

Thanks in advance,

Felipe



------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel