-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
feat: Video image with based FFmpeg-6.1 on Ubuntu-22.04 #2042
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,29 +1,41 @@ | ||
| FROM jrottenberg/ffmpeg:6.0-alpine | ||
| ARG NAMESPACE | ||
| ARG BASED_TAG | ||
| FROM $NAMESPACE/ffmpeg:$BASED_TAG | ||
| LABEL authors="Selenium <[email protected]>" | ||
|
|
||
| #================================================ | ||
| # Customize sources for apt-get | ||
| #================================================ | ||
| RUN echo "deb http://archive.ubuntu.com/ubuntu jammy main universe\n" > /etc/apt/sources.list \ | ||
| && echo "deb http://archive.ubuntu.com/ubuntu jammy-updates main universe\n" >> /etc/apt/sources.list \ | ||
| && echo "deb http://security.ubuntu.com/ubuntu jammy-security main universe\n" >> /etc/apt/sources.list | ||
|
|
||
| # No interactive frontend during docker build | ||
| ENV DEBIAN_FRONTEND=noninteractive \ | ||
| DEBCONF_NONINTERACTIVE_SEEN=true | ||
|
|
||
| #======================== | ||
| # Supervisor | ||
| #======================== | ||
| RUN apk update \ | ||
| && apk upgrade \ | ||
| && apk add --no-cache --update --virtual .build-deps supervisor bash curl jq xset xdpyinfo python3 py3-psutil py3-pip \ | ||
| && ln -sf python3 /usr/bin/python \ | ||
| && rm -rf /tmp/* /var/cache/apk/* | ||
|
|
||
| ENV PYTHONUNBUFFERED=1 | ||
| RUN python3 -m pip install --no-cache --upgrade --no-cache-dir pip urllib3 setuptools requests wheel | ||
| RUN apt-get -qqy update \ | ||
| && apt-get upgrade -yq \ | ||
| && apt-get -qqy --no-install-recommends install \ | ||
| supervisor x11-xserver-utils x11-utils curl jq python3-pip \ | ||
| && python3 -m pip install --upgrade pip \ | ||
| && python3 -m pip install --upgrade setuptools \ | ||
| && python3 -m pip install --upgrade wheel \ | ||
| && rm -rf /var/lib/apt/lists/* /var/cache/apt/* | ||
|
|
||
| #====================================== | ||
| # Add Supervisor configuration files | ||
| #====================================== | ||
| ENV SE_VIDEO_FOLDER /videos | ||
| RUN mkdir -p /opt/bin/ | ||
| RUN mkdir -p /var/run/supervisor /var/log/supervisor ${SE_VIDEO_FOLDER} | ||
|
|
||
| COPY supervisord.conf /etc | ||
| COPY entry_point.sh video.sh video_ready.py /opt/bin/ | ||
| RUN cd /opt/bin && pip install psutil | ||
|
|
||
| ENV SE_VIDEO_FOLDER /videos | ||
| RUN mkdir -p /var/run/supervisor /var/log/supervisor $SE_VIDEO_FOLDER | ||
|
|
||
| RUN chmod +x /opt/bin/* | ||
| ENTRYPOINT ["/opt/bin/entry_point.sh"] | ||
| CMD ["/opt/bin/entry_point.sh"] | ||
|
|
||
|
|
@@ -32,7 +44,7 @@ ENV DISPLAY_CONTAINER_NAME selenium | |
| ENV SE_SCREEN_WIDTH 1360 | ||
| ENV SE_SCREEN_HEIGHT 1020 | ||
| ENV SE_FRAME_RATE 15 | ||
| ENV SE_CODEC libx264 | ||
| ENV SE_CODEC libx265 | ||
| ENV SE_PRESET "-preset ultrafast" | ||
| ENV FILE_NAME video.mp4 | ||
|
|
||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.