Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
*.gif
*.md
22 changes: 22 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
FROM ubuntu:22.04

# Set the working directory
WORKDIR /home/


# Non-interactive mode for apt-get
ARG DEBIAN_FRONTEND=noninteractive

# Install dependencies
RUN apt-get update
RUN apt-get install -y build-essential

# ffmpeg , ffprobe
RUN apt-get install -y ffmpeg

COPY . /

RUN cc /src/*.c -lm -O3 -o /file2video

# Entry point is the executable, file2video. All args are passed to the executable
ENTRYPOINT [ "/file2video" ]
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,4 +107,18 @@ yt-dlp -f 247 -o isg-video.webm 'https://www.youtube.com/watch?v=8I4fd_Sap-g'
# Encode file.bin and merge it with video.mp4 to generate
# video-out.mp4
./embed.sh file.bin video.mp4 video-out.mp4
```

## Docker

A Dockerfile is provided for building and running bin2video in a container. To build the image:

```bash
docker build -t bin2video .
```

To run bin2video in a container:

```bash
docker run -it --rm bin2video [options]
```