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");
Jan
Code: Select all
libvlc_video_set_logo_string(mp,libvlc_logo_file,"/tmp/overlay.png");
Thank you. I finally decided to switch to SDL for it.No. You can use a memory mapped file from tmpfs though (not pretty).
Look at the video_format callbacks.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?
Return to “Development around libVLC”
Users browsing this forum: No registered users and 15 guests