Skip to content
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

Update and simplify recording image build #647

Merged
merged 3 commits into from
Oct 26, 2023

Conversation

misi
Copy link
Contributor

@misi misi commented Oct 24, 2023

  • Use ffmpeg image from alpine not build new
  • Increase -thread_queue_size to not drop frames

@misi misi mentioned this pull request Oct 24, 2023
@@ -1,21 +1,7 @@
FROM alpine:3.12
FROM alpine:3.18
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's use just alpine:3 instead.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed in 07fd05e

FROM alpine:3.12

RUN apk add -U x264-libs sdl2 libxcb libbz2 xset pulseaudio-utils && \
RUN apk add -U x264-libs sdl2 libxcb libbz2 xset pulseaudio-utils ffmpeg && \
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We know that ffmpeg is available as Alpine package. Could please show the size of resulting video recorder image and compare it with existing video recorder image. Our initial idea was to make it smaller.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes true the size increase 132Mb from 37MB, but probably a ffmpeg alpin dist package more tested, more reliable.
It is trade off.

  • docker image size
  • apline pkg
    • more tested distribution ffmpeg pkg
    • no compile time => faster image build you prefer smaller image. I can move it separate PR or Cancel.
    • no risk that ports not compile

I feel there is always a higher risk to compile own binary from source using ports, than using just a dist binary. Where dist owner make sure it works well the pkg and probably run some tests and have graduated rollout of new versions, , but these are just my 2cents.

The +size 95mb that is bigger but it is still not huge.
But I can go along if you still prefer building, but I got actually an error during the build of ffmpeg with newer alpine version.

@@ -22,6 +22,8 @@ COPY entrypoint.sh /
RUN \
chmod +x /usr/bin/chromedriver && \
chown -R selenium:nogroup /etc/opt/chrome/policies/managed/

RUN echo "cookie-file = ~/.config/pulse/cookie" >> /etc/pulse/client.conf
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's remove changes under static/chrome as they are not related to video recording and seem to duplicate things in #646.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes sure. It was based not on master. Now rebased it and force pushed.

@codecov
Copy link

codecov bot commented Oct 26, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (6b97960) 5.59% compared to head (e933f55) 5.59%.
Report is 9 commits behind head on master.

Additional details and impacted files
@@          Coverage Diff           @@
##           master    #647   +/-   ##
======================================
  Coverage    5.59%   5.59%           
======================================
  Files           8       8           
  Lines         876     876           
======================================
  Hits           49      49           
  Misses        820     820           
  Partials        7       7           
Flag Coverage Δ
go 5.59% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@vania-pooh vania-pooh merged commit a66fe6e into aerokube:master Oct 26, 2023
3 checks passed
@vania-pooh
Copy link
Member

@misi squashed and merged. thank you for contribution!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants