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
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
I want to seek to a position before playing a video :
player= new VlcMediaPlayer(instance);
player->setPosition(pos);
player->setTime(time);
player->play();
but it does not work and instead I used this code:
player= new VlcMediaPlayer(instance);
player->play();
player->setPosition(pos);
player->setTime(time);
it now works but first plays the video (and shows some frames of the begining of the file) , is there any way to seek to a position before playing?
I don't know what VlcMediaPlayer is but seeking in libvlc is done with libvlc_media_player_set_time call. And as you can see in the documentation it requires to be called on the video being played. So you have to call play before you can call seek. But you can pause right after the play and then seek. That should do the job.
The link to the libvlc forum containing the similar question.
Can you guys help me, what the best way for streaming video and sound from webcam over network? I have a problem, because i'm need to use Qt for that. Now i'm using QCamera and QVideoWidget just for show videostream to screen, but i need to send this stream to server, which will show this stream to QVideoWidget too. May be need to use QMediaRecorder for that, but i'm not see some methods, where i can get audio/video raw-data frame, or may be other, anyway, how do you see for this, what the best way for streaming. Thanks a lot!
I need to design a GUI in such a way that a video should be played in one thread (as a panel in the frame or window) and Camera video should be captured and displayed in another thread(as a panel in the frame or window). Please find the below link for the
I need a GUI as http://www.youtube.com/watch?v=mA883X4uaHk (pl watch from .35s).
I found that this can be done in QT. But am bit new to QT. Can Some one give me some tips on how to do this in QT.? Anything with the basic code to handle frames and panels would be really helpful.
I am creating a video frame output program in a c++ console application using direct show. I have the video loading in and playing fine, however, the video pops up in an ActiveMovie Window. Is there any way I can possibly disable this that way I can just output frame information to the command line window? Thanks in advance.
What kind of frame information do you want to output to the console? To not have the ActiveMovie video popup, you could just use the null renderer filter.