Add shortcut, update docker

This commit is contained in:
Ronnie Roller 2020-02-08 12:59:27 -08:00
parent cc0d07bc90
commit a6e50510d8
4 changed files with 28 additions and 0 deletions

View file

@ -85,6 +85,8 @@ RUN go build -x -o media-roller ./src
# youtube-dl needs python # youtube-dl needs python
FROM python:3.8.1-alpine3.11 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 ENV PATH=/opt/ffmpeg/bin:$PATH
RUN apk add --update --no-cache \ 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 /opt/ffmpeg /opt/ffmpeg
COPY --from=builder /usr/lib/libfdk-aac.so.2 /usr/lib/libfdk-aac.so.2 COPY --from=builder /usr/lib/libfdk-aac.so.2 /usr/lib/libfdk-aac.so.2
COPY templates /app/templates COPY templates /app/templates
COPY static /app/static
WORKDIR /app WORKDIR /app

25
README.md Normal file
View file

@ -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.

Binary file not shown.

After

Width:  |  Height:  |  Size: 57 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 69 KiB