Configuration appearing to be ignored in docker #278
Replies: 7 comments 18 replies
-
Super awesome project btw, thank you so much :D |
Beta Was this translation helpful? Give feedback.
-
Hello,
|
Beta Was this translation helpful? Give feedback.
-
@aler9 maybe you can CI-build an alternative docker tag with ffmpeg included? That would be very convenient |
Beta Was this translation helpful? Give feedback.
-
FYI, in addition to |
Beta Was this translation helpful? Give feedback.
-
Thanks ....What was the FFMPEG command you used?
From: Per Wigren ***@***.***>
Sent: Wednesday, November 17, 2021 12:18 AM
To: aler9/rtsp-simple-server ***@***.***>
Cc: AdiAbuAli ***@***.***>; Comment ***@***.***>
Subject: Re: [aler9/rtsp-simple-server] Configuration appearing to be ignored in docker (Discussion #278)
This is my full Dockerfile for AMD GPU hardware acceleration. For Intel or Nvidia you will need some other packages.
FROM aler9/rtsp-simple-server AS rtsp
FROM alpine:latest
RUN apk add --no-cache libva mesa-va-gallium ffmpeg
COPY --from=rtsp /rtsp-simple-server /
ENTRYPOINT [ "/rtsp-simple-server" ]
Then in my docker-compose.yml I have
privileged: true
devices:
- /dev/dri/renderD128
environment:
LIBVA_DRIVER_NAME: "radeonsi"
and I believe the docker cli equivalents are --privileged --device /dev/dri/renderD128 --env LIBVA_DRIVER_NAME=radeonsi
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub <#278 (reply in thread)> , or unsubscribe <https://github.com/notifications/unsubscribe-auth/AVKRYLKLJZEI5FEKS6DLW63UMLJ7VANCNFSM5FOZRCEA> .
Triage notifications on the go with GitHub Mobile for iOS <https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675> or Android <https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub> . <https://github.com/notifications/beacon/AVKRYLJKBRZYGOPXXT45XDTUMLJ7VA5CNFSM5FOZRCEKYY3PNVWWK3TUL52HS4DFWFCGS43DOVZXG2LPNZBW63LNMVXHJKTDN5WW2ZLOORPWSZGOAAMT5WQ.gif>
|
Beta Was this translation helpful? Give feedback.
-
For example this one to transcode a large high bitrate video to a smaller low bitrate mobile version:
|
Beta Was this translation helpful? Give feedback.
-
When using this I'm getting a:
|
Beta Was this translation helpful? Give feedback.
-
Which version are you using?
v0.13.2
Which operating system are you using?
OS
Architecture
Describe the issue
I am mounting a volume with a configuration in it that works locally. Once the volume is mounted it appears to be picked up because the container runs and stars putting out logs. It also says
reloading configuration
if I edit the config, so im quite sure it is getting the configuration. When I connect a stream to it it says connected andis publishing to path
and everything looks fine except it isnt running my command inrunOnPublish
Its strange because if I just download the binary and run it it with this same config it works perfectly. The current content in
runOnPublished
uses ffmpeg to output a file but it also does nothing in the container if i replace it with very simple things likeecho 'cat'
Describe how to replicate the issue
config.txt
file in it (rename it toconfig.yml
because GitHub wont let me attach a.yml
file. config.txtcd
into the directory and rundocker run --rm -it -e RTSP_PROTOCOLS=tcp -v ${PWD}:/app -w /app -p 8554:8554 aler9/rtsp-simple-server ./config.yml
Beta Was this translation helpful? Give feedback.
All reactions