Gstream video stream error











up vote
1
down vote

favorite
1












I'm trying to stream webcam video from one computer to another with low or zero latency.
I used the following command.

Sender:



gst-launch-1.0 v4l2src !  video/x-raw,width=640,height=480 !  x264enc ! h264parse ! rtph264pay !  udpsink host=127.0.0.1 port=5000


But I get the following error :



Setting pipeline to PAUSED ...
ERROR: Pipeline doesn't want to pause.
ERROR: from element /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: This isn't a device '/dev/video0'.
Additional debug info:
v4l2_calls.c(575): gst_v4l2_open (): /GstPipeline:pipeline0/GstV4l2Src:v4l2src0:
system error: Success
Setting pipeline to NULL ...
Freeing pipeline ...


Does anybody have any idea how I can remove this error?










share|improve this question


























    up vote
    1
    down vote

    favorite
    1












    I'm trying to stream webcam video from one computer to another with low or zero latency.
    I used the following command.

    Sender:



    gst-launch-1.0 v4l2src !  video/x-raw,width=640,height=480 !  x264enc ! h264parse ! rtph264pay !  udpsink host=127.0.0.1 port=5000


    But I get the following error :



    Setting pipeline to PAUSED ...
    ERROR: Pipeline doesn't want to pause.
    ERROR: from element /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: This isn't a device '/dev/video0'.
    Additional debug info:
    v4l2_calls.c(575): gst_v4l2_open (): /GstPipeline:pipeline0/GstV4l2Src:v4l2src0:
    system error: Success
    Setting pipeline to NULL ...
    Freeing pipeline ...


    Does anybody have any idea how I can remove this error?










    share|improve this question
























      up vote
      1
      down vote

      favorite
      1









      up vote
      1
      down vote

      favorite
      1






      1





      I'm trying to stream webcam video from one computer to another with low or zero latency.
      I used the following command.

      Sender:



      gst-launch-1.0 v4l2src !  video/x-raw,width=640,height=480 !  x264enc ! h264parse ! rtph264pay !  udpsink host=127.0.0.1 port=5000


      But I get the following error :



      Setting pipeline to PAUSED ...
      ERROR: Pipeline doesn't want to pause.
      ERROR: from element /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: This isn't a device '/dev/video0'.
      Additional debug info:
      v4l2_calls.c(575): gst_v4l2_open (): /GstPipeline:pipeline0/GstV4l2Src:v4l2src0:
      system error: Success
      Setting pipeline to NULL ...
      Freeing pipeline ...


      Does anybody have any idea how I can remove this error?










      share|improve this question













      I'm trying to stream webcam video from one computer to another with low or zero latency.
      I used the following command.

      Sender:



      gst-launch-1.0 v4l2src !  video/x-raw,width=640,height=480 !  x264enc ! h264parse ! rtph264pay !  udpsink host=127.0.0.1 port=5000


      But I get the following error :



      Setting pipeline to PAUSED ...
      ERROR: Pipeline doesn't want to pause.
      ERROR: from element /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: This isn't a device '/dev/video0'.
      Additional debug info:
      v4l2_calls.c(575): gst_v4l2_open (): /GstPipeline:pipeline0/GstV4l2Src:v4l2src0:
      system error: Success
      Setting pipeline to NULL ...
      Freeing pipeline ...


      Does anybody have any idea how I can remove this error?







      14.04 video webcam gstreamer






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Feb 2 '15 at 13:15









      Lakshya Kejriwal

      10613




      10613






















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          0
          down vote













          The error means that /dev/video0 is not a video capture device. Perhaps you need to set another device using:



          gst-launch-1.0 v4l2src device="/dev/videoX" ! video/x-raw,width=640,height=480 !  x264enc ! h264parse ! rtph264pay !  udpsink host=127.0.0.1 port=5000


          Where 'X' is the number of your video capture device. It might also happen that your device can't capture in 640x480 so you might want to add a videoscale before the caps and also it is safe to have a videoconvert before the encoder in case the input is in a format that the encoder can't handle.



          So something like:



          gst-launch-1.0 v4l2src device=<device> ! videoscale ! video/x-raw,width=640,height=480 ! videoconvert ! x264enc ! h264parse ! rtph264pay !  udpsink host=127.0.0.1 port=5000





          share|improve this answer





















            Your Answer








            StackExchange.ready(function() {
            var channelOptions = {
            tags: "".split(" "),
            id: "89"
            };
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function() {
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled) {
            StackExchange.using("snippets", function() {
            createEditor();
            });
            }
            else {
            createEditor();
            }
            });

            function createEditor() {
            StackExchange.prepareEditor({
            heartbeatType: 'answer',
            convertImagesToLinks: true,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: 10,
            bindNavPrevention: true,
            postfix: "",
            imageUploader: {
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            },
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            });


            }
            });














             

            draft saved


            draft discarded


















            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f580827%2fgstream-video-stream-error%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown

























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes








            up vote
            0
            down vote













            The error means that /dev/video0 is not a video capture device. Perhaps you need to set another device using:



            gst-launch-1.0 v4l2src device="/dev/videoX" ! video/x-raw,width=640,height=480 !  x264enc ! h264parse ! rtph264pay !  udpsink host=127.0.0.1 port=5000


            Where 'X' is the number of your video capture device. It might also happen that your device can't capture in 640x480 so you might want to add a videoscale before the caps and also it is safe to have a videoconvert before the encoder in case the input is in a format that the encoder can't handle.



            So something like:



            gst-launch-1.0 v4l2src device=<device> ! videoscale ! video/x-raw,width=640,height=480 ! videoconvert ! x264enc ! h264parse ! rtph264pay !  udpsink host=127.0.0.1 port=5000





            share|improve this answer

























              up vote
              0
              down vote













              The error means that /dev/video0 is not a video capture device. Perhaps you need to set another device using:



              gst-launch-1.0 v4l2src device="/dev/videoX" ! video/x-raw,width=640,height=480 !  x264enc ! h264parse ! rtph264pay !  udpsink host=127.0.0.1 port=5000


              Where 'X' is the number of your video capture device. It might also happen that your device can't capture in 640x480 so you might want to add a videoscale before the caps and also it is safe to have a videoconvert before the encoder in case the input is in a format that the encoder can't handle.



              So something like:



              gst-launch-1.0 v4l2src device=<device> ! videoscale ! video/x-raw,width=640,height=480 ! videoconvert ! x264enc ! h264parse ! rtph264pay !  udpsink host=127.0.0.1 port=5000





              share|improve this answer























                up vote
                0
                down vote










                up vote
                0
                down vote









                The error means that /dev/video0 is not a video capture device. Perhaps you need to set another device using:



                gst-launch-1.0 v4l2src device="/dev/videoX" ! video/x-raw,width=640,height=480 !  x264enc ! h264parse ! rtph264pay !  udpsink host=127.0.0.1 port=5000


                Where 'X' is the number of your video capture device. It might also happen that your device can't capture in 640x480 so you might want to add a videoscale before the caps and also it is safe to have a videoconvert before the encoder in case the input is in a format that the encoder can't handle.



                So something like:



                gst-launch-1.0 v4l2src device=<device> ! videoscale ! video/x-raw,width=640,height=480 ! videoconvert ! x264enc ! h264parse ! rtph264pay !  udpsink host=127.0.0.1 port=5000





                share|improve this answer












                The error means that /dev/video0 is not a video capture device. Perhaps you need to set another device using:



                gst-launch-1.0 v4l2src device="/dev/videoX" ! video/x-raw,width=640,height=480 !  x264enc ! h264parse ! rtph264pay !  udpsink host=127.0.0.1 port=5000


                Where 'X' is the number of your video capture device. It might also happen that your device can't capture in 640x480 so you might want to add a videoscale before the caps and also it is safe to have a videoconvert before the encoder in case the input is in a format that the encoder can't handle.



                So something like:



                gst-launch-1.0 v4l2src device=<device> ! videoscale ! video/x-raw,width=640,height=480 ! videoconvert ! x264enc ! h264parse ! rtph264pay !  udpsink host=127.0.0.1 port=5000






                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Feb 3 '15 at 20:42









                thiagoss

                1662




                1662






























                     

                    draft saved


                    draft discarded



















































                     


                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function () {
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f580827%2fgstream-video-stream-error%23new-answer', 'question_page');
                    }
                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    Ellipse (mathématiques)

                    Quarter-circle Tiles

                    Mont Emei