Closed zackpollard closed 1 year ago
Could it be possible to check whether direct streaming is possible, before transcoding? I know Edge supports HEVC for example (if the user paid), so transcoding would be unnecessary in that case. Also, a lot of modern mobile devices support HEVC as well. So check the compatibility before transcoding to save processing power.
I don't think we are planning to do live transcoding, we're going to be converting files at the point of upload and storing them on disk for simple playback. This will be configurable quality and format but default will likely be h264 in an mp4 container.
Having the option to downscale 4k videos for playback in the clients would also be nice, not all my devices are entirely happy about playing 4k :D
I agree. I have a video that wont play in the web-ui, and also really doesn't need high res. I would be happy with live transcoding as an option, or a default setting for stored transcoded videos.
thanks :D
It would also help to avoid #958
Going on the assumption that there would not be live transcoding, it would be nice to have the following options:
H264 is obviously great for wide device support for playback, but I'd personally support keeping the original version as @EnochPrime commented. I'd personally be miffed at losing my original quality backup.
Especially since H264 caps out at 2048x2048 8 bit iirc. Either storing the original as-is or converting to a format like H265 (to preserve 10 bit color, high resolution, and high framerates) would be ideal.
I'd personally support keeping the original version
The original version is kept, I was mistaken on the process when I made that comment. The transcoded files are in addition to the original.
Isn't this just an additional preview file?
I've added a bunch of already optimal webm files, which when transcoded (with default settings) grew to 10 times the size of the original file.
I think there should either be an option to:
At least there should be an option to serve the original file by default. I feel like that's already there but I haven't found it yet.
I've added a bunch of already optimal webm files
I am in agreement with @printfuck in this respect. I have a bunch of 6K and 8K 12bit videos which are extremely highly compressed timelapses already optimised using ffmpeg. Converting to h264 does bad things to them and introduces pretty wild amounts of dithering.
We should make quality (CRF, output resolution, encoding speed, etc) and potentially all ffmpeg settings customisable by the admin of the server
At this point, you might as well add a codec option, or multi codec support. Everything I have supports h265 and does so with hardware acceleration. I'd much rather save the bandwidth with more modern compression than worry about support for a codec with wide adoption
I believe with the exception of hardware support everything in this issue has been implemented. Hardware support probably deserves its own issue anyways, so I'm going to go ahead and close this as completed. Happy to reopen if there are more pending enhancements though.
Is there an issue to track hardware transcoding support?
Feature detail
Video transcoding has now been added for MOV files, however this should be extended. Making a note here as we discussed so this can be picked up and worked on:
I believe this is everything we discussed around this, will update if I remember more.
Platform
Server