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

Add RPi ARM Docker image #10

Open
schmich opened this issue Apr 30, 2017 · 4 comments
Open

Add RPi ARM Docker image #10

schmich opened this issue Apr 30, 2017 · 4 comments

Comments

@schmich
Copy link
Owner

schmich commented Apr 30, 2017

  • Piriscope can also run as a Docker image
  • Built on top of Alpine ARM or Raspbian? (can use dpkg if Raspbian)
  • e.g. docker run --restart always -d schmich/piriscope
  • Easy way to bundle dependencies? (ffmpeg, x264, ...)
@schmich schmich changed the title Add Docker image Add RPi ARM Docker image Apr 30, 2017
@extant89
Copy link

extant89 commented Dec 7, 2018

I have the following problem when building the container? Any hints how to solve?

pi@raspberrypi:~/Downloads/piriscope-master $ sudo docker build -t "piriscope:v1" .

Step 4/7 : COPY piriscope_0.0.1-1_armhf.deb /tmp/piriscope_0.0.1-1_armhf.deb
COPY failed: stat /var/lib/docker/tmp/docker-builder553452684/piriscope_0.0.1-1_armhf.deb: no such file or directory

@schmich
Copy link
Owner Author

schmich commented Dec 7, 2018

This project is a bit dilapidated, so there are some rough edges.

There are layers needed to build the final piriscope docker image. If you have Ruby installed, most of these steps are easy. If you don't have Ruby, you can open the .rb files and follow along:

1. Build the piriscope executable

ruby -I. build-go-docker.rb

This uses Dockerfile-go to build a docker image that compiles the piriscope executable from the source in piriscope.go. The output is the piriscope executable binary and the piriscope-go image that can be deleted.

2. Build the piriscope Debian package

ruby -I. build-deb-docker.rb

This uses Dockerfile-deb to build an image that creates the Debian package using the output from step 1. The output is the piriscope_0.0.1-1_armhf.deb Debian package and the piriscope-deb image that can be deleted.

3. Finally, build the piriscope docker image

docker build -t "piriscope:v1" .

This uses Dockerfile to build the final Raspbian-based piriscope docker image using the output from step 2. The output is the piriscope:v1 docker image.

Let me know if you hit any other issues.

@extant89
Copy link

extant89 commented Dec 9, 2018


When I run I am getting the following errors in periscope and stream doesn't work: Couldn't find H.264 parameter set(s) and Audio codec must be AAC-LC. Settings must be as listed here: https://assets.pscp.tv/help/PeriscopeProducer.pdf

@extant89
Copy link

managed to make it work using the below command. you need to update some config settings in your code:

raspivid -n -o - -t 0 -fps 30 -b 4000000 -w 1280 -h 720 | ffmpeg -re -ar 44100 -ac 2 -acodec pcm_s16le -f s16le -ac 2 -i /dev/zero -f h264 -i - -vcodec copy -acodec aac -ab 128k -g 50 -strict experimental -f flv rtmp://or.pscp.tv:80/x/{{KEY}}

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

2 participants