v4l2src to support HDMI hotplug

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

v4l2src to support HDMI hotplug

Liu Xin

Dear community,


I need help on our product's HDMI input port. We want this feature: when the port is plugged in by a camera, it captures video stream from it, when it's unplugged, it just send a still image to the down stream pipeline. I know certain plugins are suitable for this job, like the diagram I draw below. 


filesrc -> jpegdec -> imagefreeze -> input-selector-> downstream

                                                     v4l2src -^


I just don't like the complexity of dealing with hotplug requirement, and wonder if there's better/simpler implementation, or even a single plugin that's just able to do that.


Please share your thoughts, thanks.


Best,

Xin


_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: v4l2src to support HDMI hotplug

Nicolas Dufresne-5
Le lundi 18 décembre 2017 à 03:21 +0000, Liu Xin a écrit :

> Dear community,
>
> I need help on our product's HDMI input port. We want this feature:
> when the port is plugged in by a camera, it captures video stream
> from it, when it's unplugged, it just send a still image to the down
> stream pipeline. I know certain plugins are suitable for this job,
> like the diagram I draw below.
>
> filesrc -> jpegdec -> imagefreeze -> input-selector-> downstream
>                                                      v4l2src -^
>
> I just don't like the complexity of dealing with hotplug requirement,
> and wonder if there's better/simpler implementation, or even a single
> plugin that's just able to do that.

There was some attempt I've seen over the time, but nothing has been
merged upstream really. One of these was a relatively independant
utility called FsIo:

https://gitlab.collabora.com/ocrete/farstream/tree/fsio

Was by far the most robust implementation I have seen. You could
plug/unplug cameras, it would seamlessly switch from one to another. Or
in the case there was nothing, it would produce snow for you. All
configurable of course.

>
> Please share your thoughts, thanks.
>
> Best,
> Xin
> _______________________________________________
> 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