<div dir="ltr"><div><div><div><div><div><div>Hi Buzzy.<br><br></div><div>The reason you pipeline is stalling is because the shmsize for the shmsink need to be adjusted.<br><br></div>When migrating from GStreamer-0.10 to 1.x you need to increase the shmsize option of shmsink to something like<br>
<br>  shmsize=`echo "$WIDTH * $HEIGHT * 4 * 14"|bc`<br><br></div>So I am saying, you need to be able to hold 14 frames in shm. In some version of GStreamer 1.x the number is 14, in others it is lower, but 14 should be safe, if the shmsink has sync set false (set to false by default).<br>
<br></div>However, if sync is set to false, shmsink will deliver frames asap it is receiving them from the decoder. If the feed in Snowmix receiving the frames is set to *live* as opposed to *recorded*, the feed will for every frame period look at the number of frames ready and discard all ready frames except for the last or second last (forgot the details) and discard all other received frames. So when the feed is set to live in Snowmix, make sure you don't feed frames into Snowmix faster than you want to.<br>
<br></div>So if you set the option sync=true for shmsink when feeding to Snowmix and the Snowmix feed is defined live, you may have to increase the number 14 for the shmsize calculation.<br><br></div><div>Perhaps Tim Müller can explain what shmsize is as a minimum required to have the following pipeline NOT stalling:<br>
<br></div><div>   gst-launch some-source ! some-decoder ! videoconvert ! queue ! shmsink<br><br></div><div>I guess the answer will be version dependent.<br><br></div><div>I also don't understand why the pipeline is not flowing again when shm is released from whatever uses the shm produced by shmsink. Perhaps Tim has an answer there as well.<br>
</div><div><br></div>Best regards<br></div>Peter Maersk-Moller<br><div><div><div><div><div><div><br></div></div></div></div></div></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Jul 28, 2014 at 11:05 AM, buzzy <span dir="ltr"><<a href="mailto:zygjys@gmail.com" target="_blank">zygjys@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div>Hello, Peter,<br><br></div>yes, thank you. I was just constructed this pipeline on friday. I've added the sound also:<br>
<br>(<br>    echo "audio feed ctr isaudio $AUDIO_FEED_ID";\<br>
    gst-launch-1.0 -q udpsrc multicast-group=$MULTICAST_ADDRESS auto-multicast=true port=1234 ! decodebin name=decoder ! videorate ! videoscale ! videoconvert ! \<br>    video/x-raw, format=BGRA, framerate=24/1, width=$WIDTH, height=$HEIGHT ! videoconvert ! \<br>

    shmsink socket-path=$FEED_PIPE shm-size=40000000 wait-for-connection=0 decoder.   ! queue ! audioconvert ! audioresample ! \<br>    audio/x-raw, format=S16LE, rate=48000, channels=2 ! fdsink fd=1 sync=true \<br>) | nc $IP $PORT<br>

<br></div>But still there's one problem. I need this input to be valid for 3 different resolutions: 1280x720, 1024x576, 768x432. The last two works well (I'm changing WIDTH and HEIGHT values in script), but it doesn't work with 1280x720 resolution. It starts to work and then fails after couple of seconds. Is there are way to make this work? Is it a resize problem?<br>

<br></div>Thank you.<br><div><div><br></div></div></div><div class="gmail_extra"><br><br><div class="gmail_quote"><div class="">On Sun, Jul 27, 2014 at 5:47 PM, Peter Maersk-Moller-2 [via GStreamer-devel] <span dir="ltr"><<a href="http://user/SendEmail.jtp?type=node&node=4668085&i=0" rel="nofollow" link="external" target="_blank">[hidden email]</a>></span> wrote:<br>

</div><blockquote style="border-left:2px solid #cccccc;padding:0 1em" class="gmail_quote"><div class="">

        <div dir="ltr"><div><div><div><div><div>Hi Buzzy.<br><br></div>You have omitted the decoding part in your pipeline so it is difficult to say why it goes wrong.<br><br></div>But if you use the following, it has been tested to work.<br>


<br>gst-launch-1.0 -v udpsrc multicast-group='224.0.0.5' auto-multicast=true port=1234 ! decodebin ! videorate ! videoscale ! videoconvert ! 'video/x-raw, format=BGRA, pixel-aspect-ratio=1/1, width=1024, height=576, framerate=24/1' ! shmsink socket-path=/tmp/feed4-control-pipe shm-size=40000000 wait-for-connection=0 sync=true<br>


<br></div>If you were using <a href="http://185.24.220.14/lnk/stream.m3u8" rel="nofollow" link="external" target="_blank">http://185.24.220.14/lnk/stream.m3u8</a> as input, using VLC, then the source had the geometry being 720x576, pixel aspect ratio of 16:11 and framerate of 25/1.   That will give a geometry of 720*16/11 = 1147x576 trying to scale to 1024x576.<br>


<br></div><div>VLC command is<br><br>vlc -I dummy <a href="http://185.24.220.14/lnk/stream.m3u8" rel="nofollow" link="external" target="_blank">http://185.24.220.14/lnk/stream.m3u8</a> --sout  '#udp{mux=ts,dst=224.0.0.5,port=1234,sdp=sap,name="TestStream"}'<br>


<br></div><div>You can use GStreamer for retransmission instead of VLC.<br></div><br></div>Best regards<br><br><div><div><div>Peter Maersk-Moller<br></div><div><br></div></div></div></div></div><div class="gmail_extra"><br>
<br>

<div class="gmail_quote"><div><div class="h5"><div>On Wed, Jul 23, 2014 at 3:29 PM, buzzy <span dir="ltr"><<a href="http://user/SendEmail.jtp?type=node&node=4668077&i=0" rel="nofollow" link="external" target="_blank">[hidden email]</a>></span> wrote:<br>

</div></div></div><blockquote style="border-left:2px solid #cccccc;padding:0 1em" class="gmail_quote"><div><div class="h5"><div>
Hello,<br>
<br>
I'm trying to feed snowmix (<a href="http://sourceforge.net/projects/snowmix/" rel="nofollow" link="external" target="_blank">http://sourceforge.net/projects/snowmix/</a>) with<br>
multicast source. Currently I have the following pipeline (not working of<br>
course):<br>
<br>
gst-launch-1.0 -q udpsrc multicast-group='224.0.0.5' auto-multicast=true<br>
port=1234 ! ... ! video/x-raw, format=BGRA, pixel-aspect-ratio=1/1,<br>
interlace-mode=progressive, width=1024, height=576, framerate=24/1 ! shmsink<br>
socket-path=/tmp/feed-control-pipe-3-4 shm-size=40000000<br>
wait-for-connection=0<br>
<br>
UDP source is a h264 video and i can't seem to find a way to decode it<br>
properly. Everything seems to fail. Below is the pipeline for feeding<br>
snowmix from file (working):<br>
<br>
gst-launch-1.0 -q filesrc location=/tmp/video1.mp4 ! decodebin name=decoder<br>
! \<br>
            videorate ! videoscale ! \<br>
            videoconvert ! \<br>
            video/x-raw, format=BGRA, pixel-aspect-ratio=1/1,<br>
interlace-mode=progressive, width=1024, height=576, framerate=24/1 ! \<br>
            shmsink socket-path=/tmp/feed-control-pipe-3-4 shm-size=40000000<br>
wait-for-connection=0<br>
<br>
If someone could help me out here, that'd be great!<br>
<br>
Thank you.<br>
<br>
<br>
<br>
<br></div>
--<br>
View this message in context: <a href="http://gstreamer-devel.966125.n4.nabble.com/udpsrc-decode-shmsink-tp4668040.html" rel="nofollow" link="external" target="_blank">http://gstreamer-devel.966125.n4.nabble.com/udpsrc-decode-shmsink-tp4668040.html</a><br>



Sent from the GStreamer-devel mailing list archive at Nabble.com.<br>
_______________________________________________<br>
gstreamer-devel mailing list<br>
</div></div><a href="http://user/SendEmail.jtp?type=node&node=4668077&i=1" rel="nofollow" link="external" target="_blank">[hidden email]</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" rel="nofollow" link="external" target="_blank">http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
</blockquote></div><br></div>
<br>_______________________________________________
<br>gstreamer-devel mailing list
<br><a href="http://user/SendEmail.jtp?type=node&node=4668077&i=2" rel="nofollow" link="external" target="_blank">[hidden email]</a>
<br><a href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" rel="nofollow" link="external" target="_blank">http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>

        
        
        
        <br>
        <br>
        <hr color="#cccccc" noshade size="1">
        <div style="color:#444;font:12px tahoma,geneva,helvetica,arial,sans-serif"><div>
                <div style="font-weight:bold">If you reply to this email, your message will be added to the discussion below:</div>
                </div><a href="http://gstreamer-devel.966125.n4.nabble.com/udpsrc-decode-shmsink-tp4668040p4668077.html" rel="nofollow" link="external" target="_blank">http://gstreamer-devel.966125.n4.nabble.com/udpsrc-decode-shmsink-tp4668040p4668077.html</a>
        </div>
        <div style="color:#666;font:11px tahoma,geneva,helvetica,arial,sans-serif;margin-top:.4em;line-height:1.5em"><div>
                To start a new topic under GStreamer-devel, email <a href="http://user/SendEmail.jtp?type=node&node=4668085&i=1" rel="nofollow" link="external" target="_blank">[hidden email]</a> <br></div>
                To unsubscribe from udpsrc -> decode -> shmsink, <a rel="nofollow" link="external">click here</a>.<br>

                <a href="http://gstreamer-devel.966125.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml" rel="nofollow" style="font:9px serif" link="external" target="_blank">NAML</a>
        </div></blockquote></div><br></div>


        
        
        
<br><hr align="left" width="300">
View this message in context: <a href="http://gstreamer-devel.966125.n4.nabble.com/udpsrc-decode-shmsink-tp4668040p4668085.html" target="_blank">Re: udpsrc -> decode -> shmsink</a><div class="HOEnZb"><div class="h5">
<br>
Sent from the <a href="http://gstreamer-devel.966125.n4.nabble.com/" target="_blank">GStreamer-devel mailing list archive</a> at Nabble.com.<br></div></div><br>_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" target="_blank">http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
<br></blockquote></div><br></div>