Created
February 8, 2018 09:02
-
-
Save phihag/6371540e59cccc14df847e1cfa747692 to your computer and use it in GitHub Desktop.
Dockerfile to demo youtube-dl thumbnail embedding
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM python:3 | |
RUN mkdir /code | |
WORKDIR /code | |
RUN echo 'deb http://www.deb-multimedia.org jessie main non-free' >> /etc/apt/sources.list | |
RUN apt-get update | |
RUN yes | apt-get install deb-multimedia-keyring | |
RUN apt-get update | |
RUN apt-get install -y ffmpeg AtomicParsley | |
RUN git clone https://github.com/rg3/youtube-dl.git | |
ADD https://phihag.de/2018/so/ytdl_metathumb.py /code/youtube-dl/ | |
RUN cd youtube-dl && python ytdl_metathumb.py | |
RUN AtomicParsley youtube-dl/*.mp4 -E | |
RUN mv youtube-dl/*artwork* artwork.jpg | |
CMD ["sleep 999999"] | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment