No callbacks from V3.0.6

This forum is about all development around libVLC.
scott14468
New Cone
New Cone
Posts: 3
Joined: 08 Feb 2019 18:26

No callbacks from V3.0.6

Postby scott14468 » 08 Feb 2019 18:44

Hi All,
I've copied the program from this post: https://stackoverflow.com/questions/264 ... ay-a-frame, made a few modifications for my camera. It compiles and runs OK, but there are no cbVideoPrerender or cbVideoPostrender call backs. I do get HandleEvent calls and there is a Direct3D11 output window with live video.

From cruising around the web, I suspect there shouldn't be the Direct3D11 window in favor of returning frames to opencv to display. Is this correct?


Thanks,
Scott

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: No callbacks from V3.0.6

Postby Jean-Baptiste Kempf » 10 Feb 2019 22:04

What are you trying to do?
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

scott14468
New Cone
New Cone
Posts: 3
Joined: 08 Feb 2019 18:26

Re: No callbacks from V3.0.6

Postby scott14468 » 11 Feb 2019 13:21

Hi Jean-Baptiste,

Thanks for your reply.

Here's the background. We have created a UVC camera using the Cypress CX3 chip. The sensor we're using cannot stream YUYV data, it only outputs a Bayer RGB pattern. To get the CX3 to transport this data, we must fool the system by setting the USB attributes to believe the stream is in YUY2 format. This gets the data across, but of course the system tries to decode the stream as if it is YUY2. Due to the clipping in the conversion the transform is not reversible so I cannot reconstruct the incoming Bayer pattern.

So what I'm trying to do is get the incoming (unaltered) Bayer-formatted stream and send it to an OpenCV window for color-correct rendering.

Thanks,
Scott

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: No callbacks from V3.0.6

Postby Jean-Baptiste Kempf » 16 Feb 2019 11:07

You should use the API to get this, not set the callbacks on commandline.
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

scott14468
New Cone
New Cone
Posts: 3
Joined: 08 Feb 2019 18:26

Re: No callbacks from V3.0.6

Postby scott14468 » 18 Feb 2019 13:21

A little detail would be great.

Scott

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: No callbacks from V3.0.6

Postby Jean-Baptiste Kempf » 18 Feb 2019 18:08

See the libvlc_video_set_callbacks documentation
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 24 guests