I have Blackmagic intensity pro capture card and GoPro Hero 3 connected to it with HDMI.
I have installed v4l2loopback to /dev/video0.
Trying to capture video with decklinksrc to v4l2sink:
gst-launch decklinksrc mode=8 connection=1 ! ffmpegcolorspace ! v4l2sink device=/dev/video0 sync=false
If I use mplayer:
mplayer tv:// -tv device=/dev/video0
It works perfect, but Skype shows video0 as black screen.
Cheese and flash don't show this device at all.
How can I get it work as webcam in flash and skype?
If mplayer shows the video nicely and skype doesn't, then chances are high that you really hit a bug in skype (and/or flash).
Both skype and flash are known to be a bit botchy in their v4l2 imlementation.
Having said that, make sure that you are using a recent enough version of v4l2loopback (according to the NEWS-file, you should have at least version 0.6.3), as this will contain some hacks to make skype and flash work.
Related
I'm trying to create an interface that would allow me to drive a remote controlled car.
I was wondering if it were possible to display a video using ImGui ? I know I can split my video into several frames and display each frames one after the other but is there any other way to do this ?
Thank you !
Yes, it is possible to display a video in dear ImGui
Above picture shows the sample of displaying from the webcam feed using ESCAPI.
refer https://github.com/jarikomppa/escapi/ for more details.
I once developed an application using imgui that displayed video via imgui, and it did work, but there was performance limitations. If you dont need to display more than 8 feeds at a time, you should be okay.
You'll need an appsink on your gst pipeline, and then in the appsink you need to pull the gstbuffer and convert it to a GL texture, then pass the GL texture to imgui.
You can reference this repo, its the same one i used as a starting block:
https://github.com/tbeloqui/gst-imgui
Hello i am recording screen to video file with GStreamer ximagesrc element using QT.
I want to draw circles on mouse clicks locations.
Can someone give a hint how to achieve this, looking at GstVideoOverlay I understand that it is used only on playing video in some window and draw in that window not directly in video stream that could be saved to file. Guessing that GstVideoOverlayRectangle can help here, but i`m not sure...
Thanks :)
I would recommend to look at cairooverlay:
https://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-good/html/gst-plugins-good-plugins-cairooverlay.html
I am using gstreamer-1.0 with ximagesrc for capturing the screen of my Linux box...
Unfortunately I see some "tearing" on the captured images, and I guess it is due to the lack of v-sync while grabbing the desktop...
Is v-sync supported somehow by ximagesrc? Does it depend on system configuration and/or driver? Looking at ximagesrc documentation I can't find any useful details about that... but maybe there is some "black magic" for making this working... :)
I've written a c++ program that receives a RTSP stream via gstreamer and displays this video via Qt5 in a QWidget. As the gstreamer videosink, I use a Widgetqt5glvideosink.
The problem is when I look at the received stream it has too much red-value in it. This only occurs when the vertical resolution exceeds +-576 pixels. (lower resolutions have no issue)
When I use cpu rendering (Widgetqt5videosink) instead of openGL rendering i get a correct image.
When I view the stream via gstreamer command line or via VLC it is also correct.
So it likes to be an issue when using an openGL rendered QWidget.
Is this an driver issue or something else?
Info:
Tested on Ubuntu16.04 and 17.04 for the viewer application.
Links:
https://gstreamer.freedesktop.org/data/doc/gstreamer/head/qt-gstreamer/html/qtvideosink_overview.html
I managed to fix my problem by patching two files in the source code of qt-gstreamer.
There were two wrong color matrices of the colorimetry BT709.
Patch to fix red artifact in Widgetqt5glvideosink
I'm using the preview pin (PIN_CATEGORY_PREVIEW) on RenderStream to display the video of a webcam, but even though the function returns 0x1, the video window that pops up is empty. I can see the webcam turning on (LED turned green), but there's no image. This is the same with a capture pin, where the buffer never gets filled.
Interestingly, the program works fine for webcams built into laptops. I've tested with two separate laptops and both worked fine. The webcam itself is fully functional as I'm able to play video using Skype or MATLAB.
Does anyone have a clue to what may be happening here?