#61 Add an option to upload subtitles/Captions files

Open
opened 3 years ago by Zykino · 2 comments
Zykino commented 3 years ago

I was thinking that some users could need that. Look for them automatically like thumbnails & NFO.

I was thinking that some users could need that. Look for them automatically like thumbnails & NFO.
LecygneNoir changed title from Add a way to upload subtitles files to Add an option to upload subtitles/Captions files 3 years ago
Poster
Owner

Good idea!

Both peertube and youtube seems to have support for this in their API:

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.
LecygneNoir added the
enhancement
label 3 years ago
Zykino commented 3 years ago
Poster

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>?

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>`?
Sign in to join this conversation.
No Milestone
No Assignees
2 Participants
Notifications
Due Date

No due date set.

Dependencies

This issue currently doesn't have any dependencies.

Loading…
There is no content yet.