Both called them "Captions" so I suggest to use this term instead of subtitle?
Both treat that as separated requests, so we need to add caption after uploading the video (like thumbnail or playlist on youtube for example)
As we work on newly updated video, no need to treat the case where caption already exists, no need to list existent captions for the video.
We may easily detect caption file the same way we do for NFO and thumbnail, based on the name of the video, however it could be interesting to allow the use of more than one caption files.
Perhaps something indexed with a langage choice? (eg, use videoname_en.sub, videoname_fr.sub, etc)
And as an option in prismedia, you may pass the different langages you need to upload, eg --caption="en,fr" like tags. Perhaps inherited from langage option?
Another possibility could be a multi-option, eg an option that could be used multiple time so the user could pass --caption videoname_en.sub --caption videoname_fr.sub
Adding the strict option --with-caption is also necessary.
Good idea!
Both peertube and youtube seems to have support for this in their API:
- peertube: https://docs.joinpeertube.org/api-rest-reference.html#tag/Video-Captions/paths/~1videos~1{id}~1captions~1{captionLanguage}/put
- youtube: https://developers.google.com/youtube/v3/docs/captions
Both called them "Captions" so I suggest to use this term instead of subtitle?
Both treat that as separated requests, so we need to add caption after uploading the video (like thumbnail or playlist on youtube for example)
As we work on newly updated video, no need to treat the case where caption already exists, no need to list existent captions for the video.
We may easily detect caption file the same way we do for NFO and thumbnail, based on the name of the video, however it could be interesting to allow the use of more than one caption files.
Perhaps something indexed with a langage choice? (eg, use `videoname_en.sub`, `videoname_fr.sub`, etc)
And as an option in prismedia, you may pass the different langages you need to upload, eg `--caption="en,fr"` like tags. Perhaps inherited from langage option?
Another possibility could be a multi-option, eg an option that could be used multiple time so the user could pass `--caption videoname_en.sub --caption videoname_fr.sub`
Adding the strict option `--with-caption` is also necessary.
Perhaps something indexed with a langage choice? (eg, use videoname_en.sub, videoname_fr.sub, etc)
I was thinking to that yes, maybe videoname.<language>.<sub/str/…> with a dot and the language in full form. I think the dot is more or less common, the long language name let us use the same dictionary as the languages for the language parameter.
Adding the strict option --with-caption is also necessary.
I am unsure about this: maybe --with-caption=<language list>?
Wow thanks for the quick search.
> Perhaps something indexed with a langage choice? (eg, use videoname_en.sub, videoname_fr.sub, etc)
I was thinking to that yes, maybe `videoname.<language>.<sub/str/…>` with a dot and the language in full form. I think the dot is more or less common, the long language name let us use the same dictionary as the languages for the `language` parameter.
> Adding the strict option --with-caption is also necessary.
I am unsure about this: maybe `--with-caption=<language list>`?
I was thinking that some users could need that. Look for them automatically like thumbnails & NFO.
Add a way to upload subtitles filesto Add an option to upload subtitles/Captions files 2 years agoGood idea!
Both peertube and youtube seems to have support for this in their API:
peertube: https://docs.joinpeertube.org/api-rest-reference.html#tag/Video-Captions/paths/~1videos~1{id}~1captions~1{captionLanguage}/put
youtube: https://developers.google.com/youtube/v3/docs/captions
Both called them "Captions" so I suggest to use this term instead of subtitle?
Both treat that as separated requests, so we need to add caption after uploading the video (like thumbnail or playlist on youtube for example)
As we work on newly updated video, no need to treat the case where caption already exists, no need to list existent captions for the video.
We may easily detect caption file the same way we do for NFO and thumbnail, based on the name of the video, however it could be interesting to allow the use of more than one caption files.
Perhaps something indexed with a langage choice? (eg, use
videoname_en.sub
,videoname_fr.sub
, etc)And as an option in prismedia, you may pass the different langages you need to upload, eg
--caption="en,fr"
like tags. Perhaps inherited from langage option?Another possibility could be a multi-option, eg an option that could be used multiple time so the user could pass
--caption videoname_en.sub --caption videoname_fr.sub
Adding the strict option
--with-caption
is also necessary.Wow thanks for the quick search.
I was thinking to that yes, maybe
videoname.<language>.<sub/str/…>
with a dot and the language in full form. I think the dot is more or less common, the long language name let us use the same dictionary as the languages for thelanguage
parameter.I am unsure about this: maybe
--with-caption=<language list>
?