How to get input video property?

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

How to get input video property?

quang_openstack
Hi everyone,
Are there anyway to get video resolution and frame-rate from input device (/dev/device0, ...)?
Any suggestion are appreciate.
Thank in advance.
Reply | Threaded
Open this post in threaded view
|

Re: How to get input video property?

Baby Octopus
Administrator
You can parse the output of following command

gst-launch-1.0 v4l2src ! fakesink -v | grep fake
Reply | Threaded
Open this post in threaded view
|

Re: How to get input video property?

quang_openstack
Hi Baby Octopus,
Thank for your reply, but that command does not give back the accuracy information about input video stream and it make my hardware stop working.
Do you have other suggestion?
Thank.
Reply | Threaded
Open this post in threaded view
|

Re: How to get input video property?

Tim Müller
On Wed, 2017-08-16 at 21:56 -0700, quang_openstack wrote:

Hi,

> Thank for your reply, but that command does not give back the
> accuracy information about input video stream and it make my hardware
> stop working. Do you have other suggestion?

You want the output of

  gst-device-monitor-1.0 Source/Video

basically?

Cheers
 -Tim

--
Tim Müller, Centricular Ltd - http://www.centricular.com

Join us at the GStreamer Conference!
21-22 October 2017 in Prague, Czech Republic
http://gstreamer.freedesktop.org/conference/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: How to get input video property?

quang_openstack
Dear Tim Müller,
How can we find video resolution and framerate by gst-device-monitor-1.0?
Thank,
Reply | Threaded
Open this post in threaded view
|

Re: How to get input video property?

Yasushi SHOJI-2
In reply to this post by quang_openstack
Hi,

On Wed, Aug 16, 2017 at 6:24 PM, quang_openstack <[hidden email]> wrote:
>
> Are there anyway to get video resolution and frame-rate from input device
> (/dev/device0, ...)?

$ sudo apt-get install v4l-utils
$ v4l2-ctl --all
-- 
           yashi


_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel