Greetings,
I am new to GStreamer...please excuse my ignorance...I am trying to learn this as quickly as I am able. I have the program(s) installed (Windows Vista) and have fired up the command line. I type the following 'test' pipeline...and it works just fine: gst-launch-1.0.exe videotestsrc ! autovideosink This also works fine when I change the properties to 'snow', 'ball', 'red'...etc... However when I attempt to use my webcam (by using 'autovideosrc'), I get an error of which I'm not exactly sure to what it is referring...here is the command followed by the output generated from GStreamer: gst-launch-1.0 autovideosrc ! video/x-raw,width=640,height=480 ! jpegenc ! rtpjpegpay ! udpsink host=127.0.0.1 port=5200 "setting pipeline to PAUSED... "pipeline is live and does not need PREROLL... ERROR from element /GstPipeline:pipeline0/GstAutoVideoSrc:autovideosrc0/GstKsVideoSrc:autovideosrc0-actual-src-ksvide: internal data stream error. Additional debug info: gstbasesrc.c(2939): gst-base-src-loop():/GstPipeline:pipeline0/GstAutoVideoSrc:autovideosrc0/GstKsVideoSrc:autovideosrc0-actual-video-src-ksvide: streaming stoppped, reason not-negotiated (-4) ERROR: pipeline doesn't want to preroll... Setting pipeline to PAUSED... Setting pipeline to READY... Setting pipleine to NULL... Freeing pipeline..." My system is an Acer TM 5720 laptop...Windows Vista OS...I know my built-in webcam (Acer Crystal Eye) is functioning...because it seems to work without any problems in other applications...so it is not the webcam or a driver issue. I seem to see this same error message no matter what I use as a 'src' element...? It is possible this is an OS problem (perhaps MS Vista is not supported)...??? Any insight about what the problem might be would be greatly appreciated...again remember I'm new to GStreamer so I apologize in advance. Regards. -- Sent from: http://gstreamer-devel.966125.n4.nabble.com/ _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
Le 22 déc. 2017 4:40 AM, "pangit_ako" <[hidden email]> a écrit : Greetings, The type for jpeg is image/jpeg,... The little oops is that you pass video/x-raw, that results in not-negotiated error.
_______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
Greetings,
I thank you for the reply...I believe I understand where I made the mistake...I had copied that code from another website and did not take adequate notice that the author on that site was grabbing screen images to stream... However I seem to get the same exact error using this, greatly simplified code...? gst-launch-1.0 autovideosrc ! autovideosink I don't imagine a pipeline can get much simpler than this...it still seems to reference the 'ksvideosrc' and displays the same error message feedback as in my original post...any idea what might cause that? I believe the 'autovideosrc' element should enable usage of my built-in webcam...if I'm not mistaken. thanks in advance...regards -- Sent from: http://gstreamer-devel.966125.n4.nabble.com/ _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
In reply to this post by Nicolas Dufresne-5
Greetings Mr. Dufresne,
I also tried your suggestion...I typed into my command line the following pipeline: gst-launch-1.0 autovideosrc ! image/jpeg, width=640, height=480 ! jpegenc ! rtpjpegpay ! udpsink host=127.0.0.1 port=5200 I received the following message output: "WARNING: erroneous pipeline: could not link autovideosrc0 to jpegenc0, neither element can handle caps image/jpeg width=(int)640 height=(int)480"...I re-typed the command pipline removing the "width/height" information and got the same response back from the program... Is it possible my OS (Vista) is having problems with GStreamer? Thanks again in advance Regards -- Sent from: http://gstreamer-devel.966125.n4.nabble.com/ _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
2017-12-22 20:42 GMT-02:00 pangit_ako <[hidden email]>: Greetings Mr. Dufresne, The sink video caps for jpegenc has to be 'video/x-raw' as you can check with 'gst-inspect jpegenc'. Nicolas probably got it backwords as the 'src' side of 'jpegenc' is the one that accepts only 'image/jpeg'. I bet your first 'negotiation error' was caused by your videosrc not providing video with the measurements you requested. Try the following please: gst-launch-1.0 autovideosrc ! videoscale ! videoconvert ! video/x-raw,width=640,height= rtpjpegpay ! udpsink host=127.0.0.1 port=5200 I've thrown an extra videoconvet just to be on the safe side. I believe that what will actually solve your issue is the videoscale. Is it possible my OS (Vista) is having problems with GStreamer? It sure is, always ;) But it doesn't seems to be the case here. Regards, Rodrigo Severo _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
Hello Mr. Severo,
Thank you for the reply and your suggestion. I still have no luck...the same error throws when I use the pipeline typed exactly as you had provided it. I also experimented with some other, simpler ones: gst-launch-1.0 autovideosrc ! videoscale ! videoconvert ! autovideosink and gst-launch-1.0 autovideosrc ! videoconvert ! videoscale ! autovideosink no dice...also tried something a bit different...placed a .wmv video file into the 'bin' folder on my system...ran the following pipeline (copied from a very similar example in the online documentation): gst-launch-1.0 -v filesrc location=lake.wmv ! videoconvert ! videoscale ! video/x-raw,width=100 ! autovideosink ...still had problems. I installed GStreamer on another laptop...a 64bit machine running Windows 10...and was able to get the following pipeline to show me the webcam on that machine: gst-launch-1.0 autovideosrc ! autovideosink ...so I guess my problems are being caused by Vista...? No matter what I do I cannot get the webcam in the Vista machine to be used as a 'source' and play...very frustrating... -- Sent from: http://gstreamer-devel.966125.n4.nabble.com/ _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
Try : gst-launch-1.0 autovideosrc ! decodebin ! autovideosink Le Mardi 26 décembre 2017 23h11, pangit_ako <[hidden email]> a écrit : Hello Mr. Severo, Thank you for the reply and your suggestion. I still have no luck...the same error throws when I use the pipeline typed exactly as you had provided it. I also experimented with some other, simpler ones: gst-launch-1.0 autovideosrc ! videoscale ! videoconvert ! autovideosink and gst-launch-1.0 autovideosrc ! videoconvert ! videoscale ! autovideosink no dice...also tried something a bit different...placed a .wmv video file into the 'bin' folder on my system...ran the following pipeline (copied from a very similar example in the online documentation): gst-launch-1.0 -v filesrc location=lake.wmv ! videoconvert ! videoscale ! video/x-raw,width=100 ! autovideosink ...still had problems. I installed GStreamer on another laptop...a 64bit machine running Windows 10...and was able to get the following pipeline to show me the webcam on that machine: gst-launch-1.0 autovideosrc ! autovideosink ...so I guess my problems are being caused by Vista...? No matter what I do I cannot get the webcam in the Vista machine to be used as a 'source' and play...very frustrating... -- Sent from: http://gstreamer-devel.966125.n4.nabble.com/ _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
Free forum by Nabble | Edit this page |