Search found 7 matches

Go to advanced search

by martin86
15 Sep 2023 15:31
Forum: Development around libVLC
Topic: Delphi (pascal), video frame, sdl2, directX
Replies: 9
Views: 2108

Re: Delphi (pascal), video frame, sdl2, directX

Currently with version 4.0 I am not able to play the video. in log it looks like something is corrupted AMedia := libvlc_media_new_path(libvlcInstance, PAnsiChar(AnsiString('./videoLobby.mkv'))); main debug: using audio output module "mmdevice" main debug: keeping audio output main debug: ...
by martin86
14 Sep 2023 18:25
Forum: Development around libVLC
Topic: Delphi (pascal), video frame, sdl2, directX
Replies: 9
Views: 2108

Re: Delphi (pascal), video frame, sdl2, directX

What you are looking for is the GPU version of libvlc_video_set_callbacks, which is called libvlc_video_set_output_callbacks. You will need a nightly libvlc 4.x build. See https://videolan.videolan.me/vlc/group__libvlc__media__player.html#gacbaba8adf41d20c935216d775926b808 I tryed to play video wit...
by martin86
13 Sep 2023 18:41
Forum: Development around libVLC
Topic: Delphi (pascal), video frame, sdl2, directX
Replies: 9
Views: 2108

Re: Delphi (pascal), video frame, sdl2, directX

What you are looking for is the GPU version of libvlc_video_set_callbacks, which is called libvlc_video_set_output_callbacks. You will need a nightly libvlc 4.x build. See https://videolan.videolan.me/vlc/group__libvlc__media__player.html#gacbaba8adf41d20c935216d775926b808 thanks, that looks promis...
by martin86
07 Sep 2023 20:07
Forum: Development around libVLC
Topic: Delphi (pascal), video frame, sdl2, directX
Replies: 9
Views: 2108

Re: Delphi (pascal), video frame, sdl2, directX

Again, you can't have it both ways. If you use GPU acceleration, you can't access the bitmaps from CPU. As you can see from my post I am trying to get dx9 texture (currently its not important if this will be on GPU or CPU). Why I get exception in for loop when trying to copy vlc video frame to dx9 ...
by martin86
07 Sep 2023 15:29
Forum: Development around libVLC
Topic: Delphi (pascal), video frame, sdl2, directX
Replies: 9
Views: 2108

Re: Delphi (pascal), video frame, sdl2, directX

Currently my last code looks like this Before play //libvlc_media_player_set_hwnd(AMediaPlayer, Pointer(Panel1.Handle)); [b]This is not set so the lock function is triggered?[/b] libvlc_video_set_callbacks(AMediaPlayer, @lock, @unlock, @display, @FrameContext[iId]); libvlc_video_set_format(AMediaPla...
by martin86
07 Sep 2023 09:17
Forum: Development around libVLC
Topic: Delphi (pascal), video frame, sdl2, directX
Replies: 9
Views: 2108

Re: Delphi (pascal), video frame, sdl2, directX

You can't have the cake and eat it. If you use hardware decoding, the frames are in GPU memory and thus not efficiently accessible from CPU. Is it possible to call libvlc_video_set_callbacks(AMediaPlayer, @lock, @unlock, @display, @FrameContext[iId]); without using SDL window? And use libvlc_video_...
by martin86
05 Sep 2023 18:24
Forum: Development around libVLC
Topic: Delphi (pascal), video frame, sdl2, directX
Replies: 9
Views: 2108

Delphi (pascal), video frame, sdl2, directX

Hello, I made Delphi form application and I have implemented usage of libvlc.dll and sdl2.dll to get video frame. Sdl is using lock, unlock and display function where you work with PSDL_Texture . According to my test showing video in SDL window use alot of CPU and very small amount of GPU (setting '...

Go to advanced search