Open stepman0 opened 2 months ago
Thanks for this hint! The current implementation does not allow to define the list of supported Containers/Extensions and VideoCodecs based on the target photo server version. I'm currently modifiying this, so that supported extensions and VideoCodecs will be configurable in the code (PSPhotoServer.lua) per photo server version. That way, we don't need any new config flag in the UI and we can keep it backward compatible for Photo Station users (if there are any left at all). For Photo Station it will be as before:
'3gp''avi''m4v''mp4''mpg''mov''mts'
'h263''h264''hevc''mpeg1vide''mpeg4''mjpeg''rawvideo'
H.265 Videos are reported as 'hevc', at least my Android videos using ffmpeg 4.x. Could you please verify this by simply exporting some videos with Photo StatLr and check what is reported in the logfile as "vformat" within the vinfo object, e.g.:
16:57:05, TRACE: "vformat":"hevc"
I just figured out that Synology Photos supports both .MOV (with H265 from iPhone) and .mp4 with h265 codec. So the conversion on upload is not necessary anymore.
Having a look into the code, it seems that either this code in
PSUploadTask.lua
should be adopted (starting in line 252):If backward compatiblity is wanted, either an additional option for
orgVideoForceConv
(the dropdown configuration box) saying no conversion or an explicit version check is possible (But I have no details on which version supports what ;-))For the first way, I can try to create a pull request - but what is your favorite?