<commit_before># ffmpeg
#
# VERSION               0.0.1
#
# From https://trac.ffmpeg.org/wiki/CompilationGuide/Centos
#
FROM          centos:centos6
MAINTAINER    <NAME> <<EMAIL>>



RUN           yum install -y  --disableplugin=fastestmirror autoconf automake gcc gcc-c++ git libtool make nasm pkgconfig zlib-devel tar bzip2


ENV           FFMPEG_VERSION 2.3.3
ENV           YASM_VERSION   1.2.0
ENV           LAME_VERSION   3.99.5
ENV           FAAC_VERSION   1.28

ENV           SRC            /opt/src



RUN           mkdir ${SRC}



# yasm
RUN           cd ${SRC} && \
              curl -O http://www.tortall.net/projects/yasm/releases/yasm-${YASM_VERSION}.tar.gz && \
              tar xzvf yasm-${YASM_VERSION}.tar.gz && \
              cd yasm-${YASM_VERSION} && \
              ./configure --prefix="$SRC" --bindir="/usr/local/bin" && \
              make && \
              make install && \
              make distclean

# x264
RUN           cd ${SRC} && \
              git clone --depth 1 git://git.videolan.org/x264 && \
              cd x264 && \
              ./configure --prefix="$SRC" --bindir="/usr/local/bin" --enable-static && \
              make && \
              make install && \
              make distclean

# libmp3lame
RUN           cd ${SRC} && \
              curl -L -O http://downloads.sourceforge.net/project/lame/lame/${LAME_VERSION%.*}/lame-${LAME_VERSION}.tar.gz  && \
              tar xzvf lame-${LAME_VERSION}.tar.gz  && \
              cd lame-${LAME_VERSION} && \
              ./configure --prefix="${SRC}" --bindir="/usr/local/bin" --disable-shared --enable-nasm && \
              make && \
              make install && \
              make distclean


# faac
RUN           cd ${SRC} && \
              curl -L -O http://downloads.sourceforge.net/project/faac/ffax/${FAAC_VERSION%.*}/faac-${FAAC_VERSION}.tar.gz  && \
              tar xzvf faac-${FAAC_VERSION}.tar.gz  && \
              cd faac-${FAAC_VERSION} && \
              ./bootstrap && \
              ./configure && \
              make && \
              make install && \
              ldconfig


# ffmpeg
RUN           cd ${SRC} && \
              curl -O http://ffmpeg.org/releases/ffmpeg-${FFMPEG_VERSION}.tar.bz2 && \
              tar xjvf ffmpeg-${FFMPEG_VERSION}.tar.bz2

RUN           cd ${SRC}/ffmpeg-${FFMPEG_VERSION} && \
              PKG_CONFIG_PATH="${SRC}/lib/pkgconfig" && \
              export PKG_CONFIG_PATH && \
              ./configure --prefix="${SRC}" --extra-cflags="-I${SRC}/include" --extra-ldflags="-L${SRC}/lib" --bindir="/usr/local/bin" \
              --extra-libs=-ldl --enable-version3 --enable-libfaac --enable-libmp3lame --enable-libx264 --enable-libxvid --enable-gpl \
              --enable-postproc --enable-nonfree --enable-avresample && \
              make && \
              make install && \
              make distclean && \
              hash -r


RUN           ls -lsa               /usr/local/bin ${SRC}
RUN           /usr/local/bin/ffmpeg<commit_msg>Missing deps to follow the required configure line of ffmpeg<commit_after># ffmpeg
#
# VERSION               0.0.1
#
# From https://trac.ffmpeg.org/wiki/CompilationGuide/Centos
#
FROM          centos:centos6
MAINTAINER    <NAME> <<EMAIL>>



RUN           yum install -y  --disableplugin=fastestmirror autoconf automake gcc gcc-c++ git libtool make nasm pkgconfig zlib-devel tar bzip2


ENV           FFMPEG_VERSION 2.3.3
ENV           YASM_VERSION   1.2.0
ENV           LAME_VERSION   3.99.5
ENV           FAAC_VERSION   1.28
ENV           XVID_VERSION   1.3.3
ENV           SRC            /opt/src



RUN           mkdir ${SRC}



# yasm
RUN           cd ${SRC} && \
              curl -O http://www.tortall.net/projects/yasm/releases/yasm-${YASM_VERSION}.tar.gz && \
              tar xzvf yasm-${YASM_VERSION}.tar.gz && \
              cd yasm-${YASM_VERSION} && \
              ./configure --prefix="$SRC" --bindir="/usr/local/bin" && \
              make && \
              make install && \
              make distclean

# x264
RUN           cd ${SRC} && \
              git clone --depth 1 git://git.videolan.org/x264 && \
              cd x264 && \
              ./configure --prefix="$SRC" --bindir="/usr/local/bin" --enable-static && \
              make && \
              make install && \
              make distclean

# libmp3lame
RUN           cd ${SRC} && \
              curl -L -O http://downloads.sourceforge.net/project/lame/lame/${LAME_VERSION%.*}/lame-${LAME_VERSION}.tar.gz  && \
              tar xzvf lame-${LAME_VERSION}.tar.gz  && \
              cd lame-${LAME_VERSION} && \
              ./configure --prefix="${SRC}" --bindir="/usr/local/bin" --disable-shared --enable-nasm && \
              make && \
              make install && \
              make distclean


# faac + http://stackoverflow.com/a/4320377
RUN           cd ${SRC} && \
              curl -L -O  http://downloads.sourceforge.net/faac/faac-${FAAC_VERSION}.tar.gz  && \
              tar xzvf faac-${FAAC_VERSION}.tar.gz  && \
              cd faac-${FAAC_VERSION} && \
              sed -i '126d' common/mp4v2/mpeg4ip.h && \
              ./bootstrap && \
              ./configure && \
              make && \
              make install && \
              ldconfig

# xvid
RUN           cd ${SRC} && \
              curl -L -O  http://downloads.xvid.org/downloads/xvidcore-${XVID_VERSION}.tar.gz  && \
              tar xzvf xvidcore-${XVID_VERSION}.tar.gz && \
              cd xvidcore/build/generic && \
              ./configure && \
              make && \
              make install && \
              ldconfig



# ffmpeg
RUN           cd ${SRC} && \
              curl -O http://ffmpeg.org/releases/ffmpeg-${FFMPEG_VERSION}.tar.bz2 && \
              tar xjvf ffmpeg-${FFMPEG_VERSION}.tar.bz2
              cd ffmpeg-${FFMPEG_VERSION} && \
              PKG_CONFIG_PATH="${SRC}/lib/pkgconfig" && \
              export PKG_CONFIG_PATH && \
              ./configure --prefix="${SRC}" --extra-cflags="-I${SRC}/include" --extra-ldflags="-L${SRC}/lib" --bindir="/usr/local/bin" \
              --extra-libs=-ldl --enable-version3 --enable-libfaac --enable-libmp3lame --enable-libx264 --enable-libxvid --enable-gpl \
              --enable-postproc --enable-nonfree --enable-avresample && \
              make && \
              make install && \
              make distclean && \
              hash -r


RUN           ls -lsa               /usr/local/bin ${SRC}
RUN           /usr/local/bin/ffmpeg


ENTRYPOINT    ["ffmpeg"]
CMD           ["--help"]
{'fraction_non_alphanumeric': 0.1508830694275274, 'fraction_numerical': 0.013398294762484775, 'mean_word_length': 1.3485877726135145, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 2, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 10, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1907883', 'n_tokens_mistral': 2145, 'n_tokens_neox': 2044, 'n_words': 383}