Skip to content

Videos: Improve FFmpeg parameters for Intel QSV hardware transcoding #2222

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

Closed
sunbeam60 opened this issue Apr 5, 2022 · 28 comments
Closed
Assignees
Labels
enhancement Enhancement or improvement of an existing feature released Available in the stable release video Video Formats, Transcoding, FFmpeg, Streaming & Co

Comments

@sunbeam60
Copy link

sunbeam60 commented Apr 5, 2022

The current parameters cause ffmpeg to fail on an Synology 718+ w/Intel J3455 - I will open a bug for this.

I think what is happening is that the current invocation of ffmpeg attempts to create a hardware device called qsv (-init_hw_device) which it attempts to set to just "hw" ... but as far as I understand -init_hw_device, the short-hand device name you are creating has to be set to an actual device (quoting from ffmpeg.org's site):

In ffmpeg, a named global device can be created using the -init_hw_device option:
fmpeg -init_hw_device vaapi=foo:/dev/dri/renderD128
With the decode hwaccel, each input stream can then be given a previously initialised device with the -hwaccel_device option:

So I think the reason ffmpeg spits out Failed to set value 'qsv=hw' for option 'init_hw_device': Generic error in an external library is that hw is not an actual device.

-filter_hw_device is then trying to pass a device to all filters in ffmpeg's filter-chain ... I presume this was meant to be the 'qsv' device (which is incorrectly set), not the generic 'hw' device which doesn't actually exist. From ffmpeg.org:

-filter_hw_device name
Pass the hardware device called name to all filters in any filter graph. This can be used to set the device to upload to with the hwupload filter, or the device to map to with the hwmap filter. Other filters may also make use of this parameter when they require a hardware device.

So I simply cannot understand how anyone has been able to get HW decoding/encoding to work using these parameters, whatever their configuration. As far as I can decode ffmpeg's docs, this won't work on any system.

If I remove the init_hw_device and -filter_hw_device gubbins and simply invoke...

ffmpeg -qsv_device /dev/dri/renderD128 -i IMG_8628.MOV -c:a aac -vf format=rgb32 -c:v h264_qsv -vsync vfr -r 30 -b:v 25M -maxrate 25M -f mp4 -y IMG_8628.MOV.avc

... which is PhotoPrism's invocation but without a named hardware device being passed to all filters (or at least without the attempt to create a named hardware device and pass it to all filters, ffmpeg works.

If I additionally remove the -qsv_device parameter, ffmpeg continues happily and at same speed as with the -qsv_device parameter. It's only when I switch to -c:v h264 that the speed dramatically drops due to libx264 now being used instead of the QSV hardware (3 fps instead of 20 fps).

Originally posted by @sunbeam60 in #1337 (comment)

@lastzero lastzero added the enhancement Enhancement or improvement of an existing feature label Apr 5, 2022
@sunbeam60
Copy link
Author

ffmpeg_photoprism-20220405135107.mp4

@lastzero lastzero changed the title ffmpeg parameters are incorrect when attempting to use Intel's QSV for video transcoding. Videos: Improve FFmpeg parameters for Intel QSV hardware transcoding Apr 5, 2022
@sunbeam60
Copy link
Author

I think all that is required is to remove the following parameters -init_hw_device qsv=hw -filter_hw_device hw which are erroneous.

lastzero added a commit that referenced this issue Apr 5, 2022
This commit also removes PHOTOPRISM_FFMPEG_BUFFERS as it is only
used/required by Video4Linux. 64 seems to be a good value, so we pass
it statically as for the other encoders. Examples have been updated.
@lastzero lastzero self-assigned this Apr 5, 2022
@lastzero lastzero added please-test Ready for acceptance test member-feature Available to members and contributors labels Apr 5, 2022
@lastzero
Copy link
Member

lastzero commented Apr 5, 2022

Removed filter_hw_device and started a new preview build for testing... works this way on my Core i7-10700T.

Thanks for your advice and becoming a sponsor! 👍

@lastzero
Copy link
Member

lastzero commented Apr 5, 2022

Note that this change also removes the PHOTOPRISM_FFMPEG_BUFFERS config option. It turned out to be specific to the v4l2 encoder commonly used on the Raspberry Pi 4. Now has a fixed value as for custom parameters of the other encoders.

@sunbeam60
Copy link
Author

sunbeam60 commented Apr 5, 2022

Ran a test now and it's not good news :(

  • ffmpeg fails when invoked by photoprism (prettifying the newlines):

photoprism_1 | time="2022-04-05T16:15:55Z" level=trace msg="/usr/bin/ffmpeg -qsv_device /dev/dri/renderD128 -i /photoprism/originals/2022/03/19/IMG_8921.MOV -c:a aac -vf format=rgb32 -c:v h264_qsv -vsync vfr -r 30 -b:v 25M -maxrate 25M -f mp4 -y /photoprism/storage/sidecar/2022/03/19/IMG_8921.MOV.avc"
[SNIP]
Failed to create a VAAPI device.
Error initializing output stream 0:0 -- Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height
[aac @ 0x5632d477d480] Qavg: 4059.021
[aac @ 0x5632d477d480] 2 frames left in the queue on closing
Conversion failed!"
photoprism_1 | time="2022-04-05T16:15:56Z" level=warning msg="h264_qsv: failed transcoding 2022/03/19/IMG_8921.MOV [742.119325ms]"

  • If I copy/paste that invocation directly from the log, bash into the container and run it myself...

admin@NAS:/volume1/docker/photoprism$ sudo docker exec -it photoprism_photoprism_1 bash
root@7fd38804ac2e:~# ffmpeg -qsv_device /dev/dri/renderD128 -i /photoprism/originals/2022/03/19/IMG_8921.MOV -c:a aac -vf format=rgb32 -c:v h264_qsv -vsync vfr -r 30 -b:v 25M -maxrate 25M -f mp4 -y /photoprism/storage/sidecar/2022/03/19/IMG_8921.MOV.avc

  • ... it works 😕:

Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/photoprism/originals/2022/03/19/IMG_8921.MOV':
[SNIP]
Stream mapping:
Stream #0:0 -> #0:0 (hevc (native) -> h264 (h264_qsv))
Stream #0:1 -> #0:1 (aac (native) -> aac (native))
[SNIP]
frame= 184 fps= 18 q=20.0 Lsize= 19583kB time=00:00:06.13 bitrate=26170.4kbits/s speed=0.595x

... and, indeed, when I try to play the file in the UI, the sidecar file is now obviously present and plays.

So, I was extremely cocksure that I'd found the issue, but it seems I've been proven wrong, or at least come up against another issue. Both are run inside the docker container, but something is preventing the VAAPI device being created when invoked from PhotoPrism but not when invoked from bash, inside the container.

I'll need to think this through and family calls so might return to it tonight and redo the steps above just to make sure I've not done something silly. As it stands, I've teetered over the limit of my docker + linux knowledge. Perhaps something is brought in when bashing into the container that doesn't exist outside this...

@lastzero
Copy link
Member

lastzero commented Apr 5, 2022

Permission issues? Running the command as root in the terminal while PhotoPrism is running as non-root user?

@sunbeam60
Copy link
Author

🤦‍♂️

Yes, it could be. I’m certainly root when logging into the container. Not sure what that implies for PhotoPrism if so.

@sunbeam60
Copy link
Author

Trying to re-run the container with:

admin@NAS:/volume1/docker/photoprism$ id admin
uid=1024(admin) gid=100(users) groups=100(users),101(administrators),25(smmsp)
admin@NAS:/volume1/docker/photoprism$ sudo docker inspect photoprism_photoprism_1
[SNIP]
"Env": [
"PHOTOPRISM_FFMPEG_ENCODER=h264_qsv",
"PHOTOPRISM_INIT=intel-graphics tensorflow-amd64-avx2",
"PHOTOPRISM_UID=1024",
"PHOTOPRISM_GID=101",

.. and unfortunately get the same result.

But my plex container runs with a restricted user, non-root/admin, and employes ffmpeg transcoding just fine.

Any ffmpeg experts around?

@sunbeam60
Copy link
Author

Couple of issues/PRs in Jellyfin that could relate to this:
linuxserver/docker-jellyfin#111
linuxserver/docker-jellyfin#112

... it could be a Synology specific issue, although why it works when I bash into the shell and run the same command line is still beyond me.

Will try to set permissions on the render devices (by bashing into the container, running chmod before making a video serve request on the UI), but it will have to be after work - lunch break is over :)

@sunbeam60
Copy link
Author

Ok, it's probably a Synology issue and probably related to the jellyfin issues I posted in the comment above.

I had forgotten that root and admin is not the same on a Synology. When I change the PhotoPrism container to run as UID=0 (root), the ffmpeg invocation using QSV works fine and indeed the video transcodes MUCH quicker.

This is why the call succeeds when bashing into the container - one arrives as root when running docker exec -it photoprism bash.

So the answer is something along the lines of what jellyfin is doing in https://github.com/linuxserver/docker-jellyfin/pull/112/files. If you look at the comments in linuxserver/docker-jellyfin#26:

Secondly, once the devices are setup according to my host, the default user is not able to access them.
Any transcode attempt leads to the following error message:
When running the same exact command through a root shell to the docker, it works as expected and transcoding works.

It's exactly the same issue as I've described.

So: iterate over the drivers and ensure the current user has access to them. This is a solution specific to Synology - or at least all devices where the renderD128 doesn't have RW permissions by default.

@lastzero up to you whether you want to add a specific fix for Synology like what Jellyfin is doing.

Until then, Synology users who wish to transcode with QSV need to run as root.

@lastzero
Copy link
Member

lastzero commented Apr 6, 2022

We can't make any more changes for the next release. However, I took the opportunity to refactor video transcoding along the way when implementing this today:

There used to be an automatic fallback to the software encoder, which should now work again if hardware transcoding failed. Logging has been improved too. Happy indexing/testing! :)

@sunbeam60
Copy link
Author

We can't make any more changes for the next release. However, I took the opportunity to refactor video transcoding along the way when implementing this today:

Understood - I'll open a specific improvement issue for the Synology fix so you can prioritise this one separately.

There used to be an automatic fallback to the software encoder, which should now work again if hardware transcoding failed. Logging has been improved too. Happy indexing/testing! :)

Automatic fallback is awesome 👍

@sunbeam60
Copy link
Author

Synology improvement proposal here: #2228

lastzero added a commit that referenced this issue Apr 15, 2022
Adds the following video-related libs to the ARMv7 base image:
libwebm1, libmatroska7, libdvdread8, libebml5, libgav1-0, libatomic1,
libx264-163, libx265-199
lastzero added a commit that referenced this issue Apr 18, 2022
Also installs the following, additional packages:
- libcuda1
- libnvcuvid1
- mesa-va-drivers
@graciousgrey graciousgrey added released Available in the stable release and removed please-test Ready for acceptance test labels May 17, 2022
@Dulanic
Copy link

Dulanic commented May 29, 2022

I am seeing issues /w QSV, it is complaining about incorrect parameters. This is an example, but it happened a bunch of times on my server.

PHOTOPRISM_INIT="gpu tensorflow"

TRAC[2022-05-28T19:09:41-05:00] /usr/bin/ffmpeg -qsv_device /dev/dri/renderD128 -i /photoprism/originals/2014/03/20140306_011539_60BB2597.mts -c:a aac -vf format=rgb32 -c:v h264_qsv -vsync vfr -r 30 -b:v 25M -bitrate 25M -f mp4 -y /photoprism/storage/sidecar/2014/03/20140306_011539_60BB2597.mts.avc
DEBU[2022-05-28T19:09:42-05:00] ffmpeg version 4.4.2-1+b1 Copyright (c) 2000-2021 the FFmpeg developers
  built with gcc 11 (Debian 11.3.0-3)
  configuration: --prefix=/usr --extra-version=1+b1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl --disable-stripping --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libdav1d --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librabbitmq --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzimg --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sdl2 --disable-sndio --enable-pocketsphinx --enable-librsvg --enable-libmfx --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --enable-shared
  WARNING: library configuration mismatch
  avcodec     configuration: --prefix=/usr --extra-version=1+b1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl --disable-stripping --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libdav1d --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librabbitmq --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzimg --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sdl2 --disable-sndio --enable-pocketsphinx --enable-librsvg --enable-libmfx --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --enable-shared --enable-version3 --disable-doc --disable-programs --enable-libaribb24 --enable-libopencore_amrnb --enable-libopencore_amrwb --enable-libtesseract --enable-libvo_amrwbenc --enable-libsmbclient
  libavutil      56. 70.100 / 56. 70.100
  libavcodec     58.134.100 / 58.134.100
  libavformat    58. 76.100 / 58. 76.100
  libavdevice    58. 13.100 / 58. 13.100
  libavfilter     7.110.100 /  7.110.100
  libswscale      5.  9.100 /  5.  9.100
  libswresample   3.  9.100 /  3.  9.100
  libpostproc    55.  9.100 / 55.  9.100
Input #0, mpegts, from '/photoprism/originals/2014/03/20140306_011539_60BB2597.mts':
  Duration: 00:02:53.18, start: 1.033367, bitrate: 16433 kb/s
  Program 1
  Stream #0:0[0x1011]: Video: h264 (High) (HDMV / 0x564D4448), yuv420p(top first), 1920x1080 [SAR 1:1 DAR 16:9], 29.97 fps, 59.94 tbr, 90k tbn, 59.94 tbc
  Stream #0:1[0x1100]: Audio: ac3 (AC-3 / 0x332D4341), 48000 Hz, stereo, fltp, 256 kb/s
  Stream #0:2[0x1200]: Subtitle: hdmv_pgs_subtitle ([144][0][0][0] / 0x0090), 1920x1080
Stream mapping:
  Stream #0:0 -> #0:0 (h264 (native) -> h264 (h264_qsv))
  Stream #0:1 -> #0:1 (ac3 (native) -> aac (native))
Press [q] to stop, [?] for help
[h264_qsv @ 0x5625b871cc00] Error initializing an internal MFX session: unsupported (-3)
Error initializing output stream 0:0 -- Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height
[aac @ 0x5625b87f8c40] Qavg: 133.026
[aac @ 0x5625b87f8c40] 2 frames left in the queue on closing
Conversion failed!
WARN[2022-05-28T19:09:42-05:00] h264_qsv: failed transcoding 2014/03/20140306_011539_60BB2597.mts [504.877222ms]```


@lastzero
Copy link
Member

Would be great if you can share more details, such as your Linux kernel version / operating system, CPU type and model, and anything else that could help to reproduce this. It may also help to change the user PhotoPrism is running as in case this is a permissions issue.

@Dulanic
Copy link

Dulanic commented May 29, 2022

CPU: Intel(R) Core(TM) i5-9400
Kernel: 5.16.14-051614-generic
I can run ffmpeg as software and it runs no problem, i use my main user 1000. It's not a permission issue. Well at least a file permission problem....

user: '1000:1000'

image

Plex transcodes fines, but I know they use a customized ffmpeg. I will try to identify what the issue is, but no luck so far.

@lastzero
Copy link
Member

You could try one of our other Docker images based on a different Debian version as it could depend on that as well.

@Dulanic
Copy link

Dulanic commented May 29, 2022

You could try one of our other Docker images based on a different Debian version as it could depend on that as well.

No change /w bullseye or jammy.

@lastzero
Copy link
Member

Just to be sure: you installed the drivers and shred ALL required devices as shown in our example docker-compose.yml?

@Dulanic
Copy link

Dulanic commented May 29, 2022

This is my full .env file for photoprism:


PHOTOPRISM_HTTP_PORT=2342                     # Built-in Web server port
PHOTOPRISM_HTTP_COMPRESSION="gzip"            # Improves transfer speed and bandwidth utilization (none or gzip)
PHOTOPRISM_DEBUG="false"                      # Run in debug mode (shows additional log messages)
PHOTOPRISM_PUBLIC="true"                     # No authentication required (disables password protection)
PHOTOPRISM_ADMIN_PASSWORD="redacted"
PHOTOPRISM_READONLY="false"                   # Don't modify originals directory (reduced functionality)
PHOTOPRISM_EXPERIMENTAL="true"               # Enables experimental features
PHOTOPRISM_DISABLE_WEBDAV="false"             # Disables built-in WebDAV server
PHOTOPRISM_DISABLE_SETTINGS="false"           # Disables Settings in Web UI
PHOTOPRISM_DISABLE_TENSORFLOW="false"         # Disables using TensorFlow for image classification
PHOTOPRISM_DARKTABLE_PRESETS="false"          # Enables Darktable presets and disables concurrent RAW conversion
PHOTOPRISM_DETECT_NSFW="false"                # Flag photos as private that MAY be offensive (requires TensorFlow)
PHOTOPRISM_UPLOAD_NSFW="true"                 # Allow uploads that MAY be offensive
PHOTOPRISM_DATABASE_DRIVER="mysql"            # Use MariaDB (or MySQL) instead of SQLite for improved performance
PHOTOPRISM_DATABASE_SERVER="mariadb:3306"     # MariaDB database server (hostname:port)
PHOTOPRISM_DATABASE_NAME="redacted"         # MariaDB database schema name
PHOTOPRISM_DATABASE_USER="redacted"         # MariaDB database user name
PHOTOPRISM_DATABASE_PASSWORD="redacted"       # MariaDB database user password
PHOTOPRISM_SITE_URL="https://photos.dulanic.com"  # Public PhotoPrism URL
PHOTOPRISM_SITE_TITLE="PhotoPrism"
PHOTOPRISM_SITE_CAPTION="Dulanic's Photos"
PHOTOPRISM_SITE_DESCRIPTION=""
PHOTOPRISM_SITE_AUTHOR="Dulanic"
PHOTOPRISM_FFMPEG_ENCODER="intel"        # FFmpeg encoder ("software", "intel", "nvidia", "apple", "raspberry")
PHOTOPRISM_JPEG_QUALITY=85
PHOTOPRISM_DETECT_NSFW="true"
PHOTOPRISM_ORIGINALS_LIMIT=-1
PHOTOPRISM_LOG_LEVEL="trace"
PHOTOPRISM_INIT="gpu tensorflow"
# PHOTOPRISM_WORKERS=2

My photoprism in my docker-compose.

  photoprism:
    container_name: photoprism
    depends_on:
      mariadb:
        condition: service_healthy
    env_file:
      - ./envs/common.env
      - ./envs/photoprism.env
    healthcheck:
      interval: 1m30s
      retries: 3
      test: curl --fail -s https://photos.dulanic.com/ || exit 1
      timeout: 10s
    image: photoprism/photoprism:preview-jammy
    ports:
      - '2342:2342'
    devices:
      - "/dev/dri:/dev/dri"                         # Intel QSV      
    restart: unless-stopped
    security_opt:
      - seccomp:unconfined
      - apparmor:unconfined
    user: '1000:1000'
    volumes:
      - ./photoprism/storage:/photoprism/storage
      - /mnt/btrfs/photo_import:/photoprism/import
      - /mnt/btrfs/photos:/photoprism/originals
      - ./photoprism/var/lib:/var/lib/photoprism
    working_dir: "/photoprism" # do not change or remove   
photoprism@220527:/photoprism$ ffmpeg -hwaccels
ffmpeg version 4.4.1-3ubuntu5 Copyright (c) 2000-2021 the FFmpeg developers
  built with gcc 11 (Ubuntu 11.2.0-18ubuntu1)
  configuration: --prefix=/usr --extra-version=3ubuntu5 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl --disable-stripping --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libdav1d --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librabbitmq --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzimg --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sdl2 --enable-pocketsphinx --enable-librsvg --enable-libmfx --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --enable-shared
  WARNING: library configuration mismatch
  avcodec     configuration: --prefix=/usr --extra-version=3ubuntu5 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl --disable-stripping --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libdav1d --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librabbitmq --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzimg --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sdl2 --enable-pocketsphinx --enable-librsvg --enable-libmfx --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --enable-shared --enable-version3 --disable-doc --disable-programs --enable-libaribb24 --enable-libopencore_amrnb --enable-libopencore_amrwb --enable-libtesseract --enable-libvo_amrwbenc --enable-libsmbclient
  libavutil      56. 70.100 / 56. 70.100
  libavcodec     58.134.100 / 58.134.100
  libavformat    58. 76.100 / 58. 76.100
  libavdevice    58. 13.100 / 58. 13.100
  libavfilter     7.110.100 /  7.110.100
  libswscale      5.  9.100 /  5.  9.100
  libswresample   3.  9.100 /  3.  9.100
  libpostproc    55.  9.100 / 55.  9.100
Hardware acceleration methods:
vdpau
cuda
vaapi
qsv
drm
opencl

@lastzero
Copy link
Member

lastzero commented May 29, 2022

What logs do you see when starting the container for the first time? You should see information about the drivers getting installed. Note init only runs once on the first start the variable was defined. Otherwise use docker-compose up --force-recreate

Also note that while I've added magic to make the installation work as UID 1000, you should generally use the PHOTOPRISM_UID env variable for switching to the UID after init as installing drivers requires the container to start as root. Starting as UID 1000 and expecting distribution packages and device access to work 100% is experimental to say the least.

@lastzero
Copy link
Member

I recommend trying as root, just to exclude the possibility of a permission or privilege issue after all, since these are the single most common cause for problems. Especially for transcoding and device access.

@rezzalex
Copy link

Hello everyone,

I can't succeed to make hardware acceleration works on my NAS Asustor 5202T, the CPU is an Intel® Celeron™ CPU @ 2.00GHz
and this NAS is supposed to have hardware transcoding functions.

my log when finishing a transcode is
time="2022-05-29T07:56:10Z" level=info msg="libx264: created VID_20220526_165402.mp4.avc [13m20.938821874s]"

my docker compose file contains this :

PHOTOPRISM_FFMPEG_ENCODER: "intel" PHOTOPRISM_INIT: "gpu tensorflow"

I tried also previously with
PHOTOPRISM_INIT: "intel-graphics tensorflow-amd64-avx2" withtout any success

here are my logs when first starting the container :

started 220527-bookworm as root (amd64-prod) � u make: Entering directory '/scripts' /scripts/install-gpu.sh Get:1 http://deb.debian.org/debian bookworm InRelease [130 kB] Get:2 http://security.debian.org/debian-security bookworm-security InRelease [35.6 kB] Get:3 http://deb.debian.org/debian bookworm-updates InRelease [36.8 kB] Get:4 http://deb.debian.org/debian bookworm-backports InRelease [37.0 kB] Get:5 http://deb.debian.org/debian bookworm/non-free amd64 Packages [99.9 kB] Get:6 http://deb.debian.org/debian bookworm/contrib amd64 Packages [55.3 kB] Get:7 http://deb.debian.org/debian bookworm/main amd64 Packages [8465 kB] Fetched 8860 kB in 2s (4292 kB/s) Reading package lists... debconf: delaying package configuration, since apt-utils is not installed (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 23816 files and directories currently installed.) Preparing to unpack .../archives/dpkg_1.21.8_amd64.deb ... Unpacking dpkg (1.21.8) over (1.21.7) ... Setting up dpkg (1.21.8) ... (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 23816 files and directories currently installed.) Preparing to unpack .../archives/lsb-base_11.2_all.deb ... Unpacking lsb-base (11.2) over (11.1.0) ... Setting up lsb-base (11.2) ... (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 23816 files and directories currently installed.) Preparing to unpack .../libcups2_2.4.2-1_amd64.deb ... Unpacking libcups2:amd64 (2.4.2-1) over (2.4.1op1-2) ... Preparing to unpack .../libldap-2.5-0_2.5.12+dfsg-2_amd64.deb ... Unpacking libldap-2.5-0:amd64 (2.5.12+dfsg-2) over (2.5.11+dfsg-1) ... Setting up libldap-2.5-0:amd64 (2.5.12+dfsg-2) ... Setting up libcups2:amd64 (2.4.2-1) ... Processing triggers for libc-bin (2.33-7) ... GPU detected: i915 Installing Intel Drivers... debconf: delaying package configuration, since apt-utils is not installed Selecting previously unselected package i965-va-driver-shaders:amd64. (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 23816 files and directories currently installed.) Preparing to unpack .../00-i965-va-driver-shaders_2.4.1-1_amd64.deb ... Unpacking i965-va-driver-shaders:amd64 (2.4.1-1) ... Selecting previously unselected package libigdgmm12:amd64. Preparing to unpack .../01-libigdgmm12_22.1.2+ds1-1_amd64.deb ... Unpacking libigdgmm12:amd64 (22.1.2+ds1-1) ... Selecting previously unselected package intel-media-va-driver-non-free:amd64. Preparing to unpack .../02-intel-media-va-driver-non-free_22.4.0+ds1-1_amd64.deb ... Unpacking intel-media-va-driver-non-free:amd64 (22.4.0+ds1-1) ... Selecting previously unselected package libllvm11:amd64. Preparing to unpack .../03-libllvm11_1%3a11.1.0-6+b2_amd64.deb ... Unpacking libllvm11:amd64 (1:11.1.0-6+b2) ... Selecting previously unselected package libigc1:amd64. Preparing to unpack .../04-libigc1_1.0.8744-4_amd64.deb ... Unpacking libigc1:amd64 (1.0.8744-4) ... Selecting previously unselected package libclang-cpp11. Preparing to unpack .../05-libclang-cpp11_1%3a11.1.0-6+b2_amd64.deb ... Unpacking libclang-cpp11 (1:11.1.0-6+b2) ... Selecting previously unselected package libllvmspirvlib11:amd64. Preparing to unpack .../06-libllvmspirvlib11_11.0.0-2+b1_amd64.deb ... Unpacking libllvmspirvlib11:amd64 (11.0.0-2+b1) ... Selecting previously unselected package libopencl-clang11:amd64. Preparing to unpack .../07-libopencl-clang11_11.0.0-2+b1_amd64.deb ... Unpacking libopencl-clang11:amd64 (11.0.0-2+b1) ... Selecting previously unselected package libigdfcl1:amd64. Preparing to unpack .../08-libigdfcl1_1.0.8744-4_amd64.deb ... Unpacking libigdfcl1:amd64 (1.0.8744-4) ... Selecting previously unselected package intel-opencl-icd. Preparing to unpack .../09-intel-opencl-icd_21.32.20609-3_amd64.deb ... Unpacking intel-opencl-icd (21.32.20609-3) ... Selecting previously unselected package libva-wayland2:amd64. Preparing to unpack .../10-libva-wayland2_2.14.0-1_amd64.deb ... Unpacking libva-wayland2:amd64 (2.14.0-1) ... Selecting previously unselected package mesa-va-drivers:amd64. Preparing to unpack .../11-mesa-va-drivers_21.3.8-1_amd64.deb ... Unpacking mesa-va-drivers:amd64 (21.3.8-1) ... Selecting previously unselected package vainfo. Preparing to unpack .../12-vainfo_2.12.0+ds1-1_amd64.deb ... Unpacking vainfo (2.12.0+ds1-1) ... Setting up i965-va-driver-shaders:amd64 (2.4.1-1) ... Setting up libigdgmm12:amd64 (22.1.2+ds1-1) ... Setting up libllvm11:amd64 (1:11.1.0-6+b2) ... Setting up libva-wayland2:amd64 (2.14.0-1) ... Setting up mesa-va-drivers:amd64 (21.3.8-1) ... Setting up libigc1:amd64 (1.0.8744-4) ... Setting up intel-media-va-driver-non-free:amd64 (22.4.0+ds1-1) ... Setting up libllvmspirvlib11:amd64 (11.0.0-2+b1) ... Setting up libclang-cpp11 (1:11.1.0-6+b2) ... Setting up vainfo (2.12.0+ds1-1) ... Setting up libopencl-clang11:amd64 (11.0.0-2+b1) ... Setting up libigdfcl1:amd64 (1.0.8744-4) ... Setting up intel-opencl-icd (21.32.20609-3) ... Processing triggers for libc-bin (2.33-7) ... Done. make: Leaving directory '/scripts' init: tensorflow make: Entering directory '/scripts' /scripts/install-tensorflow.sh auto Detecting driver... Installing TensorFlow 1.15.2 for AMD64 in "/usr"... Downloading amd64 libs from "https://dl.photoprism.app/tensorflow/amd64/libtensorflow-amd64-1.15.2.tar.gz". Please wait. Extracting "/tmp/amd64/libtensorflow-amd64-1.15.2.tar.gz" to "/usr". Running "ldconfig". Done. make: Leaving directory '/scripts' Problems? Our Troubleshooting Checklists help you quickly diagnose and solve them: https://docs.photoprism.app/getting-started/troubleshooting/ file umask....: "0002" (u=rwx,g=rwx,o=rx) home directory: /photoprism assets path...: /opt/photoprism/assets storage path..: /photoprism/storage config path...: default cache path....: default backup path...: /photoprism/storage/backups import path...: /photoprism/import originals path: /photoprism/originals switching to uid 999:999 /opt/photoprism/bin/photoprism start

@lastzero
Copy link
Member

lastzero commented May 29, 2022

Hardware transcoding is one of the special features that causes a very high support and maintenance overhead for our team. To account for that, it's currently only available to sponsors.

@Dulanic
Copy link

Dulanic commented May 29, 2022

Changed to root...

dulanic@mediaserver:~$ docker logs photoprism
started 220527 as root (amd64-prod)
init: updating filesystem permissions
PHOTOPRISM_DISABLE_CHOWN="true" disables permission updates
init: gpu
make: Entering directory '/scripts'
/scripts/install-gpu.sh
Get:1 http://archive.ubuntu.com/ubuntu jammy InRelease [270 kB]
Get:2 http://security.ubuntu.com/ubuntu jammy-security InRelease [110 kB]
Get:3 http://archive.ubuntu.com/ubuntu jammy-updates InRelease [109 kB]
Get:4 http://archive.ubuntu.com/ubuntu jammy-backports InRelease [99.8 kB]
Get:5 http://archive.ubuntu.com/ubuntu jammy/multiverse amd64 Packages [266 kB]
Get:6 http://archive.ubuntu.com/ubuntu jammy/restricted amd64 Packages [164 kB]
Get:7 http://archive.ubuntu.com/ubuntu jammy/main amd64 Packages [1792 kB]
Get:8 http://archive.ubuntu.com/ubuntu jammy/universe amd64 Packages [17.5 MB]
Get:9 http://security.ubuntu.com/ubuntu jammy-security/universe amd64 Packages [71.8 kB]
Get:10 http://security.ubuntu.com/ubuntu jammy-security/main amd64 Packages [155 kB]
Get:11 http://security.ubuntu.com/ubuntu jammy-security/restricted amd64 Packages [156 kB]
Get:12 http://security.ubuntu.com/ubuntu jammy-security/multiverse amd64 Packages [4653 B]
Get:13 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 Packages [267 kB]
Get:14 http://archive.ubuntu.com/ubuntu jammy-updates/multiverse amd64 Packages [4653 B]
Get:15 http://archive.ubuntu.com/ubuntu jammy-updates/restricted amd64 Packages [157 kB]
Get:16 http://archive.ubuntu.com/ubuntu jammy-updates/universe amd64 Packages [124 kB]
Get:17 http://archive.ubuntu.com/ubuntu jammy-backports/universe amd64 Packages [1202 B]
Fetched 21.2 MB in 2s (9555 kB/s)
Reading package lists...
GPU detected: i915
Installing Intel Drivers...
debconf: delaying package configuration, since apt-utils is not installed
Selecting previously unselected package libpciaccess0:amd64.
(Reading database ... 28207 files and directories currently installed.)
Preparing to unpack .../00-libpciaccess0_0.16-3_amd64.deb ...
Unpacking libpciaccess0:amd64 (0.16-3) ...
Selecting previously unselected package libdrm-intel1:amd64.
Preparing to unpack .../01-libdrm-intel1_2.4.110-1ubuntu1_amd64.deb ...
Unpacking libdrm-intel1:amd64 (2.4.110-1ubuntu1) ...
Selecting previously unselected package i965-va-driver-shaders:amd64.
Preparing to unpack .../02-i965-va-driver-shaders_2.4.1-1_amd64.deb ...
Unpacking i965-va-driver-shaders:amd64 (2.4.1-1) ...
Selecting previously unselected package libigdgmm12:amd64.
Preparing to unpack .../03-libigdgmm12_22.1.2+ds1-1_amd64.deb ...
Unpacking libigdgmm12:amd64 (22.1.2+ds1-1) ...
Selecting previously unselected package intel-media-va-driver-non-free:amd64.
Preparing to unpack .../04-intel-media-va-driver-non-free_22.3.1+ds1-1_amd64.deb ...
Unpacking intel-media-va-driver-non-free:amd64 (22.3.1+ds1-1) ...
Selecting previously unselected package libllvm12:amd64.
Preparing to unpack .../05-libllvm12_1%3a12.0.1-19ubuntu3_amd64.deb ...
Unpacking libllvm12:amd64 (1:12.0.1-19ubuntu3) ...
Selecting previously unselected package libllvmspirvlib12:amd64.
Preparing to unpack .../06-libllvmspirvlib12_12.0.0-3_amd64.deb ...
Unpacking libllvmspirvlib12:amd64 (12.0.0-3) ...
Selecting previously unselected package libigc1:amd64.
Preparing to unpack .../07-libigc1_1.0.10840-1_amd64.deb ...
Unpacking libigc1:amd64 (1.0.10840-1) ...
Selecting previously unselected package libclang-cpp12.
Preparing to unpack .../08-libclang-cpp12_1%3a12.0.1-19ubuntu3_amd64.deb ...
Unpacking libclang-cpp12 (1:12.0.1-19ubuntu3) ...
Selecting previously unselected package libopencl-clang12:amd64.
Preparing to unpack .../09-libopencl-clang12_12.0.0-3_amd64.deb ...
Unpacking libopencl-clang12:amd64 (12.0.0-3) ...
Selecting previously unselected package libigdfcl1:amd64.
Preparing to unpack .../10-libigdfcl1_1.0.10840-1_amd64.deb ...
Unpacking libigdfcl1:amd64 (1.0.10840-1) ...
Selecting previously unselected package intel-opencl-icd.
Preparing to unpack .../11-intel-opencl-icd_22.14.22890-1_amd64.deb ...
Unpacking intel-opencl-icd (22.14.22890-1) ...
Selecting previously unselected package libva-wayland2:amd64.
Preparing to unpack .../12-libva-wayland2_2.14.0-1_amd64.deb ...
Unpacking libva-wayland2:amd64 (2.14.0-1) ...
Selecting previously unselected package mesa-va-drivers:amd64.
Preparing to unpack .../13-mesa-va-drivers_22.0.1-1ubuntu2_amd64.deb ...
Unpacking mesa-va-drivers:amd64 (22.0.1-1ubuntu2) ...
Selecting previously unselected package vainfo.
Preparing to unpack .../14-vainfo_2.12.0+ds1-1_amd64.deb ...
Unpacking vainfo (2.12.0+ds1-1) ...
Setting up libpciaccess0:amd64 (0.16-3) ...
Setting up libdrm-intel1:amd64 (2.4.110-1ubuntu1) ...
Setting up libigdgmm12:amd64 (22.1.2+ds1-1) ...
Setting up libllvm12:amd64 (1:12.0.1-19ubuntu3) ...
Setting up libva-wayland2:amd64 (2.14.0-1) ...
Setting up mesa-va-drivers:amd64 (22.0.1-1ubuntu2) ...
Setting up i965-va-driver-shaders:amd64 (2.4.1-1) ...
Setting up intel-media-va-driver-non-free:amd64 (22.3.1+ds1-1) ...
Setting up libllvmspirvlib12:amd64 (12.0.0-3) ...
Setting up libclang-cpp12 (1:12.0.1-19ubuntu3) ...
Setting up vainfo (2.12.0+ds1-1) ...
Setting up libopencl-clang12:amd64 (12.0.0-3) ...
Setting up libigc1:amd64 (1.0.10840-1) ...
Setting up libigdfcl1:amd64 (1.0.10840-1) ...
Setting up intel-opencl-icd (22.14.22890-1) ...
Processing triggers for libc-bin (2.35-0ubuntu3) ...
Done.
make: Leaving directory '/scripts'
init: tensorflow
make: Entering directory '/scripts'
/scripts/install-tensorflow.sh auto
Detecting driver...
Installing TensorFlow 1.15.2 for AMD64-AVX2 in "/usr"...
Downloading amd64 libs from "https://dl.photoprism.app/tensorflow/amd64/libtensorflow-amd64-avx2-1.15.2.tar.gz". Please wait.
Extracting "/tmp/amd64/libtensorflow-amd64-avx2-1.15.2.tar.gz" to "/usr".
Running "ldconfig".
Done.
make: Leaving directory '/scripts'
Problems? Our Troubleshooting Checklists help you quickly diagnose and solve them:
https://docs.photoprism.app/getting-started/troubleshooting/
file umask....: "0002" (u=rwx,g=rwx,o=rx)
home directory: /photoprism
assets path...: /opt/photoprism/assets
storage path..: /photoprism/storage
config path...: default
cache path....: default
backup path...: /photoprism/storage/backups
import path...: /photoprism/import
originals path: /photoprism/originals
switching to uid 1000:1000
/opt/photoprism/bin/photoprism start
time="2022-05-29T12:08:03-05:00" level=debug msg="config: successfully initialized [1.676993ms]"
time="2022-05-29T12:08:03-05:00" level=debug msg="migrate: found 23 previous migrations"
time="2022-05-29T12:08:03-05:00" level=debug msg="migrate: 20211121-094727 skipped"
time="2022-05-29T12:08:03-05:00" level=debug msg="migrate: 20211124-120008 skipped"
time="2022-05-29T12:08:03-05:00" level=debug msg="migrate: 20220329-030000 skipped"
time="2022-05-29T12:08:03-05:00" level=debug msg="migrate: 20220329-040000 skipped"
time="2022-05-29T12:08:03-05:00" level=debug msg="migrate: 20220329-050000 skipped"
time="2022-05-29T12:08:03-05:00" level=debug msg="migrate: 20220329-060000 skipped"
time="2022-05-29T12:08:03-05:00" level=debug msg="migrate: 20220329-061000 skipped"
time="2022-05-29T12:08:03-05:00" level=debug msg="migrate: 20220329-070000 skipped"
time="2022-05-29T12:08:03-05:00" level=debug msg="migrate: 20220329-071000 skipped"
time="2022-05-29T12:08:03-05:00" level=debug msg="migrate: 20220329-080000 skipped"
time="2022-05-29T12:08:03-05:00" level=debug msg="migrate: 20220329-081000 skipped"
time="2022-05-29T12:08:03-05:00" level=debug msg="migrate: 20220329-083000 skipped"
time="2022-05-29T12:08:03-05:00" level=debug msg="migrate: 20220329-090000 skipped"
time="2022-05-29T12:08:03-05:00" level=debug msg="migrate: 20220329-091000 skipped"
time="2022-05-29T12:08:03-05:00" level=debug msg="migrate: 20220329-093000 skipped"
time="2022-05-29T12:08:03-05:00" level=debug msg="migrate: 20220421-200000 skipped"
time="2022-05-29T12:08:03-05:00" level=debug msg="migrate: 20220521-000001 skipped"
time="2022-05-29T12:08:03-05:00" level=debug msg="migrate: 20220521-000002 skipped"
time="2022-05-29T12:08:03-05:00" level=debug msg="migrate: 20220521-000003 skipped"
time="2022-05-29T12:08:03-05:00" level=trace msg="migrate: folders migrated"
time="2022-05-29T12:08:03-05:00" level=trace msg="migrate: cells migrated"
time="2022-05-29T12:08:03-05:00" level=trace msg="migrate: links migrated"
time="2022-05-29T12:08:03-05:00" level=trace msg="migrate: users migrated"
time="2022-05-29T12:08:03-05:00" level=trace msg="migrate: cameras migrated"
time="2022-05-29T12:08:03-05:00" level=trace msg="migrate: albums migrated"
time="2022-05-29T12:08:03-05:00" level=trace msg="migrate: keywords migrated"
time="2022-05-29T12:08:03-05:00" level=trace msg="migrate: markers migrated"
time="2022-05-29T12:08:03-05:00" level=trace msg="migrate: countries migrated"
time="2022-05-29T12:08:03-05:00" level=trace msg="migrate: categories migrated"
time="2022-05-29T12:08:03-05:00" level=trace msg="migrate: migrations migrated"
time="2022-05-29T12:08:03-05:00" level=trace msg="migrate: accounts migrated"
time="2022-05-29T12:08:03-05:00" level=trace msg="migrate: photos_keywords migrated"
time="2022-05-29T12:08:03-05:00" level=trace msg="migrate: subjects migrated"
time="2022-05-29T12:08:03-05:00" level=trace msg="migrate: duplicates migrated"
time="2022-05-29T12:08:03-05:00" level=trace msg="migrate: files_sync migrated"
time="2022-05-29T12:08:03-05:00" level=trace msg="migrate: photos_albums migrated"
time="2022-05-29T12:08:03-05:00" level=trace msg="migrate: faces migrated"
time="2022-05-29T12:08:03-05:00" level=trace msg="migrate: errors migrated"
time="2022-05-29T12:08:03-05:00" level=trace msg="migrate: files migrated"
time="2022-05-29T12:08:03-05:00" level=trace msg="migrate: details migrated"
time="2022-05-29T12:08:03-05:00" level=trace msg="migrate: places migrated"
time="2022-05-29T12:08:03-05:00" level=trace msg="migrate: addresses migrated"
time="2022-05-29T12:08:03-05:00" level=trace msg="migrate: lenses migrated"
time="2022-05-29T12:08:03-05:00" level=trace msg="migrate: passwords migrated"
time="2022-05-29T12:08:03-05:00" level=trace msg="migrate: files_share migrated"
time="2022-05-29T12:08:03-05:00" level=trace msg="migrate: photos migrated"
time="2022-05-29T12:08:03-05:00" level=trace msg="migrate: labels migrated"
time="2022-05-29T12:08:03-05:00" level=trace msg="migrate: photos_labels migrated"
time="2022-05-29T12:08:03-05:00" level=debug msg="migrate: completed in 397.66772ms"
time="2022-05-29T12:08:03-05:00" level=debug msg="restore: album yaml files disabled"
time="2022-05-29T12:08:03-05:00" level=info msg="http: enabling gzip compression"
time="2022-05-29T12:08:03-05:00" level=info msg="webdav: /originals/ enabled, waiting for requests"
time="2022-05-29T12:08:03-05:00" level=info msg="webdav: /import/ enabled, waiting for requests"
time="2022-05-29T12:08:03-05:00" level=debug msg="http: successfully initialized [4.422797ms]"
time="2022-05-29T12:08:03-05:00" level=info msg="http: starting web server at 0.0.0.0:2342"

runnng convert to get more low level details now...

@Dulanic
Copy link

Dulanic commented May 29, 2022

This took longer than expected.... I think running it as root worked... so I assume don't use user in docker-compose lol.

@Dulanic
Copy link

Dulanic commented May 29, 2022

One last follow up, using PHOTOPRISM_UID causes it to break again so Ill just stay root.

2022-05-29 15:21:22 ERRO import: ffmpeg version 4.4.1-3ubuntu5 Copyright (c) 2000-2021 the FFmpeg developers built with gcc 11 (Ubuntu 11.2.0-18ubuntu1) configuration: --prefix=/usr --extra-version=3ubuntu5 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl --disable-stripping --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libdav1d --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librabbitmq --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzimg --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sdl2 --enable-pocketsphinx --enable-librsvg --enable-libmfx --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --enable-shared WARNING: library configuration mismatch avcodec configuration: --prefix=/usr --extra-version=3ubuntu5 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl --disable-stripping --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libdav1d --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librabbitmq --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzimg --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sdl2 --enable-pocketsphinx --enable-librsvg --enable-libmfx --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --enable-shared --enable-version3 --disable-doc --disable-programs --enable-libaribb24 --enable-libopencore_amrnb --enable-libopencore_amrwb --enable-libtesseract --enable-libvo_amrwbenc --enable-libsmbclient libavutil 56. 70.100 / 56. 70.100 libavcodec 58.134.100 / 58.134.100 libavformat 58. 76.100 / 58. 76.100 libavdevice 58. 13.100 / 58. 13.100 libavfilter 7.110.100 / 7.110.100 libswscale 5. 9.100 / 5. 9.100 libswresample 3. 9.100 / 3. 9.100 libpostproc 55. 9.100 / 55. 9.100 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x562e304036c0] moov atom not found /photoprism/originals/2022/05/20220529_202107_5A11F9D4.mp4: Invalid data found when processing input in 2022/05/20220529_202107_5A11F9D4.mp4 (convert to jpeg)

@blue-kaleidoscope
Copy link
Contributor

blue-kaleidoscope commented Jun 16, 2022

Hi, I'm also having issues with using QSV transcoding on my QNAP-TS451+ which has an Intel Celeron J1900. According to Intel it supports QSV.
Using QNAP's (catastrophic) QPhoto I can transcode iPhone videos quite fast. So I assume QSV is working there. The only thing to watch out: You have to use QPhoto as a root user.

I believe Photoprism is by far a better solution but I could use your help with hardware transcoding.

When executing ffmpeg as root user inside the container as follows I get an error message:

  built with gcc 11 (Debian 11.3.0-3)
  configuration: --prefix=/usr --extra-version=1+b2 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl --disable-stripping --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libdav1d --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librabbitmq --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzimg --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sdl2 --disable-sndio --enable-pocketsphinx --enable-librsvg --enable-libmfx --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --enable-shared
  WARNING: library configuration mismatch
  avcodec     configuration: --prefix=/usr --extra-version=1+b2 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl --disable-stripping --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libdav1d --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librabbitmq --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzimg --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sdl2 --disable-sndio --enable-pocketsphinx --enable-librsvg --enable-libmfx --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --enable-shared --enable-version3 --disable-doc --disable-programs --enable-libaribb24 --enable-libopencore_amrnb --enable-libopencore_amrwb --enable-libtesseract --enable-libvo_amrwbenc --enable-libsmbclient
  libavutil      56. 70.100 / 56. 70.100
  libavcodec     58.134.100 / 58.134.100
  libavformat    58. 76.100 / 58. 76.100
  libavdevice    58. 13.100 / 58. 13.100
  libavfilter     7.110.100 /  7.110.100
  libswscale      5.  9.100 /  5.  9.100
  libswresample   3.  9.100 /  3.  9.100
  libpostproc    55.  9.100 / 55.  9.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/photoprism/originals/2022/05/Videos/2022-05-15 18.26.01.MOV':
  Metadata:
    major_brand     : qt  
    minor_version   : 0
    compatible_brands: qt  
    creation_time   : 2022-05-15T16:26:01.000000Z
    com.apple.quicktime.make: Apple
    com.apple.quicktime.model: iPhone XS
    com.apple.quicktime.software: 15.4.1
    com.apple.quicktime.creationdate: 2022-05-15T18:26:01+0200
  Duration: 00:00:58.18, start: 0.000000, bitrate: 9762 kb/s
  Stream #0:0(und): Video: hevc (Main) (hvc1 / 0x31637668), yuv420p(tv, bt709), 1920x1080, 9531 kb/s, 29.99 fps, 30 tbr, 600 tbn, 600 tbc (default)
    Metadata:
      rotate          : 90
      creation_time   : 2022-05-15T16:26:01.000000Z
      handler_name    : Core Media Video
      vendor_id       : [0][0][0][0]
      encoder         : HEVC
    Side data:
      displaymatrix: rotation of -90.00 degrees
  Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 174 kb/s (default)
    Metadata:
      creation_time   : 2022-05-15T16:26:01.000000Z
      handler_name    : Core Media Audio
      vendor_id       : [0][0][0][0]
  Stream #0:2(und): Data: none (mebx / 0x7862656D), 0 kb/s (default)
    Metadata:
      creation_time   : 2022-05-15T16:26:01.000000Z
      handler_name    : Core Media Metadata
  Stream #0:3(und): Data: none (mebx / 0x7862656D), 5 kb/s (default)
    Metadata:
      creation_time   : 2022-05-15T16:26:01.000000Z
      handler_name    : Core Media Metadata
  Stream #0:4(und): Data: none (mebx / 0x7862656D), 36 kb/s (default)
    Metadata:
      creation_time   : 2022-05-15T16:26:01.000000Z
      handler_name    : Core Media Metadata
Stream mapping:
  Stream #0:0 -> #0:0 (hevc (native) -> h264 (h264_qsv))
  Stream #0:1 -> #0:1 (aac (native) -> aac (native))
Press [q] to stop, [?] for help
[AVHWDeviceContext @ 0x559e764d53c0] libva: /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so init failed
[AVHWDeviceContext @ 0x559e764d53c0] Failed to initialise VAAPI connection: 1 (operation failed).
[h264_qsv @ 0x559e75b633c0] Failed to create a VAAPI device.
Error initializing output stream 0:0 -- Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height
[aac @ 0x559e75b761c0] Qavg: 170.022
[aac @ 0x559e75b761c0] 2 frames left in the queue on closing
Conversion failed!

An excerpt of my docker-compose.yml looks as follows:

  photoprism:
    ## Use photoprism/photoprism:preview for testing preview builds:
    image: photoprism/photoprism:latest
    depends_on:
      - mariadb
    ## Don't enable automatic restarts until PhotoPrism has been properly configured and tested!
    ## If the service gets stuck in a restart loop, this points to a memory, filesystem, network, or database issue:
    ## https://docs.photoprism.app/getting-started/troubleshooting/#fatal-server-errors
    restart: unless-stopped
    security_opt:
      - seccomp:unconfined
      - apparmor:unconfined
    ports:
      - "2342:2342" # HTTP port (host:container)
    environment:
      PHOTOPRISM_ADMIN_PASSWORD: "insecure"          # YOUR INITIAL ADMIN PASSWORD (MINIMUM 8 CHARACTERS, USERNAME "admin")
      PHOTOPRISM_SITE_URL: "http://localhost:2342/"  # public server URL incl http:// or https:// and /path, :port is optional
      PHOTOPRISM_ORIGINALS_LIMIT: 5000               # file size limit for originals in MB (increase for high-res video)
      PHOTOPRISM_HTTP_COMPRESSION: "gzip"            # improves transfer speed and bandwidth utilization (none or gzip)
      PHOTOPRISM_LOG_LEVEL: "info"                   # log level: trace, debug, info, warning, error, fatal, or panic
      PHOTOPRISM_PUBLIC: "true"                     # no authentication required (disables password protection)
      PHOTOPRISM_READONLY: "false"                   # do not modify originals directory (reduced functionality)
      PHOTOPRISM_EXPERIMENTAL: "true"               # enables experimental features
      PHOTOPRISM_DISABLE_CHOWN: "false"              # disables storage permission updates on startup
      PHOTOPRISM_DISABLE_WEBDAV: "true"             # disables built-in WebDAV server
      PHOTOPRISM_DISABLE_SETTINGS: "false"           # disables settings UI and API
      PHOTOPRISM_DISABLE_TENSORFLOW: "false"         # disables all features depending on TensorFlow
      PHOTOPRISM_DISABLE_FACES: "true"              # disables facial recognition
      PHOTOPRISM_DISABLE_CLASSIFICATION: "true"     # disables image classification
      PHOTOPRISM_DISABLE_RAW: "false"                # disables indexing and conversion of RAW files
      PHOTOPRISM_RAW_PRESETS: "false"                # enables applying user presets when converting RAW files (reduces performance)
      PHOTOPRISM_JPEG_QUALITY: 85                    # image quality, a higher value reduces compression (25-100)
      PHOTOPRISM_DETECT_NSFW: "false"                # flag photos as private that MAY be offensive (requires TensorFlow)
      PHOTOPRISM_UPLOAD_NSFW: "true"                 # allows uploads that MAY be offensive
      # PHOTOPRISM_DATABASE_DRIVER: "sqlite"         # SQLite is an embedded database that doesn't require a server
      PHOTOPRISM_DATABASE_DRIVER: "mysql"            # use MariaDB 10.5+ or MySQL 8+ instead of SQLite for improved performance
      PHOTOPRISM_DATABASE_SERVER: "mariadb:3306"     # MariaDB or MySQL database server (hostname:port)
      PHOTOPRISM_DATABASE_NAME: "photoprism"         # MariaDB or MySQL database schema name
      PHOTOPRISM_DATABASE_USER: "photoprism"         # MariaDB or MySQL database user name
      PHOTOPRISM_DATABASE_PASSWORD: "insecure"       # MariaDB or MySQL database user password
      PHOTOPRISM_SITE_CAPTION: "AI-Powered Photos App"
      PHOTOPRISM_SITE_DESCRIPTION: ""                # meta site description
      PHOTOPRISM_SITE_AUTHOR: ""                     # meta site author
      ## Run/install on first startup (options: update, gpu, tensorflow, davfs, clitools, clean):
      PHOTOPRISM_INIT: "gpu tensorflow"
      ## Hardware Video Transcoding (for sponsors only due to high maintenance and support costs):
      PHOTOPRISM_FFMPEG_ENCODER: "intel"        # FFmpeg encoder ("software", "intel", "nvidia", "apple", "raspberry")
      PHOTOPRISM_FFMPEG_BITRATE: "25"              # FFmpeg encoding bitrate limit in Mbit/s (default: 50)
      PHOTOPRISM_FFMPEG_BIN: "ffmpeg"
      PHOTOPRISM_FFMPEG_BUFFERS: "64"
      ## Switch to a non-root user after initialization (supported IDs are 33, 50-99, 500-600, and 900-1200):
      #PHOTOPRISM_UID: 1000
      #PHOTOPRISM_GID: 1000
      # PHOTOPRISM_UMASK: 0000
    ## Start as a non-root user before initialization (supported IDs are 33, 50-99, 500-600, and 900-1200):
    #user: "1000:1000"
    ## Share hardware devices with FFmpeg and TensorFlow (optional):
    devices:
      - "/dev/dri:/dev/dri"

When powering up photoprism I see the following messages:

[33mphotoprism_1  |[0m started 220528-bookworm as root (amd64-prod)
[36mmariadb_1     |[0m 2022-06-16 19:42:40+00:00 [Note] [Entrypoint]: Entrypoint script for MariaDB Server 1:10.7.4+maria~focal started.
[33mphotoprism_1  |[0m init: gpu
[33mphotoprism_1  |[0m make: Entering directory '/scripts'
[33mphotoprism_1  |[0m /scripts/install-gpu.sh
[33mphotoprism_1  |[0m Get:1 http://deb.debian.org/debian bookworm InRelease [130 kB]
[36mmariadb_1     |[0m 2022-06-16 19:42:40+00:00 [Note] [Entrypoint]: Switching to dedicated user 'mysql'
[36mmariadb_1     |[0m 2022-06-16 19:42:40+00:00 [Note] [Entrypoint]: Entrypoint script for MariaDB Server 1:10.7.4+maria~focal started.
[36mmariadb_1     |[0m 2022-06-16 19:42:41+00:00 [Note] [Entrypoint]: MariaDB upgrade not required
[33mphotoprism_1  |[0m Get:2 http://security.debian.org/debian-security bookworm-security InRelease [35.6 kB]
[36mmariadb_1     |[0m 2022-06-16 19:42:41 0 [Note] mysqld (server 10.7.4-MariaDB-1:10.7.4+maria~focal) starting as process 1 ...
[33mphotoprism_1  |[0m Get:3 http://deb.debian.org/debian bookworm-updates InRelease [36.8 kB]
[33mphotoprism_1  |[0m Get:4 http://deb.debian.org/debian bookworm-backports InRelease [37.0 kB]
[36mmariadb_1     |[0m 2022-06-16 19:42:41 0 [Note] InnoDB: Compressed tables use zlib 1.2.11
[36mmariadb_1     |[0m 2022-06-16 19:42:41 0 [Note] InnoDB: Number of transaction pools: 1
[36mmariadb_1     |[0m 2022-06-16 19:42:41 0 [Note] InnoDB: Using crc32 + pclmulqdq instructions
[36mmariadb_1     |[0m 2022-06-16 19:42:41 0 [Note] mysqld: O_TMPFILE is not supported on /tmp (disabling future attempts)
[36mmariadb_1     |[0m 2022-06-16 19:42:41 0 [Note] InnoDB: Using Linux native AIO
[36mmariadb_1     |[0m 2022-06-16 19:42:41 0 [Note] InnoDB: Initializing buffer pool, total size = 134217728, chunk size = 134217728
[36mmariadb_1     |[0m 2022-06-16 19:42:41 0 [Note] InnoDB: Completed initialization of buffer pool
[36mmariadb_1     |[0m 2022-06-16 19:42:42 0 [Note] InnoDB: 128 rollback segments are active.
[36mmariadb_1     |[0m 2022-06-16 19:42:42 0 [Note] InnoDB: Creating shared tablespace for temporary tables
[36mmariadb_1     |[0m 2022-06-16 19:42:42 0 [Note] InnoDB: Setting file './ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
[36mmariadb_1     |[0m 2022-06-16 19:42:42 0 [Note] InnoDB: File './ibtmp1' size is now 12 MB.
[36mmariadb_1     |[0m 2022-06-16 19:42:42 0 [Note] InnoDB: 10.7.4 started; log sequence number 762092945; transaction id 3007004
[36mmariadb_1     |[0m 2022-06-16 19:42:42 0 [Note] InnoDB: Loading buffer pool(s) from /var/lib/mysql/ib_buffer_pool
[36mmariadb_1     |[0m 2022-06-16 19:42:42 0 [Note] Plugin 'FEEDBACK' is disabled.
[36mmariadb_1     |[0m 2022-06-16 19:42:42 0 [Warning] You need to use --log-bin to make --expire-logs-days or --binlog-expire-logs-seconds work.
[36mmariadb_1     |[0m 2022-06-16 19:42:42 0 [Note] Server socket created on IP: '0.0.0.0'.
[36mmariadb_1     |[0m 2022-06-16 19:42:42 0 [Note] Server socket created on IP: '::'.
[36mmariadb_1     |[0m 2022-06-16 19:42:43 0 [Note] mysqld: ready for connections.
[36mmariadb_1     |[0m Version: '10.7.4-MariaDB-1:10.7.4+maria~focal'  socket: '/run/mysqld/mysqld.sock'  port: 3306  mariadb.org binary distribution
[36mmariadb_1     |[0m 2022-06-16 19:42:44 0 [Note] InnoDB: Buffer pool(s) load completed at 220616 19:42:44
[33mphotoprism_1  |[0m Get:5 http://deb.debian.org/debian bookworm/non-free amd64 Packages [99.7 kB]
[33mphotoprism_1  |[0m Get:6 http://deb.debian.org/debian bookworm/contrib amd64 Packages [55.3 kB]
[33mphotoprism_1  |[0m Get:7 http://deb.debian.org/debian bookworm/main amd64 Packages [8501 kB]
[33mphotoprism_1  |[0m Fetched 8895 kB in 4s (2050 kB/s)
[33mphotoprism_1  |[0m Reading package lists...
[33mphotoprism_1  |[0m debconf: delaying package configuration, since apt-utils is not installed
[33mphotoprism_1  |[0m (Reading database ... 
(Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
(Reading database ... 90%
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 23816 files and directories currently installed.)
[33mphotoprism_1  |[0m Preparing to unpack .../bash_5.1-6.1_amd64.deb ...
[33mphotoprism_1  |[0m update-alternatives: warning: alternative /usr/share/man/man7/bash-builtins.7.gz (part of link group builtins.7.gz) doesn't exist; removing from list of alternatives
[33mphotoprism_1  |[0m update-alternatives: warning: /etc/alternatives/builtins.7.gz is dangling; it will be updated with best choice
[33mphotoprism_1  |[0m Unpacking bash (5.1-6.1) over (5.1-6+b1) ...
[33mphotoprism_1  |[0m Setting up bash (5.1-6.1) ...
[33mphotoprism_1  |[0m update-alternatives: error: alternative path /usr/share/man/man7/bash-builtins.7.gz doesn't exist
[33mphotoprism_1  |[0m (Reading database ... 
(Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
(Reading database ... 90%
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 23816 files and directories currently installed.)
[33mphotoprism_1  |[0m Preparing to unpack .../00-wget_1.21.3-1+b2_amd64.deb ...
[33mphotoprism_1  |[0m Unpacking wget (1.21.3-1+b2) over (1.21.3-1+b1) ...
[33mphotoprism_1  |[0m Preparing to unpack .../01-libavcodec-extra_7%3a4.4.2-1+b2_amd64.deb ...
[33mphotoprism_1  |[0m Unpacking libavcodec-extra:amd64 (7:4.4.2-1+b2) over (7:4.4.2-1+b1) ...
[33mphotoprism_1  |[0m Preparing to unpack .../02-ffmpeg_7%3a4.4.2-1+b2_amd64.deb ...
[33mphotoprism_1  |[0m Unpacking ffmpeg (7:4.4.2-1+b2) over (7:4.4.2-1+b1) ...
[33mphotoprism_1  |[0m Preparing to unpack .../03-libavdevice58_7%3a4.4.2-1+b2_amd64.deb ...
[33mphotoprism_1  |[0m Unpacking libavdevice58:amd64 (7:4.4.2-1+b2) over (7:4.4.2-1+b1) ...
[33mphotoprism_1  |[0m Preparing to unpack .../04-libavfilter7_7%3a4.4.2-1+b2_amd64.deb ...
[33mphotoprism_1  |[0m Unpacking libavfilter7:amd64 (7:4.4.2-1+b2) over (7:4.4.2-1+b1) ...
[33mphotoprism_1  |[0m Preparing to unpack .../05-libswscale5_7%3a4.4.2-1+b2_amd64.deb ...
[33mphotoprism_1  |[0m Unpacking libswscale5:amd64 (7:4.4.2-1+b2) over (7:4.4.2-1+b1) ...
[33mphotoprism_1  |[0m Preparing to unpack .../06-libavformat58_7%3a4.4.2-1+b2_amd64.deb ...
[33mphotoprism_1  |[0m Unpacking libavformat58:amd64 (7:4.4.2-1+b2) over (7:4.4.2-1+b1) ...
[33mphotoprism_1  |[0m Preparing to unpack .../07-libavcodec-extra58_7%3a4.4.2-1+b2_amd64.deb ...
[33mphotoprism_1  |[0m Unpacking libavcodec-extra58:amd64 (7:4.4.2-1+b2) over (7:4.4.2-1+b1) ...
[33mphotoprism_1  |[0m Preparing to unpack .../08-libswresample3_7%3a4.4.2-1+b2_amd64.deb ...
[33mphotoprism_1  |[0m Unpacking libswresample3:amd64 (7:4.4.2-1+b2) over (7:4.4.2-1+b1) ...
[33mphotoprism_1  |[0m Preparing to unpack .../09-libpostproc55_7%3a4.4.2-1+b2_amd64.deb ...
[33mphotoprism_1  |[0m Unpacking libpostproc55:amd64 (7:4.4.2-1+b2) over (7:4.4.2-1+b1) ...
[33mphotoprism_1  |[0m Preparing to unpack .../10-libavutil56_7%3a4.4.2-1+b2_amd64.deb ...
[33mphotoprism_1  |[0m Unpacking libavutil56:amd64 (7:4.4.2-1+b2) over (7:4.4.2-1+b1) ...
[33mphotoprism_1  |[0m Preparing to unpack .../11-libcaca0_0.99.beta20-2_amd64.deb ...
[33mphotoprism_1  |[0m Unpacking libcaca0:amd64 (0.99.beta20-2) over (0.99.beta19-2.2) ...
[33mphotoprism_1  |[0m Preparing to unpack .../12-libiec61883-0_1.2.0-5_amd64.deb ...
[33mphotoprism_1  |[0m Unpacking libiec61883-0:amd64 (1.2.0-5) over (1.2.0-4) ...
[33mphotoprism_1  |[0m Preparing to unpack .../13-libjack-jackd2-0_1.9.21~dfsg-1_amd64.deb ...
[33mphotoprism_1  |[0m Unpacking libjack-jackd2-0:amd64 (1.9.21~dfsg-1) over (1.9.20~dfsg-1+b1) ...
[33mphotoprism_1  |[0m Preparing to unpack .../14-libpulse0_15.0+dfsg1-4+b1_amd64.deb ...
[33mphotoprism_1  |[0m Unpacking libpulse0:amd64 (15.0+dfsg1-4+b1) over (15.0+dfsg1-4) ...
[33mphotoprism_1  |[0m Preparing to unpack .../15-libgbm1_22.0.5-1_amd64.deb ...
[33mphotoprism_1  |[0m Unpacking libgbm1:amd64 (22.0.5-1) over (21.3.8-1) ...
[33mphotoprism_1  |[0m Preparing to unpack .../16-libsdl2-2.0-0_2.0.22+dfsg-5_amd64.deb ...
[33mphotoprism_1  |[0m Unpacking libsdl2-2.0-0:amd64 (2.0.22+dfsg-5) over (2.0.22+dfsg-3) ...
[33mphotoprism_1  |[0m Preparing to unpack .../17-libserd-0-0_0.30.12-1_amd64.deb ...
[33mphotoprism_1  |[0m Unpacking libserd-0-0:amd64 (0.30.12-1) over (0.30.10-2) ...
[33mphotoprism_1  |[0m Preparing to unpack .../18-libsord-0-0_0.16.10-1_amd64.deb ...
[33mphotoprism_1  |[0m Unpacking libsord-0-0:amd64 (0.16.10-1) over (0.16.8-2) ...
[33mphotoprism_1  |[0m Preparing to unpack .../19-libsratom-0-0_0.6.10-1_amd64.deb ...
[33mphotoprism_1  |[0m Unpacking libsratom-0-0:amd64 (0.6.10-1) over (0.6.8-1) ...
[33mphotoprism_1  |[0m Preparing to unpack .../20-liblilv-0-0_0.24.14-1_amd64.deb ...
[33mphotoprism_1  |[0m Unpacking liblilv-0-0:amd64 (0.24.14-1) over (0.24.12-2) ...
[33mphotoprism_1  |[0m Preparing to unpack .../21-libbluray2_1%3a1.3.1-2_amd64.deb ...
[33mphotoprism_1  |[0m Unpacking libbluray2:amd64 (1:1.3.1-2) over (1:1.3.1-1) ...
[33mphotoprism_1  |[0m Preparing to unpack .../22-libsrt1.4-gnutls_1.4.4-4+b1_amd64.deb ...
[33mphotoprism_1  |[0m Unpacking libsrt1.4-gnutls:amd64 (1.4.4-4+b1) over (1.4.4-4) ...
[33mphotoprism_1  |[0m Preparing to unpack .../23-libssh-gcrypt-4_0.9.6-2+b1_amd64.deb ...
[33mphotoprism_1  |[0m Unpacking libssh-gcrypt-4:amd64 (0.9.6-2+b1) over (0.9.6-2) ...
[33mphotoprism_1  |[0m Preparing to unpack .../24-libglib2.0-0_2.72.2-2_amd64.deb ...
[33mphotoprism_1  |[0m Unpacking libglib2.0-0:amd64 (2.72.2-2) over (2.72.1-1) ...
[33mphotoprism_1  |[0m Preparing to unpack .../25-librsvg2-2_2.54.3+dfsg-1_amd64.deb ...
[33mphotoprism_1  |[0m Unpacking librsvg2-2:amd64 (2.54.3+dfsg-1) over (2.52.5+dfsg-3+b1) ...
[33mphotoprism_1  |[0m Preparing to unpack .../26-libtheora0_1.1.1+dfsg.1-16_amd64.deb ...
[33mphotoprism_1  |[0m Unpacking libtheora0:amd64 (1.1.1+dfsg.1-16) over (1.1.1+dfsg.1-15) ...
[33mphotoprism_1  |[0m Preparing to unpack .../27-gtk-update-icon-cache_3.24.34-1_amd64.deb ...
[33mphotoprism_1  |[0m Unpacking gtk-update-icon-cache (3.24.34-1) over (3.24.33-2) ...
[33mphotoprism_1  |[0m Preparing to unpack .../28-libabsl20210324_0~20210324.2-4_amd64.deb ...
[33mphotoprism_1  |[0m Unpacking libabsl20210324:amd64 (0~20210324.2-4) over (0~20210324.2-3) ...
[33mphotoprism_1  |[0m Preparing to unpack .../29-libavahi-client3_0.8-6_amd64.deb ...
[33mphotoprism_1  |[0m Unpacking libavahi-client3:amd64 (0.8-6) over (0.8-5) ...
[33mphotoprism_1  |[0m Preparing to unpack .../30-libavahi-common3_0.8-6_amd64.deb ...
[33mphotoprism_1  |[0m Unpacking libavahi-common3:amd64 (0.8-6) over (0.8-5) ...
[33mphotoprism_1  |[0m Preparing to unpack .../31-libavahi-common-data_0.8-6_amd64.deb ...
[33mphotoprism_1  |[0m Unpacking libavahi-common-data:amd64 (0.8-6) over (0.8-5) ...
[33mphotoprism_1  |[0m Preparing to unpack .../32-libsasl2-modules-db_2.1.28+dfsg-6_amd64.deb ...
[33mphotoprism_1  |[0m Unpacking libsasl2-modules-db:amd64 (2.1.28+dfsg-6) over (2.1.28+dfsg-4) ...
[33mphotoprism_1  |[0m Preparing to unpack .../33-libsasl2-2_2.1.28+dfsg-6_amd64.deb ...
[33mphotoprism_1  |[0m Unpacking libsasl2-2:amd64 (2.1.28+dfsg-6) over (2.1.28+dfsg-4) ...
[33mphotoprism_1  |[0m Preparing to unpack .../34-libldap-2.5-0_2.5.12+dfsg-2_amd64.deb ...
[33mphotoprism_1  |[0m Unpacking libldap-2.5-0:amd64 (2.5.12+dfsg-2) over (2.5.11+dfsg-1) ...
[33mphotoprism_1  |[0m Preparing to unpack .../35-libnghttp2-14_1.47.0-1+b1_amd64.deb ...
[33mphotoprism_1  |[0m Unpacking libnghttp2-14:amd64 (1.47.0-1+b1) over (1.47.0-1) ...
[33mphotoprism_1  |[0m Preparing to unpack .../36-libcurl3-gnutls_7.83.1-1+b1_amd64.deb ...
[33mphotoprism_1  |[0m Unpacking libcurl3-gnutls:amd64 (7.83.1-1+b1) over (7.83.0-1) ...
[33mphotoprism_1  |[0m Preparing to unpack .../37-libdvdread8_6.1.3-1_amd64.deb ...
[33mphotoprism_1  |[0m Unpacking libdvdread8:amd64 (6.1.3-1) over (6.1.2-1) ...
[33mphotoprism_1  |[0m Preparing to unpack .../38-libflac8_1.3.4-2_amd64.deb ...
[33mphotoprism_1  |[0m Unpacking libflac8:amd64 (1.3.4-2) over (1.3.4-1) ...
[33mphotoprism_1  |[0m Preparing to unpack .../39-libgtk-3-common_3.24.34-1_all.deb ...
[33mphotoprism_1  |[0m Unpacking libgtk-3-common (3.24.34-1) over (3.24.33-2) ...
[33mphotoprism_1  |[0m Preparing to unpack .../40-libgtk-3-0_3.24.34-1_amd64.deb ...
[33mphotoprism_1  |[0m Unpacking libgtk-3-0:amd64 (3.24.34-1) over (3.24.33-2) ...
[33mphotoprism_1  |[0m Preparing to unpack .../41-libimage-exiftool-perl_12.42+dfsg-1_all.deb ...
[33mphotoprism_1  |[0m Unpacking libimage-exiftool-perl (12.42+dfsg-1) over (12.41+dfsg-1) ...
[33mphotoprism_1  |[0m Preparing to unpack .../42-libk5crypto3_1.19.2-2+b2_amd64.deb ...
[33mphotoprism_1  |[0m Unpacking libk5crypto3:amd64 (1.19.2-2+b2) over (1.19.2-2+b1) ...
[33mphotoprism_1  |[0m Preparing to unpack .../43-libllvm13_1%3a13.0.1-6_amd64.deb ...
[33mphotoprism_1  |[0m Unpacking libllvm13:amd64 (1:13.0.1-6) over (1:13.0.1-4) ...
[33mphotoprism_1  |[0m Preparing to unpack .../44-librsvg2-bin_2.54.3+dfsg-1_amd64.deb ...
[33mphotoprism_1  |[0m Unpacking librsvg2-bin (2.54.3+dfsg-1) over (2.52.5+dfsg-3+b1) ...
[33mphotoprism_1  |[0m Preparing to unpack .../45-libvulkan1_1.3.211.0-1_amd64.deb ...
[33mphotoprism_1  |[0m Unpacking libvulkan1:amd64 (1.3.211.0-1) over (1.3.204.1-2) ...
[33mphotoprism_1  |[0m Preparing to unpack .../46-mariadb-common_1%3a10.6.8-1_all.deb ...
[33mphotoprism_1  |[0m Unpacking mariadb-common (1:10.6.8-1) over (1:10.6.7-3) ...
[33mphotoprism_1  |[0m Setting up libssh-gcrypt-4:amd64 (0.9.6-2+b1) ...
[33mphotoprism_1  |[0m Setting up libsrt1.4-gnutls:amd64 (1.4.4-4+b1) ...
[33mphotoprism_1  |[0m Setting up libcaca0:amd64 (0.99.beta20-2) ...
[33mphotoprism_1  |[0m Setting up wget (1.21.3-1+b2) ...
[33mphotoprism_1  |[0m Setting up libgbm1:amd64 (22.0.5-1) ...
[33mphotoprism_1  |[0m Setting up libpulse0:amd64 (15.0+dfsg1-4+b1) ...
[33mphotoprism_1  |[0m Setting up libglib2.0-0:amd64 (2.72.2-2) ...
[33mphotoprism_1  |[0m Setting up libnghttp2-14:amd64 (1.47.0-1+b1) ...
[33mphotoprism_1  |[0m Setting up libimage-exiftool-perl (12.42+dfsg-1) ...
[33mphotoprism_1  |[0m Setting up libavutil56:amd64 (7:4.4.2-1+b2) ...
[33mphotoprism_1  |[0m Setting up libflac8:amd64 (1.3.4-2) ...
[33mphotoprism_1  |[0m Setting up libsasl2-modules-db:amd64 (2.1.28+dfsg-6) ...
[33mphotoprism_1  |[0m Setting up librsvg2-2:amd64 (2.54.3+dfsg-1) ...
[33mphotoprism_1  |[0m Setting up mariadb-common (1:10.6.8-1) ...
[33mphotoprism_1  |[0m Setting up libdvdread8:amd64 (6.1.3-1) ...
[33mphotoprism_1  |[0m Setting up libavahi-common-data:amd64 (0.8-6) ...
[33mphotoprism_1  |[0m Setting up libpostproc55:amd64 (7:4.4.2-1+b2) ...
[33mphotoprism_1  |[0m Setting up libllvm13:amd64 (1:13.0.1-6) ...
[33mphotoprism_1  |[0m Setting up libabsl20210324:amd64 (0~20210324.2-4) ...
[33mphotoprism_1  |[0m Setting up libk5crypto3:amd64 (1.19.2-2+b2) ...
[33mphotoprism_1  |[0m Setting up libsasl2-2:amd64 (2.1.28+dfsg-6) ...
[33mphotoprism_1  |[0m Setting up libvulkan1:amd64 (1.3.211.0-1) ...
[33mphotoprism_1  |[0m Setting up libjack-jackd2-0:amd64 (1.9.21~dfsg-1) ...
[33mphotoprism_1  |[0m Setting up libtheora0:amd64 (1.1.1+dfsg.1-16) ...
[33mphotoprism_1  |[0m Setting up libswscale5:amd64 (7:4.4.2-1+b2) ...
[33mphotoprism_1  |[0m Setting up libbluray2:amd64 (1:1.3.1-2) ...
[33mphotoprism_1  |[0m Setting up libsdl2-2.0-0:amd64 (2.0.22+dfsg-5) ...
[33mphotoprism_1  |[0m Setting up libgtk-3-common (3.24.34-1) ...
[33mphotoprism_1  |[0m Setting up libiec61883-0:amd64 (1.2.0-5) ...
[33mphotoprism_1  |[0m Setting up libserd-0-0:amd64 (0.30.12-1) ...
[33mphotoprism_1  |[0m Setting up librsvg2-bin (2.54.3+dfsg-1) ...
[33mphotoprism_1  |[0m Setting up gtk-update-icon-cache (3.24.34-1) ...
[33mphotoprism_1  |[0m Setting up libgtk-3-0:amd64 (3.24.34-1) ...
[33mphotoprism_1  |[0m Setting up libavahi-common3:amd64 (0.8-6) ...
[33mphotoprism_1  |[0m Setting up libswresample3:amd64 (7:4.4.2-1+b2) ...
[33mphotoprism_1  |[0m Setting up libldap-2.5-0:amd64 (2.5.12+dfsg-2) ...
[33mphotoprism_1  |[0m Setting up libsord-0-0:amd64 (0.16.10-1) ...
[33mphotoprism_1  |[0m Setting up libsratom-0-0:amd64 (0.6.10-1) ...
[33mphotoprism_1  |[0m Setting up liblilv-0-0:amd64 (0.24.14-1) ...
[33mphotoprism_1  |[0m Setting up libavahi-client3:amd64 (0.8-6) ...
[33mphotoprism_1  |[0m Setting up libavcodec-extra58:amd64 (7:4.4.2-1+b2) ...
[33mphotoprism_1  |[0m Setting up libavformat58:amd64 (7:4.4.2-1+b2) ...
[33mphotoprism_1  |[0m Setting up libcurl3-gnutls:amd64 (7.83.1-1+b1) ...
[33mphotoprism_1  |[0m Setting up libavfilter7:amd64 (7:4.4.2-1+b2) ...
[33mphotoprism_1  |[0m Setting up libavcodec-extra:amd64 (7:4.4.2-1+b2) ...
[33mphotoprism_1  |[0m Setting up libavdevice58:amd64 (7:4.4.2-1+b2) ...
[33mphotoprism_1  |[0m Setting up ffmpeg (7:4.4.2-1+b2) ...
[33mphotoprism_1  |[0m Processing triggers for debianutils (5.7-0.2) ...
[33mphotoprism_1  |[0m Processing triggers for libc-bin (2.33-7) ...
[33mphotoprism_1  |[0m GPU detected: i915
[33mphotoprism_1  |[0m Installing Intel Drivers...
[33mphotoprism_1  |[0m debconf: delaying package configuration, since apt-utils is not installed
[33mphotoprism_1  |[0m Selecting previously unselected package i965-va-driver-shaders:amd64.
[33mphotoprism_1  |[0m (Reading database ... 
(Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
(Reading database ... 90%
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 23815 files and directories currently installed.)
[33mphotoprism_1  |[0m Preparing to unpack .../00-i965-va-driver-shaders_2.4.1-1_amd64.deb ...
[33mphotoprism_1  |[0m Unpacking i965-va-driver-shaders:amd64 (2.4.1-1) ...
[33mphotoprism_1  |[0m Selecting previously unselected package libigdgmm12:amd64.
[33mphotoprism_1  |[0m Preparing to unpack .../01-libigdgmm12_22.1.3+ds1-1_amd64.deb ...
[33mphotoprism_1  |[0m Unpacking libigdgmm12:amd64 (22.1.3+ds1-1) ...
[33mphotoprism_1  |[0m Selecting previously unselected package intel-media-va-driver-non-free:amd64.
[33mphotoprism_1  |[0m Preparing to unpack .../02-intel-media-va-driver-non-free_22.4.2+ds1-1_amd64.deb ...
[33mphotoprism_1  |[0m Unpacking intel-media-va-driver-non-free:amd64 (22.4.2+ds1-1) ...
[33mphotoprism_1  |[0m Selecting previously unselected package libllvm11:amd64.
[33mphotoprism_1  |[0m Preparing to unpack .../03-libllvm11_1%3a11.1.0-6+b2_amd64.deb ...
[33mphotoprism_1  |[0m Unpacking libllvm11:amd64 (1:11.1.0-6+b2) ...
[33mphotoprism_1  |[0m Selecting previously unselected package libigc1:amd64.
[33mphotoprism_1  |[0m Preparing to unpack .../04-libigc1_1.0.8744-4_amd64.deb ...
[33mphotoprism_1  |[0m Unpacking libigc1:amd64 (1.0.8744-4) ...
[33mphotoprism_1  |[0m Selecting previously unselected package libclang-cpp11.
[33mphotoprism_1  |[0m Preparing to unpack .../05-libclang-cpp11_1%3a11.1.0-6+b2_amd64.deb ...
[33mphotoprism_1  |[0m Unpacking libclang-cpp11 (1:11.1.0-6+b2) ...
[33mphotoprism_1  |[0m Selecting previously unselected package libllvmspirvlib11:amd64.
[33mphotoprism_1  |[0m Preparing to unpack .../06-libllvmspirvlib11_11.0.0-2+b1_amd64.deb ...
[33mphotoprism_1  |[0m Unpacking libllvmspirvlib11:amd64 (11.0.0-2+b1) ...
[33mphotoprism_1  |[0m Selecting previously unselected package libopencl-clang11:amd64.
[33mphotoprism_1  |[0m Preparing to unpack .../07-libopencl-clang11_11.0.0-2+b1_amd64.deb ...
[33mphotoprism_1  |[0m Unpacking libopencl-clang11:amd64 (11.0.0-2+b1) ...
[33mphotoprism_1  |[0m Selecting previously unselected package libigdfcl1:amd64.
[33mphotoprism_1  |[0m Preparing to unpack .../08-libigdfcl1_1.0.8744-4_amd64.deb ...
[33mphotoprism_1  |[0m Unpacking libigdfcl1:amd64 (1.0.8744-4) ...
[33mphotoprism_1  |[0m Selecting previously unselected package intel-opencl-icd.
[33mphotoprism_1  |[0m Preparing to unpack .../09-intel-opencl-icd_21.32.20609-3_amd64.deb ...
[33mphotoprism_1  |[0m Unpacking intel-opencl-icd (21.32.20609-3) ...
[33mphotoprism_1  |[0m Selecting previously unselected package libllvm14:amd64.
[33mphotoprism_1  |[0m Preparing to unpack .../10-libllvm14_1%3a14.0.4-4_amd64.deb ...
[33mphotoprism_1  |[0m Unpacking libllvm14:amd64 (1:14.0.4-4) ...
[33mphotoprism_1  |[0m Selecting previously unselected package libva-wayland2:amd64.
[33mphotoprism_1  |[0m Preparing to unpack .../11-libva-wayland2_2.14.0-1_amd64.deb ...
[33mphotoprism_1  |[0m Unpacking libva-wayland2:amd64 (2.14.0-1) ...
[33mphotoprism_1  |[0m Selecting previously unselected package mesa-va-drivers:amd64.
[33mphotoprism_1  |[0m Preparing to unpack .../12-mesa-va-drivers_22.0.5-1_amd64.deb ...
[33mphotoprism_1  |[0m Unpacking mesa-va-drivers:amd64 (22.0.5-1) ...
[33mphotoprism_1  |[0m Selecting previously unselected package vainfo.
[33mphotoprism_1  |[0m Preparing to unpack .../13-vainfo_2.12.0+ds1-1_amd64.deb ...
[33mphotoprism_1  |[0m Unpacking vainfo (2.12.0+ds1-1) ...
[33mphotoprism_1  |[0m Setting up i965-va-driver-shaders:amd64 (2.4.1-1) ...
[33mphotoprism_1  |[0m Setting up libigdgmm12:amd64 (22.1.3+ds1-1) ...
[33mphotoprism_1  |[0m Setting up libllvm11:amd64 (1:11.1.0-6+b2) ...
[33mphotoprism_1  |[0m Setting up libva-wayland2:amd64 (2.14.0-1) ...
[33mphotoprism_1  |[0m Setting up libllvm14:amd64 (1:14.0.4-4) ...
[33mphotoprism_1  |[0m Setting up mesa-va-drivers:amd64 (22.0.5-1) ...
[33mphotoprism_1  |[0m Setting up libigc1:amd64 (1.0.8744-4) ...
[33mphotoprism_1  |[0m Setting up intel-media-va-driver-non-free:amd64 (22.4.2+ds1-1) ...
[33mphotoprism_1  |[0m Setting up libllvmspirvlib11:amd64 (11.0.0-2+b1) ...
[33mphotoprism_1  |[0m Setting up libclang-cpp11 (1:11.1.0-6+b2) ...
[33mphotoprism_1  |[0m Setting up vainfo (2.12.0+ds1-1) ...
[33mphotoprism_1  |[0m Setting up libopencl-clang11:amd64 (11.0.0-2+b1) ...
[33mphotoprism_1  |[0m Setting up libigdfcl1:amd64 (1.0.8744-4) ...
[33mphotoprism_1  |[0m Setting up intel-opencl-icd (21.32.20609-3) ...
[33mphotoprism_1  |[0m Processing triggers for libc-bin (2.33-7) ...
[33mphotoprism_1  |[0m Done.
[33mphotoprism_1  |[0m make: Leaving directory '/scripts'
[33mphotoprism_1  |[0m init: tensorflow
[33mphotoprism_1  |[0m make: Entering directory '/scripts'
[33mphotoprism_1  |[0m /scripts/install-tensorflow.sh auto
[33mphotoprism_1  |[0m Detecting driver...
[33mphotoprism_1  |[0m Installing TensorFlow 1.15.2 for AMD64 in "/usr"...
[33mphotoprism_1  |[0m Downloading amd64 libs from "https://dl.photoprism.app/tensorflow/amd64/libtensorflow-amd64-1.15.2.tar.gz". Please wait.
[33mphotoprism_1  |[0m Extracting "/tmp/amd64/libtensorflow-amd64-1.15.2.tar.gz" to "/usr".
[33mphotoprism_1  |[0m Running "ldconfig".
[33mphotoprism_1  |[0m Done.
[33mphotoprism_1  |[0m make: Leaving directory '/scripts'
[33mphotoprism_1  |[0m Problems? Our Troubleshooting Checklists help you quickly diagnose and solve them:
[33mphotoprism_1  |[0m https://docs.photoprism.app/getting-started/troubleshooting/
[33mphotoprism_1  |[0m file umask....: "0002" (u=rwx,g=rwx,o=rx)
[33mphotoprism_1  |[0m home directory: /photoprism
[33mphotoprism_1  |[0m assets path...: /opt/photoprism/assets
[33mphotoprism_1  |[0m storage path..: /photoprism/storage
[33mphotoprism_1  |[0m config path...: default
[33mphotoprism_1  |[0m cache path....: default
[33mphotoprism_1  |[0m backup path...: /photoprism/storage/backups
[33mphotoprism_1  |[0m import path...: /photoprism/import
[33mphotoprism_1  |[0m originals path: /photoprism/originals
[33mphotoprism_1  |[0m running as uid 0
[33mphotoprism_1  |[0m /opt/photoprism/bin/photoprism start
[33mphotoprism_1  |[0m time="2022-06-16T19:45:13Z" level=info msg="http: enabling gzip compression"
[33mphotoprism_1  |[0m time="2022-06-16T19:45:13Z" level=info msg="webdav: server disabled"
[33mphotoprism_1  |[0m time="2022-06-16T19:45:13Z" level=info msg="http: starting web server at 0.0.0.0:2342"
[33mphotoprism_1  |[0m time="2022-06-16T19:48:09Z" level=info msg="convert: ffmpeg encoder h264_qsv selected"
[33mphotoprism_1  |[0m time="2022-06-16T19:48:09Z" level=info msg="h264_qsv: transcoding 2022/05/Videos/2022-05-15 18.26.01.MOV to avc"
[33mphotoprism_1  |[0m time="2022-06-16T19:48:09Z" level=warning msg="h264_qsv: failed transcoding 2022/05/Videos/2022-05-15 18.26.01.MOV [538.85826ms]"
[33mphotoprism_1  |[0m time="2022-06-16T19:48:09Z" level=info msg="libx264: transcoding 2022/05/Videos/2022-05-15 18.26.01.MOV to avc"

Am I doing everything correctly? It looks like I am running it as root. Looking forward to your support.

@lastzero lastzero added the video Video Formats, Transcoding, FFmpeg, Streaming & Co label Jul 7, 2022
@lastzero lastzero added plus-feature Available to PhotoPrism+ Members and removed member-feature Available to members and contributors labels Feb 1, 2023
@graciousgrey graciousgrey removed the plus-feature Available to PhotoPrism+ Members label Jun 7, 2023
@lastzero lastzero moved this to Released 🌈 in Roadmap 🚀✨ Jun 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Enhancement or improvement of an existing feature released Available in the stable release video Video Formats, Transcoding, FFmpeg, Streaming & Co
Projects
Status: Release 🌈
Development

No branches or pull requests

6 participants