Can you change the frames before they get displayed?
Posted: 13 Sep 2022 12:04
Hello
I got a source code from an industry partner that takes a video stream and displays it via VlcMediaPlayer from the VLC library using QtCreator.
So far everything is fine.
The video stream comes from a camera with a severe fish-eye lense, and I would like to transform the image usiing opencv before displaying it.
I have the function to undo the fisheye effect and it works fast and stable, but only on a single image.
There is not much source code regarding the video stream, but the small parts look like this:
>>>
Init():
instance = new VlcInstance(VlcCommon::args(), this);
player = new VlcMediaPlayer(instance);
player->setVideoWidget(ui->widget_VLC);
onPLayVideo():
player->open(media);
onStopVideo():
player->stop();
<<<
So here my question: Can i somehow get to every frame from the player and adapt it before it gets displayed?
I tried to look at the github sources, but I could not find anything like an event handler where I could inject my transformation code...
Regards
Bernd
I got a source code from an industry partner that takes a video stream and displays it via VlcMediaPlayer from the VLC library using QtCreator.
So far everything is fine.
The video stream comes from a camera with a severe fish-eye lense, and I would like to transform the image usiing opencv before displaying it.
I have the function to undo the fisheye effect and it works fast and stable, but only on a single image.
There is not much source code regarding the video stream, but the small parts look like this:
>>>
Init():
instance = new VlcInstance(VlcCommon::args(), this);
player = new VlcMediaPlayer(instance);
player->setVideoWidget(ui->widget_VLC);
onPLayVideo():
player->open(media);
onStopVideo():
player->stop();
<<<
So here my question: Can i somehow get to every frame from the player and adapt it before it gets displayed?
I tried to look at the github sources, but I could not find anything like an event handler where I could inject my transformation code...
Regards
Bernd