Search found 17 matches

Go to advanced search

by Domarius
01 May 2019 01:00
Forum: Development around libVLC
Topic: [solved] Python: Parameter format for "libvlc_video_set_aspect_ratio"
Replies: 4
Views: 1269

Re: [solved] Python: Parameter format for "libvlc_video_set_aspect_ratio"

Ah, I see, it's under the MediaPlayer object, which is what's returned when you call vlcInstance.media_player_new()
https://www.olivieraubert.net/vlc/pytho ... class.html
by Domarius
30 Apr 2019 01:17
Forum: Development around libVLC
Topic: [solved] Python: Parameter format for "libvlc_video_set_aspect_ratio"
Replies: 4
Views: 1269

Re: [solved] Python: Parameter format for "libvlc_video_set_aspect_ratio"

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 ...
by Domarius
29 Apr 2019 01:35
Forum: Development around libVLC
Topic: [solved] Python: Parameter format for "libvlc_video_set_aspect_ratio"
Replies: 4
Views: 1269

Re: [solved] Python: Parameter format for "libvlc_video_set_aspect_ratio"

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...
by Domarius
28 Apr 2019 07:07
Forum: Development around libVLC
Topic: [solved] Python: Parameter format for "libvlc_video_set_aspect_ratio"
Replies: 4
Views: 1269

[solved] Python: Parameter format for "libvlc_video_set_aspect_ratio"

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...
by Domarius
11 Apr 2019 00:50
Forum: Development around libVLC
Topic: SDL + libvlc choppy full screen on Pi 3, but VLC player is fine
Replies: 6
Views: 1497

Re: SDL + libvlc choppy full screen on Pi 3, but VLC player is fine

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...
by Domarius
08 Apr 2019 22:29
Forum: Development around libVLC
Topic: SDL + libvlc choppy full screen on Pi 3, but VLC player is fine
Replies: 6
Views: 1497

Re: SDL + libvlc choppy full screen on Pi 3, but VLC player is fine

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...
by Domarius
08 Apr 2019 05:25
Forum: Development around libVLC
Topic: SDL + libvlc choppy full screen on Pi 3, but VLC player is fine
Replies: 6
Views: 1497

SDL + libvlc choppy full screen on Pi 3, but VLC player is fine

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...
by Domarius
20 Feb 2019 18:14
Forum: Development around libVLC
Topic: LibVLC Sample Code - SDL1.2 works, SDL2 doesn't (Video example included)
Replies: 2
Views: 901

Re: LibVLC Sample Code - SDL1.2 works, SDL2 doesn't (Video example included)

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...
by Domarius
19 Feb 2019 00:35
Forum: Development around libVLC
Topic: LibVLC Sample Code - SDL1.2 works, SDL2 doesn't (Video example included)
Replies: 2
Views: 901

LibVLC Sample Code - SDL1.2 works, SDL2 doesn't (Video example included)

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 #...
by Domarius
18 Feb 2019 22:32
Forum: Development around libVLC
Topic: LibVLC_SampleCode_SDL - no codec is supported?
Replies: 5
Views: 1832

Re: LibVLC_SampleCode_SDL - no codec is supported?

This is the output I get; domarius@Domarius-Ubuntu ~ $ vlc --list | grep avcodec VLC media player 3.0.4 Vetinari (revision 3.0.4-0-gf615db6332) avcodec FFmpeg audio/video decoder avcodec FFmpeg audio/video decoder avcodec FFmpeg audio/video decoder avcodec FFmpeg audio/video encoder vdpau_avcodec VD...
by Domarius
18 Feb 2019 07:37
Forum: Development around libVLC
Topic: LibVLC_SampleCode_SDL - no codec is supported?
Replies: 5
Views: 1832

Re: LibVLC_SampleCode_SDL - no codec is supported?

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...
by Domarius
17 Feb 2019 00:07
Forum: Development around libVLC
Topic: LibVLC_SampleCode_SDL - no codec is supported?
Replies: 5
Views: 1832

LibVLC_SampleCode_SDL - no codec is supported?

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 ...
by Domarius
16 Feb 2019 23:22
Forum: Development around libVLC
Topic: LibVLC_SampleCode_SDL just displays a black window
Replies: 2
Views: 223

Re: LibVLC_SampleCode_SDL just displays a black window

Sorry, clearly I missed something first time around, because I've re-done everything and am getting a new (better?) error. I'll open a new thread.
by Domarius
15 Feb 2019 20:24
Forum: Development around libVLC
Topic: LibVLC_SampleCode_SDL just displays a black window
Replies: 2
Views: 223

LibVLC_SampleCode_SDL just displays a black window

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 ...
by Domarius
13 Feb 2019 23:59
Forum: Development around libVLC
Topic: Overlaying my own graphics on the SDL window when VLC is playing
Replies: 2
Views: 534

Re: Overlaying my own graphics on the SDL window when VLC is playing

Thank you Rémi. Ok so two separate OS windows. But won't this cause the foreground window to take away input from the video window?
by Domarius
13 Feb 2019 00:30
Forum: Development around libVLC
Topic: Overlaying my own graphics on the SDL window when VLC is playing
Replies: 2
Views: 534

Overlaying my own graphics on the SDL window when VLC is playing

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...
by Domarius
28 Apr 2017 22:29
Forum: VLC for Android and Chrome OS
Topic: Never resumes playback; Suggestion for fix
Replies: 0
Views: 267

Never resumes playback; Suggestion for fix

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...

Go to advanced search