Python Forum
Can't work out parameter format for LibVLC functions
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Can't work out parameter format for LibVLC functions
#4
(Apr-28-2019, 08:00 PM)Yoriz Wrote: Try vlc.libvlc_video_set_aspect_ratio(player, (16,9))
Thank you. Well, I tried it, I got the first error again; "ctypes.ArgumentError: argument 2: <class 'TypeError'>: wrong type"

I've made the minimum code available at this pastebin; It needs vlc.py in the same folder and libvlc and SDL2 installed. And then just change the hardcoded "your_video.mp4" to whatever you want. Then you press 1 or 2 to force the aspect ratio.

(Apr-28-2019, 08:02 PM)buran Wrote: cross-posted https://forum.videolan.org/viewtopic.php?f=32&t=149188
please, don't cross-post or let us know if you asked the same question elsewhere
No worries, I will do so moving forward. I always thought cross-posting referred to different boards within the same forum. I gave it a day there before I posted somewhere else. I've posted there before and I get the feeling they maybe don't like Python questions, and I figure this is more of a pure Python question anyway. I think this is just a matter of understanding how to convey certain variable types in Python.
Reply


Messages In This Thread
RE: Can't work out parameter format for LibVLC functions - by Domarius - Apr-28-2019, 09:46 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  [ERROR] ParamValidationError: Parameter validation failed: Invalid type for parameter gdbengo 3 11,387 Dec-26-2022, 08:48 AM
Last Post: ibreeden
  main libvlc error: stale plugins cache: schascheck 2 7,811 Dec-27-2020, 05:24 PM
Last Post: schascheck
  User functions don't work: Baldev10 7 3,229 Aug-18-2020, 08:34 PM
Last Post: deanhystad
  I writte 5 functions (def) but on 6 don't work. Someone can help me? perrud 2 2,835 Feb-03-2018, 10:20 AM
Last Post: perrud

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020