Page 1 of 1

[LibVLC in C] Logo from memory instead of file

Posted: 14 Jan 2017 22:16
by derjanni
Hello everybody,

is there a way in C to avoid using a temporary file as below and pass the PNG image to LibVLC as a byte array from memory?

Code: Select all

libvlc_video_set_logo_string(mp,libvlc_logo_file,"/tmp/overlay.png");
Many thanks in advance,

Jan

Re: [LibVLC in C] Logo from memory instead of file

Posted: 15 Jan 2017 15:21
by RĂ©mi Denis-Courmont
No. You can use a memory mapped file from tmpfs though (not pretty).

Re: [LibVLC in C] Logo from memory instead of file

Posted: 18 Jan 2017 09:57
by derjanni
No. You can use a memory mapped file from tmpfs though (not pretty).
Thank you. I finally decided to switch to SDL for it.

Re: [LibVLC in C] Logo from memory instead of file

Posted: 19 Jan 2017 21:49
by wecVideoLanUser
I have a similar question. I simply need to extract a frame to a memory buffer instead of to file.
I don't want to have to call TakeSnapshot(), save to a temp file, then open that file.
The information has to be in memory (as a bit map etc...) before it can be saved to file so i know it is in there somewhere.

Does anyone know how to get the raw image data without using a file?

Re: [LibVLC in C] Logo from memory instead of file

Posted: 20 Jan 2017 00:32
by Jean-Baptiste Kempf
I have a similar question. I simply need to extract a frame to a memory buffer instead of to file.
I don't want to have to call TakeSnapshot(), save to a temp file, then open that file.
The information has to be in memory (as a bit map etc...) before it can be saved to file so i know it is in there somewhere.

Does anyone know how to get the raw image data without using a file?
Look at the video_format callbacks.