What happened?
Transcoding must be enabled for additional file type extensions to be uploaded through API. Front end will allow the upload, API will reject it completely.
What do you expect to happen instead?
Additional extensions shouldn't be dependent on transcoding being enabled. It should be up to the owner to determine if they want to risk not having all their video play properly.
Steps to reproduce:
Set Transcoding to False
Set Additional Extensions to True
Verify that you can only upload the default extensions through API
Additional information
Additional extensions shouldn't be dependent on transcoding being enabled. It should be up to the owner to determine if they want to risk not having all their video play properly.
I strongly disagree:
What about something through the API that only the admin can use? It adds the video and puts it in the admins account as private, therefore no one can see it. If an admin is going to complain that video x does not work, but be able to use the API and configure the system to turn off transcoding and allow additional extensions, then they really shouldn't be running an instance.
Otherwise I came with up a solution but my implementation is currently very hacky and when there are updates, it will be very messy to re-apply.
Basically you are suggesting to make the video upload more complicated, and didn't provide any explanation why.
Basically you are suggesting to make the video upload more complicated, and didn't provide any explanation why.
This would not make it more complicated. It would be an api that is available only to super users. I could even build it but I just don't want to spend my time on something that will be ultimately rejected.
My reason: I have an instance of Peertube running on a local network. My audience is very small and all devices have been shown to work with the original file formats thus I don't need transcoding. Since transcoding is off, I cannot upload files with extensions such as .mkv.
For your use case you can use this script
Most helpful comment
I strongly disagree: