Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

transcripts/subtitles #56

Open
markvdb opened this issue Dec 3, 2016 · 15 comments
Open

transcripts/subtitles #56

markvdb opened this issue Dec 3, 2016 · 15 comments

Comments

@markvdb
Copy link
Member

markvdb commented Dec 3, 2016

For a future edition...

Let's see if we can encourage people to easily build transcripts/subtitles.

See https://wiki.c3subtitles.de for inspiration.

@yoe
Copy link
Member

yoe commented Jan 23, 2017

debconf has something for this too, and it's organized entirely outside of the whole record/review workflow:

https://wiki.debconf.org/wiki/Videoteam/Subtitles

I can probably contact the guy who set that up for debconf and ask if he's interested in doing it for FOSDEM, too. If so, he might be able to do that for 2017 still.

@markvdb
Copy link
Member Author

markvdb commented Mar 7, 2017

Check out http://amara.org/en/community . Source available at https://github.com/pculture/unisubs .

@markvdb
Copy link
Member Author

markvdb commented Dec 28, 2017

Emanuil will recruit remote volunteers for this.

@markvdb
Copy link
Member Author

markvdb commented Dec 28, 2017

Here's how Include an srt subtitle stream in the mp4. Requires a player capable of playing the subtitles.

ffmpeg -i infile.mp4 -i infile.srt -c copy -c:s mov_text outfile.mp4

@markvdb
Copy link
Member Author

markvdb commented Dec 28, 2017

Or burn it into the video:

Use the libass library (make sure your ffmpeg install has the library in the configuration --enable-libass).

First convert the subtitles to .ass format:

ffmpeg -i subtitles.srt subtitles.ass

Then add them using a video filter (via libass):

ffmpeg -i subtitles.srt subtitles.ass
ffmpeg -i mymovie.mp4 -vf ass=subtitles.ass mysubtitledmovie.mp4

@markvdb
Copy link
Member Author

markvdb commented Dec 28, 2017

https://github.com/FOSDEM/video/wiki/Subtitles-and-mp4-metadata collects the above info and more in a somewhat structured way.

@yoe
Copy link
Member

yoe commented Dec 30, 2017

I should add that I have vague plans of adding support for burning subtitles into videos into SReview, too. Downside of doing that would be that the SReview infra would need to be kept alive for as long as subtitles are being written...

@markvdb
Copy link
Member Author

markvdb commented Dec 30, 2017

I have investigated subtitles rather thoroughly. We definitely want something else than burnt in subtitles (at least for FOSDEM, but I guess also for other potential uses).

The state of the art on subtitles is:

  • separate webvtt subtitle files for web based use (html5 standard, fairly well supported on all browser platforms)
  • embedded tx3g subtitles for offline playback (fairly well supported across most decenf offline players)

What we need from sreview in order to make subtitles succeed imho is a few things:

  • embed penta talk metadata in the mp4 metadata. See https://github.com/FOSDEM/video/wiki/Subtitles-and-mp4-metadata for a trivial way to do that. We'd need at least the penta id, but more would be useful. I'll come up with more details after a closer look at amara, and I'll file an sreview issue. You might already want to start playing with this though, because the advantages of metadata embedding go far beyond just subtitling!
  • expose ready-to-subtitle mp4 urls (json url+ timestamp?). Ready-to-subtitle in our case means they have their definitive spot on video.fosdem.org. Video.fosdem.org needs to stay simple, clean content delivery only.
  • (probably) submit the finished video urls directly to amara.org.

@yoe
Copy link
Member

yoe commented Dec 30, 2017 via email

@markvdb
Copy link
Member Author

markvdb commented Dec 30, 2017 via email

@yoe
Copy link
Member

yoe commented Dec 30, 2017 via email

@Ryuno-Ki
Copy link

https://github.com/FOSDEM/video/wiki/Subtitles-and-mp4-metadata collects the above info and more in a somewhat structured way.

Can we have an input field that allows for uploading VTT or SRT files?
(I wrote mine manually).
Those could be then used on the video player on the talk pages if present.

You would (in the first iteration) defer the creation of subtitles from the playback.
Yes, most speaker will likely not provide subtitles (and there are plenty of talks lacking them retrograde).
But it's a good first step.

The JavaScript snippet used to show subtitles is already in the wiki.

@yoe
Copy link
Member

yoe commented Feb 11, 2022 via email

@Ryuno-Ki
Copy link

Hey there

There is currently no functionality in SReview (the system we use for managing video) to handle subtitles, at all. It's on my low-priority TODO list to handle this somehow;

Oh, okay. At least it is on your mind.

if you are interested in writing the necessary patch, that would be most welcome! the code for SReview is at https://github.com/yoe/SReview and at https://salsa.debian.org/debconf-video-team/sreview.

I took a look at the code, but don't speak Perl. Sorry.

In my ideal world, subtitles would be stored as files on the SReview system somewhere, and there would be an extra state where the subtitles would be muxed into the output files as a proper subtitle stream with the correct language tag set, etc (if the container format supports it). In the mean time, I think the ideal way forward is for you to upload the subtitles into pentabarf as an attachment; you go to the "Files" tab, click on the "Add attachment" button, and select "Other" as the "attachment type". They will then be copied to the website.

Doing that already.

@jonatron
Copy link

I have done automatic subtitles with whisper here:
https://github.com/jonatron/fosdem2024whisper / https://jonatron.github.io/fosdem2024whisper/
It would be good to have them on the official site.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants