That worked as well! Thanks. So that uncovers some of the mystery about what was wrong with the long version. Can you tell me, looking at the API docs,https://www.olivieraubert.net/vlc/python-ctypes/doc/ how I was supposed to discover the "player.video_set_aspect_ratio('16:9')" version of ...
I asked here and got an answer :) https://python-forum.io/Thread-Can-t-work-out-parameter-format-for-LibVLC-functions?pid=78868#pid78868 The correct way is: player.video_set_aspect_ratio('16:9') I'm still confused vlc.libvlc_video_set_aspect_ratio(player, '16:9') doesn't work, but player.video_set_a...
I'm using the vlc.py Python wrapper, and I can't work out what format the parameters need to be in when calling "libvlc_video_set_aspect_ratio" vlc.libvlc_video_set_aspect_ratio(player, "16:9") Gives the error; ctypes.ArgumentError: argument 2: <class 'TypeError'>: wrong type vlc...
Just for the record, opengl / directX zero copy callbacks are coming into 4.0 but you'll need to handle this at a lower level. Thank you, that is good to know. You mean with X11 embedding? VLC will use the surface for opengl yes, so if you want to draw something on top, you should create another su...
Thanks guys! Well based on what you've said, it sounds like using a method where you get to draw the VLC video wherever you want, bypasses the speed optimisations that other implementations use. So I will discard the approach and forego the possibility of drawing my own text over the VLC video playb...
Under Raspbarian, using the included VLC app, playing videos full screen on my 800x480 display works great, at full speed, no frames dropped. But in my app compiled with SDL 1.2 and libvlc, the full screen playback is choppy! More detail: I'm making an app with video playback in it, and using the SD...
Ok thank you. I'll do some more research. I compiled with that command line, and got the same result. I re-installed SDL2 for the umpteenth time with "sudo apt-get install libsdl2-dev" and it always finishes with "0 to upgrade, 0 to newly install, 0 to remove and 155 not to upgrade.&q...
I'm trying to get the SDL2 sample code to work. I can get audio, but the window renders blank. But the SDL 1.2 sample works fine. Here's what I've discovered so far I am using the SDL 2.0 version linked here , the one halfway down the page I changed the 2 #include "SDL/..." entries to be #...
apt-get install vlc? Yes, installed. As stated, I already installed VLC, both through the Software Center, and the terminal as well (with that very command) just to be sure. libavcodec missing? Well libavcodec57 appears to be installed, after I used this command I found to determine what codecs are...
Just trying to get the code working from here https://wiki.videolan.org/LibVLC_SampleCode_SDL/ I am compiling on Ubuntu 18.04.1 LTS and have installed libsdl2-dev and libvlc-dev, and am linking with -lSDL2 -lvlc (I have also installed VLC itself since apparently on Linux you need to do that to make ...
I'm trying to get this sample code to work; https://wiki.videolan.org/LibVLC_SampleCode_SDL/ I'm using CodeBlocks on Ubuntu and linking with "-lSDL2 -lvlc" and the program compiles. However, running the program and specifying a video file, I get a black window. Pressing Space will exhibit ...
I want to display text, and a semitransparent menu etc. over the video while the video plays. What is the easiest way to do this? I'm currently using Python and PySDL2 (SDL2 wrapper), and the vlc.py wrapper. I'm vaguely aware this may involve locking the surface to make it thread safe, but if it wou...
Hi guys, I've just accepted that the app will never resume playback in my videos and have taken to writing the time code in my notes every time I have to stop watching. I've tried various combinations of gracefully switching away from the app, involving pausing first, or pressing back to view the fi...