Skip to content

Instantly share code, notes, and snippets.

@phihag
Created February 8, 2018 09:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save phihag/6371540e59cccc14df847e1cfa747692 to your computer and use it in GitHub Desktop.
Save phihag/6371540e59cccc14df847e1cfa747692 to your computer and use it in GitHub Desktop.
Dockerfile to demo youtube-dl thumbnail embedding
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