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
#6
(Apr-28-2019, 09:55 PM)Yoriz Wrote: What does libvlc_video_get_aspect_ratio return, maybe it will give an indication of what a psz_aspect is.
I printed the output of libvlc_video_get_aspect_ratio, and it just prints "None"... so nothing useful there :(

I would have thought API documentation contains the info on the variable types, and that I just couldn't work out how to interpret that from those docs. So it doesn't look like it contains that information?

I found this in the main LibVLC documentation (rather than going through the Python version)
https://www.videolan.org/developers/vlc/...b4a6968e5e
And if I click "psz_string" it's defined as "char* vlc_value_t::psz_string".
When I was last trying to solve this problem, I was looking into a Python fuction called "str_to_bytes" so that may have something to do with it, but I can't remember why.
Reply


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

Possibly Related Threads…
Thread Author Replies Views Last Post
  [ERROR] ParamValidationError: Parameter validation failed: Invalid type for parameter gdbengo 3 11,603 Dec-26-2022, 08:48 AM
Last Post: ibreeden
  main libvlc error: stale plugins cache: schascheck 2 7,850 Dec-27-2020, 05:24 PM
Last Post: schascheck
  User functions don't work: Baldev10 7 3,275 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,864 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