Skip to content

Commit

Permalink
Add ffmpeg to the container
Browse files Browse the repository at this point in the history
  • Loading branch information
apockill committed Dec 28, 2024
1 parent d501300 commit 56df2c3
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,21 @@ RUN --mount=type=cache,target="${APT_CACHE}" \
python3-venv
######################################################################
# Install FFMPEG for LeRobot video encoding uses
WORKDIR /ffmpeg
# To update, select a build from https://github.com/BtbN/FFmpeg-Builds/releases
ARG FFMPEG_BUILD=autobuild-2024-10-31-12-59/ffmpeg-N-117676-g87068b9600-linux64-gpl.tar.xz
RUN install-packages wget
RUN wget https://github.com/BtbN/FFmpeg-Builds/releases/download/${FFMPEG_BUILD} && \
tar -xvf ffmpeg*.tar.xz && \
mv ffmpeg*/bin/* /usr/local/bin/ && \
# Verify this ffmpeg build succeeded and has support for libsvtav1, the default
# lerobot video decoder
ffmpeg -encoders | grep libsvtav1 && \
# Clean up
rm -rf /ffmpeg \
# Install colcon-poetry-ros, a tool by Urban Machine for building ROS2 packages with Poetry
RUN --mount=type=cache,target="${PIP_CACHE}" \
pip3 install --break-system-packages "colcon-poetry-ros==${COLCON_POETRY_ROS_VERSION}"
Expand Down

0 comments on commit 56df2c3

Please sign in to comment.