Add ffprobe
This commit is contained in:
parent
dc4d80802a
commit
175955cdd1
3 changed files with 17 additions and 11 deletions
|
|
@ -24,6 +24,7 @@ RUN apk add --update --no-cache \
|
|||
# https://hub.docker.com/r/mwader/static-ffmpeg/tags
|
||||
# https://github.com/wader/static-ffmpeg
|
||||
COPY --from=mwader/static-ffmpeg:7.1 /ffmpeg /usr/local/bin/
|
||||
COPY --from=mwader/static-ffmpeg:7.1 /ffprobe /usr/local/bin/
|
||||
COPY --from=builder /app/media-roller /app/media-roller
|
||||
COPY templates /app/templates
|
||||
COPY static /app/static
|
||||
|
|
|
|||
|
|
@ -27,6 +27,7 @@ func AboutIndex(w http.ResponseWriter, _ *http.Request) {
|
|||
"goVersion": strings.TrimPrefix(utils.RunCommand("go", "version"), "go version "),
|
||||
"pythonVersion": strings.TrimPrefix(pythonVersion, "Python "),
|
||||
"ffmpegVersion": newlineRegex.Split(utils.RunCommand("ffmpeg", "-version"), -1),
|
||||
"ffprobeVersion": newlineRegex.Split(utils.RunCommand("ffprobe", "-version"), -1),
|
||||
"os": gi.OS,
|
||||
"kernel": gi.Kernel,
|
||||
"core": gi.Core,
|
||||
|
|
|
|||
|
|
@ -42,6 +42,10 @@
|
|||
<td style="vertical-align: top"><a href="https://www.ffmpeg.org/download.html">ffmpeg</a></td>
|
||||
<td>{{range $element := .ffmpegVersion}}{{ $element }}<br>{{end}}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="vertical-align: top"><a href="https://www.ffmpeg.org/download.html">ffprobe</a></td>
|
||||
<td>{{range $element := .ffprobeVersion}}{{ $element }}<br>{{end}}</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Reference in a new issue