diff --git a/Dockerfile b/Dockerfile index db6d6e2..5792544 100644 --- a/Dockerfile +++ b/Dockerfile @@ -85,6 +85,8 @@ RUN go build -x -o media-roller ./src # youtube-dl needs python FROM python:3.8.1-alpine3.11 +# This is where the downloaded files will be saved in the container. +ENV MR_DOWNLOAD_DIR="/download" ENV PATH=/opt/ffmpeg/bin:$PATH RUN apk add --update --no-cache \ @@ -108,6 +110,7 @@ COPY --from=builder /app/media-roller /app/media-roller COPY --from=builder /opt/ffmpeg /opt/ffmpeg COPY --from=builder /usr/lib/libfdk-aac.so.2 /usr/lib/libfdk-aac.so.2 COPY templates /app/templates +COPY static /app/static WORKDIR /app diff --git a/README.md b/README.md new file mode 100644 index 0000000..6217003 --- /dev/null +++ b/README.md @@ -0,0 +1,25 @@ +# Media Roller +A mobile friendly tool for downloading videos from social media. +The backend is is a Golang server that will take a URL (YouTube, Reddit, Twitter, etc), +download the video file, and return a URL to download the video. The video will be transcoced as needed to produce a single mp4 file. + +![GitHub Logo](static/images/screenshot1.png) + +![GitHub Logo](static/images/screenshot2.png) + + +# Running +Pull the repo then run +```bash +./run.sh +``` + +With Docker: `ronnieroller/media-roller:latest`. +See https://hub.docker.com/repository/docker/ronnieroller/media-roller +The files will be saved to the /download directory which you can mount as needed. + + +With Unraid: TODO: This works with Unraid, I'm working on a template and will publish it soon. + +# Integrating with mobile +I'm working on an iOS shortcut will download the video to the camera roll for a supplied URL. \ No newline at end of file diff --git a/static/images/screenshot1.png b/static/images/screenshot1.png new file mode 100644 index 0000000..79312fa Binary files /dev/null and b/static/images/screenshot1.png differ diff --git a/static/images/screenshot2.png b/static/images/screenshot2.png new file mode 100644 index 0000000..eb47509 Binary files /dev/null and b/static/images/screenshot2.png differ