libVLC 4 + OpenGL callbacks
Posted: 27 Apr 2019 11:38
Hi,
I am using libVLC 4 with opengl callbacks to play videos in my application. Everything works pretty well (playing at a different rate, asking for playing/pausing...) but ...
I have got rendering issues:
- I would like to display the first image of the video pausing the video and asking the user to press the play button. To do that I ask for playing the video looping next until the getVideoFrame return a valid texture ID. Have you got an idea to do a better snapshot of the first video image ?
- I would like to use hardware to accelerate decompression and it seems NVDECODE is not used (this codec would enable me to play 6K or 8K videos if available). Is there any way to activate it ?
- I would like to play the videos without taking into account the metadata (to display equirectangular videos without using the video 360 mode included in VLC), is there an option/flag/function to do that ?
And an issue more related to the (lib)VLC way of doing things :
- I would like to stop the video at the end and ask for returning to the beginning of the video when pressing play. I struggled with the way to detect the end of the video and it seems that sometimes I detect the end too late which prevents me to go back to the beginning (I use the libvlc_media_player_set_position function after checking the video is paused using libvlc_media_player_is_playing and libvlc_media_player_pause if needed ).
Regards
I am using libVLC 4 with opengl callbacks to play videos in my application. Everything works pretty well (playing at a different rate, asking for playing/pausing...) but ...
I have got rendering issues:
- I would like to display the first image of the video pausing the video and asking the user to press the play button. To do that I ask for playing the video looping next until the getVideoFrame return a valid texture ID. Have you got an idea to do a better snapshot of the first video image ?
- I would like to use hardware to accelerate decompression and it seems NVDECODE is not used (this codec would enable me to play 6K or 8K videos if available). Is there any way to activate it ?
- I would like to play the videos without taking into account the metadata (to display equirectangular videos without using the video 360 mode included in VLC), is there an option/flag/function to do that ?
And an issue more related to the (lib)VLC way of doing things :
- I would like to stop the video at the end and ask for returning to the beginning of the video when pressing play. I struggled with the way to detect the end of the video and it seems that sometimes I detect the end too late which prevents me to go back to the beginning (I use the libvlc_media_player_set_position function after checking the video is paused using libvlc_media_player_is_playing and libvlc_media_player_pause if needed ).
Regards