File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ * .gif
2+ * .md
Load diff This file was deleted.
Load diff This file was deleted.
Original file line number Diff line number Diff line change 1+ FROM ubuntu:22.04
2+
3+ # Set the working directory
4+ WORKDIR /home/
5+
6+
7+ # Non-interactive mode for apt-get
8+ ARG DEBIAN_FRONTEND=noninteractive
9+
10+ # Install dependencies
11+ RUN apt-get update
12+ RUN apt-get install -y build-essential
13+
14+ # ffmpeg , ffprobe
15+ RUN apt-get install -y ffmpeg
16+
17+ COPY . /
18+
19+ RUN cc /src/*.c -lm -O3 -o /file2video
20+
21+ # Entry point is the executable, file2video. All args are passed to the executable
22+ ENTRYPOINT [ "/file2video" ]
Original file line number Diff line number Diff line change @@ -107,4 +107,18 @@ yt-dlp -f 247 -o isg-video.webm 'https://www.youtube.com/watch?v=8I4fd_Sap-g'
107107# Encode file.bin and merge it with video.mp4 to generate
108108# video-out.mp4
109109./embed.sh file.bin video.mp4 video-out.mp4
110+ ```
111+
112+ ## Docker
113+
114+ A Dockerfile is provided for building and running bin2video in a container. To build the image:
115+
116+ ``` bash
117+ docker build -t bin2video .
118+ ```
119+
120+ To run bin2video in a container:
121+
122+ ``` bash
123+ docker run -it --rm bin2video [options]
110124```
You can’t perform that action at this time.
0 commit comments