I think I fixed the problem, with direction and help from Fred. It was a permission-problem.

What I did to make things play, was to enable cgi- and actions-modules in apache (actions.load was apparently needed).

Copied hls.conf and hls.passwd to /etc/apache2/conf-available and make symlinks to ../conf-enabled (yes, I could have just put them in conf-enabled directly).

Copied hls_methods.pl to the cgi-bin-directory. Default in Debian is /usr/lib/cgi-bin).

Created a directory in the webroot where the files will be created by Glasscoder. In Debian, the default webroot is /var/www/html. In my case I created a directory called hls.

Modified hls.conf so the <Directory>-directive pointed to that directory. Also modified the AuthUserFile in hls.conf to point to the hls.passwd-file I previously copied.

Added a user and password to the hls.passwd-file with "$ htpasswd /etc/apache2/conf-available/hls.passwd <username>" and entered a password.

Made /var/www/html/hls accessible and writeable by the apache2-user (www-data).

Reloaded apache2-configuration with "$ service apache2 reload", and voila. In GlassCoder, you set server-url to point to a masterfile in the created directory under webroot (in my case http://localhost/hls/listen.m3u8), and username/password to match what you added in hls.passwd. If everything went well, GlassCoder will create listen.m3u8 and associated files in localhost/hls/.

If I missed or forgot to add something, let me know. :)

Marius

On 03/31/2017 06:01 PM, Marius Wikstøl wrote:
Hi,

Has anyone had success using Glasscoder to stream HLS?

I'm pretty much faceplanting trying to get this to work.
I've copied the hls.*-files to /etc/apache2/conf-enabled and hls_methods.pl to /usr/lib/cgi-bin. I've added an entry in hls.passwd with htpasswd and changed the paths in hls.conf to match AuthUserFile and added actions.load to the mods-enabled/-directory so Apache2 loads this module. cgi is also loaded and defined. The directory /var/www/html/hls has also been created as defined in hls.conf

I'm getting both "method not allowed" and "internal server error" in Glasscoder and apache2 errorlog.

Using Debian Stable and Glasscoder 0.9.21.



_______________________________________________
Rivendell-dev mailing list
Rivendell-dev@lists.rivendellaudio.org
http://caspian.paravelsystems.com/mailman/listinfo/rivendell-dev

Reply via email to