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

alpine: mediainfo not found #208

Closed
2 of 4 tasks
gingerbeardman opened this issue Jul 16, 2023 · 4 comments · Fixed by #234
Closed
2 of 4 tasks

alpine: mediainfo not found #208

gingerbeardman opened this issue Jul 16, 2023 · 4 comments · Fixed by #234
Labels
bug Something isn't working

Comments

@gingerbeardman
Copy link

gingerbeardman commented Jul 16, 2023

Is this a new issue that can be reproduced?

  • This is a new issue that can be reproduced.

Which operating systems reproduce the issue?

  • Windows
  • Docker
  • Other

Version information.

OS Version: Synology DSM 6
Docker Version: Docker version 20.10.3, build b35e731
Docker Image: alpine
PlexCleaner getversioninfo: 3.2.31

Steps to reproduce?

Steps to reproduce:

  • install alpine branch
  • run config
  • [ERR] <1> MediaInfo not found : "mediainfo"

Expectation:

  • docker should include all required tools

Commandline.

/ # /PlexCleaner/PlexCleaner \
>   --logfile /media/PlexCleaner/PlexCleaner.log \
>   process \
>   --settingsfile /media/PlexCleaner/PlexCleaner.json \
>   --mediafiles /media/Movies \
>   --mediafiles /media/TV

Relevant log output.

Press Ctrl+C or Ctrl+Z or Ctrl+Q to exit.
22:11:25 [INF] <1> Loading settings from : "/media/PlexCleaner/PlexCleaner.json"
22:11:26 [INF] <1> Logging output to : "/media/PlexCleaner/PlexCleaner.log"
22:11:26 [INF] <1> Application Version : "PlexCleaner : 3.2.31+154c388a24 (Release)", Runtime Version : "7.0.8"
22:11:26 [INF] <1> Parallel Processing: False : Thread Count: 1, Processor Count: 2
22:11:26 [INF] <1> Executing FfMpeg : "-version"
22:11:26 [INF] <1> FfMpeg : Version: "6.0", Path: "ffmpeg"
22:11:26 [INF] <1> Executing FfProbe : "-version"
22:11:26 [INF] <1> FfProbe : Version: "6.0", Path: "ffprobe"
22:11:26 [INF] <1> Executing MkvMerge : "--version"
22:11:26 [INF] <1> MkvMerge : Version: "78.0", Path: "mkvmerge"
22:11:26 [INF] <1> Executing MkvPropEdit : "--version"
22:11:26 [INF] <1> MkvPropEdit : Version: "78.0", Path: "mkvpropedit"
22:11:26 [INF] <1> Executing MkvExtract : "--version"
22:11:27 [INF] <1> MkvExtract : Version: "78.0", Path: "mkvextract"
22:11:27 [INF] <1> Executing MediaInfo : "--version"
22:11:27 [ERR] <1> MediaInfo not found : "mediainfo"
22:11:27 [INF] <1> Exit Code : 1

Settings file.

{
  "$schema": "https://raw.githubusercontent.com/ptr727/PlexCleaner/main/PlexCleaner.schema.json",
  "SchemaVersion": 3,
  "ToolsOptions": {
    "UseSystem": true,
    "RootPath": "",
    "RootRelative": false,
    "AutoUpdate": false
  },
  "ProcessOptions": {
    "KeepOriginalLanguage": true,
    "SetIetfLanguageTags": true,
    "SetTrackFlags": true,
    "SetUnknownLanguage": true,
    "DefaultLanguage": "en",
    "RemoveUnwantedLanguageTracks": false,
    "RemoveDuplicateTracks": false,
    "RemoveTags": true,
    "UseSidecarFiles": true,
    "SidecarUpdateOnToolChange": false,
    "Verify": true,
    "RestoreFileTimestamp": false,
    "FileIgnoreList": []
  },
  "ConvertOptions": {
    "FfMpegOptions": {
      "Video": "libx264 -crf 22 -preset medium",
      "Audio": "ac3",
      "Global": "-analyzeduration 2147483647 -probesize 2147483647",
      "Output": "-max_muxing_queue_size 1024 -abort_on empty_output"
    },
    "HandBrakeOptions": {
      "Video": "x264 --quality 22 --encoder-preset medium",
      "Audio": "copy --audio-fallback ac3"
    }
  },
  "VerifyOptions": {
    "AutoRepair": true,
    "DeleteInvalidFiles": false,
    "RegisterInvalidFiles": false,
    "MaximumBitrate": 100000000
  },
  "MonitorOptions": {
    "MonitorWaitTime": 60,
    "FileRetryWaitTime": 5,
    "FileRetryCount": 2
  }
}

Log file.

No response

Media file information.

No response

Workaround

  • use debian
@gingerbeardman gingerbeardman added the bug Something isn't working label Jul 16, 2023
@ptr727
Copy link
Owner

ptr727 commented Jul 20, 2023

Looks like mediainfo is segfaulting on alpine, from the last Alpine build.

#29 [linux/amd64 final 7/9] RUN if [ "linux/amd64" = "linux/amd64" ]; then         dotnet --info;         ffmpeg -version;         HandBrakeCLI --version;         mediainfo --version;         mkvmerge --version;         /PlexCleaner/PlexCleaner --version;     fi
#29 0.526 [03:00:31] qsv: not available on this system
#29 0.561 [03:00:31] hb_init: starting libhb thread
#29 0.561 [03:00:31] thread 7f08f4c49b30 started ("libhb")
#29 0.561 HandBrake 1.6.1
#29 0.564 HandBrake has exited.
#29 0.565 
#29 0.762 Segmentation fault (core dumped)
#29 0.823 mkvmerge v78.0 ('Running') 64-bit
#29 0.874 PlexCleaner : 3.2.31+154c388a24 (Release)
#29 DONE 0.9s

Similar issue previously reported, maybe recurring.

I would have expected the docker build to fail?

@ptr727
Copy link
Owner

ptr727 commented Jul 21, 2023

I pushed an update to build mediainfo from source on alpine until the crash is fixed in zenlib.
I also changed the build to fail the docker build in case any of the tools fail to run, this should prevent docker builds from getting pushed with broken tools.

@gingerbeardman
Copy link
Author

Thanks! I'll leave to you to close as you see fit.

@ptr727
Copy link
Owner

ptr727 commented Jul 21, 2023

I'll leave this open until the normal mediainfo build works again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants