Specifying video transcoding resolution

Hello PhotoStructure Community,

I’ve been diving into the documentation and have come across the transcodeBitrateQVGA variables related to video transcoding. However, I’m interested in specifying the actual resolution for transcoding videos, with the goal of significantly reducing the size of the transcoded video files. I’ve installed PhotoStructure using Docker.

Is there any way to indicate specific resolution parameters for video transcoding within PhotoStructure? Are there any particular ffmpeg parameters that can be set to achieve this?

No, but that’s a great idea, and super easy to add!

The next build (v2023.8-prealpha.1) will have a new transcodeMaxResolution setting (also settable via the PS_TRANSCODE_MAX_RESOLUTION environment variable).

Here’s the documentation:

# -----------------------------------------------------
# PS_TRANSCODE_MAX_RESOLUTION or transcodeMaxResolution
# -----------------------------------------------------
#
# If a video that needs transcoding exceeds this total pixel resolution, the
# transcoded version will be downsampled to be at most this resolution,
# preserving the original aspect ratio.
#
# Videos that are smaller than this resolution will not be downsampled.
#
# This setting does not work with VLC (use ffmpeg instead--it's faster!).
#
# Use 2073600 for "Full HD", or 1080P.
#
# Use 921600 for 720P (1280 × 720).
#
# Note that in any case, videos that don't need transcoding will not be
# downsampled.
#
# Set this to 0 to disable this setting.
1 Like