Hi all,
I need to save a stream from a ELP USB webcam on a Raspberry Pi 3 at higher resolution and higher framerate as possible. I reached my best result with a video at 1280x720x12fps Anyone has obtained better results? My pipeline is the following: gst-launch-1.0 v4l2src device=/dev/video0 ! queue ! videoscale ! "video/x-raw,width=1280,height=720" ! queue ! videoconvert ! omxh264enc ! queue ! h264parse ! queue ! filesink location=test.mp4 -e Thank you Walter
Walter Lucetti
www.myzhar.com |
Hi,
You may want to have a look at https://github.com/thaytan/gst-rpicamsrc This should let you use the hardware to the max of it's capacity. Olivier On Tue, 2017-02-07 at 00:57 -0800, Myzhar wrote: > Hi all, > > I need to save a stream from a ELP USB webcam on a Raspberry Pi 3 at > higher > resolution and higher framerate as possible. > > I reached my best result with a video at 1280x720x12fps > > Anyone has obtained better results? > > My pipeline is the following: > > gst-launch-1.0 v4l2src device=/dev/video0 ! queue ! videoscale ! > "video/x-raw,width=1280,height=720" ! queue ! videoconvert ! > omxh264enc ! > queue ! h264parse ! queue ! filesink location=test.mp4 -e > > Thank you > Walter > > > > > > -- > View this message in context: http://gstreamer-devel.966125.n4.nabble > .com/Best-way-to-save-video-on-Rpi3-tp4681749.html > Sent from the GStreamer-devel mailing list archive at Nabble.com. > _______________________________________________ > gstreamer-devel mailing list > [hidden email] > https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel Olivier Crête [hidden email] _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
Hi Olivier, that's a good project, but I'm not using the rpicam. I'm using an HD USB camera made by ELP: http://www.elpcctv.com/ Thank you Walter 2017-02-09 21:28 GMT+01:00 Olivier Crête <[hidden email]>: Hi, _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Walter Lucetti
www.myzhar.com |
In reply to this post by Myzhar
Le mardi 07 février 2017 à 00:57 -0800, Myzhar a écrit :
> I need to save a stream from a ELP USB webcam on a Raspberry Pi 3 at > higher > resolution and higher framerate as possible. > > I reached my best result with a video at 1280x720x12fps > > Anyone has obtained better results? > > My pipeline is the following: > > gst-launch-1.0 v4l2src device=/dev/video0 ! queue ! videoscale ! > "video/x-raw,width=1280,height=720" ! queue ! videoconvert ! > omxh264enc ! > queue ! h264parse ! queue ! filesink location=test.mp4 -e USB3, you have to use some compression in order to gain higher frame- rate. That's why most USB camera supports JPEG compression, and fancier camera will support H264. Try one of this compression. Nicolas _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel signature.asc (188 bytes) Download Attachment |
Hi Nicolas, as far as I know the ELP cameras supports MJPEG format, but I have not understood the right way to get this format using "vl42src". I tried a lot of "formats", but only I420 is accepted. Walter 2017-02-09 22:18 GMT+01:00 Nicolas Dufresne <[hidden email]>: Le mardi 07 février 2017 à 00:57 -0800, Myzhar a écrit : _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Walter Lucetti
www.myzhar.com |
Le 9 févr. 2017 5:31 PM, "Walter Lucetti" <[hidden email]> a écrit :
You can get JPEG from v4l2src using a caps filter as follow: v4l2src ! image/jpeg ! ... This is supported by nearly all USB cameras these days. Try with your laptop camera as an reference. I don't own an ELP, so I'm not able to validate if there is any issue specific to this model. Regards, Nicolas
_______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
In reply to this post by Myzhar
On Thu, 2017-02-09 at 23:29 +0100, Walter Lucetti wrote:
> as far as I know the ELP cameras supports MJPEG format, but I have > not understood the right way to get this format using "vl42src". > > I tried a lot of "formats", but only I420 is accepted. Try something like this for starters: gst-launch-1.0 v4l2src ! image/jpeg ! queue ! jpegparse ! matroskamux ! filesink location=video.mkv You should be able to see a list of the supported formats with gst-device-monitor-1.0 Video/Source Cheers -Tim -- Tim Müller, Centricular Ltd - http://www.centricular.com _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
I tried with H264, it works really well on my laptop, but on Rpi3 jpegenc seems to crash. I don't remember the error and I cannot verify it until I will not receive my second Rpi3. I left the other to the customer that is trying to make video on sport events ;-) -- Walter Lucetti email: [hidden email] web: www.robot-home.it - www.opencv.it project: http://myzharbot.robot-home.it Il 12 Feb 2017 19:50, "Tim Müller" <[hidden email]> ha scritto: On Thu, 2017-02-09 at 23:29 +0100, Walter Lucetti wrote: _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Walter Lucetti
www.myzhar.com |
Free forum by Nabble | Edit this page |