Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enabling HLS encription breaks things #146

Open
nfettinger opened this issue Nov 18, 2020 · 0 comments
Open

Enabling HLS encription breaks things #146

nfettinger opened this issue Nov 18, 2020 · 0 comments

Comments

@nfettinger
Copy link

I am trying to enable the HLS encryption by following the README, but after I perform this step, the stream stops working/loading.

Here is an example of the script used that works, HLS is not encrypted
sudo /home/pi/picam-1.4.8-binary/picam -o /run/shm/hls --channels 1 --videobitrate 4000000 --vfr --avclevel 3.1 --autoex --time --alsadev hw:0,0 >/var/log/picam.log 2>&1 &

Now, when I change this to enable the encryption (enc.key file already generated), the ngix served page never loads the stream. No errors are given in the log file either. I have tried both the default key and a personal hex key.
sudo /home/pi/picam-1.4.8-binary/picam -o /run/shm/hls --hlsenc --hlsenckeyuri enc.key --hlsenckey f0f1f2f3f4f5f6f7f8f9fafbfcfdfeff --hlsenciv 000102030405060708090a0b0c0d0e0f --channels 1 --videobitrate 4000000 --vfr --avclevel 3.1 --autoex --time --alsadev hw:0,0 >/var/log/picam.log 2>&1 &

Is the stream changing the output path that needs to be updated in the json.conf file? Does the client web browser need to provide the key in some way?

The fact that the log file indicates the "capturing started" with no errors makes me think this could be a ngix issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant