Page 1 of 1

python-vlc HTTP Authentication failure-- please help?

Posted: 19 Jun 2024 03:06
by Benjibot
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.

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

Posted: 25 Jun 2024 16:21
by mfkl
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.

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

Posted: 30 Jun 2024 15:50
by Benjibot
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.