python-vlc HTTP Authentication failure-- please help?

This forum is about all development around libVLC.
Benjibot
New Cone
New Cone
Posts: 2
Joined: 19 Jun 2024 02:55

python-vlc HTTP Authentication failure-- please help?

Postby Benjibot » 19 Jun 2024 03:06

I am attempting to capture video from a URL using the python-vlc library. However, the site requires a username/password login that's prompted when you first visit.
Of course, simply passing the URL to a new media instance simply throws the following error:

Code: Select all

[0000718268001630] access stream error: HTTP connection failure [00000000020dd470] main input error: Your input can't be opened [00000000020dd470] main input error: VLC is unable to open the MRL 'https://example.com:80'. Check the log for details.
Any pointers for me?
As a side note, I also would like to figure out where the log is written so that I can read it.
As another side note, I am new to using this library, and would very much appreciate some tips on getting more familiar with it. I've been reading the documentation, but I've been having trouble figuring out exactly how all the puzzle pieces fit together, so to speak.

mfkl
Developer
Developer
Posts: 746
Joined: 13 Jun 2017 10:41

Re: python-vlc HTTP Authentication failure-- please help?

Postby mfkl » 25 Jun 2024 16:21

For auth, look into this https://github.com/oaubert/python-vlc/b ... c.py#L5289

For logs, look into https://github.com/oaubert/python-vlc/b ... c.py#L5204 or https://github.com/oaubert/python-vlc/b ... c.py#L5218

For tips, look for samples on github, in that repo I linked and else where using github search.
https://mfkl.github.io

Benjibot
New Cone
New Cone
Posts: 2
Joined: 19 Jun 2024 02:55

Re: python-vlc HTTP Authentication failure-- please help?

Postby Benjibot » 30 Jun 2024 15:50

Thank you! Those are definitely some good starters, I appreciate it!
I have tried using those methods for setting a log file, but found issues with getting them to work properly; I'll have to take another crack at it.


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 11 guests