nginx-vod-module
nginx-vod-module copied to clipboard
Is it possible to ignore errors on sources?
We have usually a single video file and many subtitle files as input. We are using remote mode and giving these source files by using multi URL structure.
Sometimes, a subtitle file has errors and VOD plugin returns an error (example: failed to identify the file format
, or it may not connect to the origin server on remote mode) and does not generate playlist successfully.
Is it possible to have an option to skip sources that gave an error and continue generating the playlist?
@erankor sorry for bothering but do you have an idea about this issue?
This is not supported, the module is strict about errors. I guess it makes sense to have an option to ignore parsing errors, I will add it to the todo. It will require going over all the different places in the code that can get such an error and add a different flow for this. I don't think that Ignoring upstream errors (e.g. connect error) is a good idea because such errors may be temporary. If there is caching in front of nginx-vod-module (as is usually the case) it means that some connectivity glitch can remove one of the streams for a long time. Specifically regarding subtitle errors - since SRT is a loosely defined format (there isn't really a spec for it) it is possible that some seemingly valid SRT will fail. If you have such files that you believe should work, please send them.
Need this option to skip missing or invalid captions hardly. Make it optional, so can enable it for our own risk.