401 when accessing live TV
Added by ben barker about 12 years ago
Hi,
I have found an old(ish) bug report here:
https://www.lonelycoder.com/redmine/issues/856
That has been closed down, but the symptoms describe fit what I am seeing still. I am running mint 13, with the deb package downloaded from this site. All seems to work fine - except that I have to pass in credentials via the http URL to get video. If I don't do this (as happens when I simply click "play" from the channels tab the logs show:
Sep 08 21:39:15 HTTP: 192.168.1.72: / -- 401
Sep 08 21:39:15 HTTP: 192.168.1.72: /stream/channelid/11 -- 401
If I use the "play" link from the channels listing under the config>Adapter page, then the video plays fine - though it sometimes takes a while to start
I have no authrntication to access the site as yet, so the "access control" page is empty, though the superuser file on the server does have the credentials I entered during installation, and which I need to play the streams.
Disabling all user authentication doesn't so far seem to help either. Any ideas?
Replies (6)
RE: 401 when accessing live TV - Added by Michael Neurohr about 12 years ago
Hi!
I've exactly the same problem.
I'm running Tvheadend 2.99 on Kubuntu 12.04 32-bit.
When trying to play any channel from the Channel list, I get
Sep 09 12:16:42 HTTP: 192.168.5.10: / -- 401
Sep 09 12:16:42 HTTP: 192.168.5.10: /playlist/channelid/154 -- 401
Can we sole that issue anyhow?
MfG,
newpipe
RE: 401 when accessing live TV - Added by ben barker about 12 years ago
I'm not quite sure exactly what fixed it, or if it is permanenrtly fixed, but slightly randomly I did the following:
deleted superuser file
deleted accescontrol/*
su into hts account
ran tvheadend -C from within the hts account
killed tvheadend
restarted from root using /etc/init.d/tvheadend restart
For now the problem has vanished, though sometimes a channel seems to time out before appearing and I have to click play again
RE: 401 when accessing live TV - Added by Tom K about 12 years ago
great ... thank you. worked for me
RE: 401 when accessing live TV - Added by Michael Neurohr about 12 years ago
hmm... that didn't work for me.
RE: 401 when accessing live TV - Added by Adam Sutton about 12 years ago
Are you talking about the VLC plugin?
That is known not to work unless you have an anonymous access account that can stream. But there has not been sufficient interest in fixing it at the moment.
If you're using VLC (or other external client) it will need to support HTTP basic Auth (VLC certainly does).
Adam
RE: 401 when accessing live TV - Added by ben barker about 12 years ago
When I installed from source (as opposed to package) I did notice that the plugin stopped working. A but of a hack, but I worked around it by editing the source such that the "play" button now points at a php file:
header('Content-Disposition: attachment; filename="tv.vlc"');
$c=$_REQUEST['c'];
$path="http://192.168.1.1:9981/".$c;
$params="--network-caching=5000";
echo $path." ".$params;
?>
which is a file of type VLC, and launches the channel. Like I say a bit messy, but it works for me :-)