Files
ccextractor/docker
pszemus f2168b4c79 dockerfile: fix gpac version to 2.4.0 (#1747)
GPAC renamed its libraries to `libgpac.so.13` causing image build  to fail:

```
Error: building at STEP "COPY --from=builder /usr/local/lib/libgpac.so.12 /usr/local/lib/": checking on sources under "/home/pszemus/.local/share/containers/storage/overlay/faa4f2b5c39251a5cf42a97234d2d5652336a2388c96a64d85fc1922c4c43a71/merged": copier: stat: "/usr/local/lib/libgpac.so.12": no such file or directory
```
so let's fix the gpac version to the latest release (2.4.0)
2025-09-13 23:03:21 +05:30
..

CCExtractor Docker image

This dockerfile prepares a minimalist Docker image with CCExtractor. It compiles CCExtractor from sources following instructions from the Compilation Guide.

You can install the latest build of this image by running docker pull CCExtractor/ccextractor

Build

You can build the Docker image directly from the Dockerfile provided in docker directory of CCExtractor source

$ git clone https://github.com/CCExtractor/ccextractor.git && cd ccextractor
$ cd docker/
$ docker build -t ccextractor .

Usage

The CCExtractor Docker image can be used in several ways, depending on your needs.

# General usage
$ docker run ccextractor:latest <features>
  1. Process a local file & use -o flag

To process a local video file, mount a directory containing the input file inside the container:

# Use `-o` to specifying output file
$ docker run --rm -v $(pwd):$(pwd) -w $(pwd) ccextractor:latest input.mp4 -o output.srt

# Alternatively use `--stdout` feature
$ docker run --rm -v $(pwd):$(pwd) -w $(pwd) ccextractor:latest input.mp4 --stdout > output.srt

Run this command from where your input video file is present, and change input.mp4 & output.srt with the actual name of files.

  1. Enter an interactive environment

If you need to run CCExtractor with additional options or perform other tasks within the container, you can enter an interactive environment: bash

$ docker run --rm -it --entrypoint='sh' ccextractor:latest

This will start a Bash shell inside the container, allowing you to run CCExtractor commands manually or perform other operations.

Example

I run help command in image built from dockerfile

$ docker build -t ccextractor .
$ docker run --rm ccextractor:latest --help

This will show the --help message of CCExtractor tool From there you can see all the features and flags which can be used.