Support for subtitle track
Closed, ResolvedPublic

Description

With the recent inclusion of libavfilter support, we can make use of the ass / subtitles filters of FFMpeg. Sample:

melt video.mpg -attach avfilter.ass av.filename="subtitlefile.ass"

Current limitations:

  • filter crashes if subtitle file not found
  • seems to always use the project's frame as timecode reference, we need a way to add an offset

Could be used as an internal filter added to the MLT Tractor (to be tested), with a new subtitle track added to the timeline. We could then put markers for start/end in this track with editable text

mardelle created this task.Jun 20 2016, 6:18 AM
jessed added a subscriber: jessed.Sep 19 2016, 5:39 PM

This would be cool. :)

jzarecta added a subscriber: jzarecta.EditedMar 25 2019, 3:16 AM

I think that editing modifying the MLT is unnecesary as the MLT already have all the functionality to process text, only need something to put together those elements. Like generating a Video Track, parsing the SRT/ASS file and just generating a text clip per parsed item and putting it on the timeline using the timestamps of the file.

Here is an example of the SRT file:

4
00:00:18,330 --> 00:00:22,460
A dream of the unbelievable day
that brought us together.

5
00:00:26,600 --> 00:00:27,920
Barbecue beef combo.

6
00:00:28,320 --> 00:00:29,620
Without beef.

So parsing the file will generate the necesary Text Clips to the Project Bin (enclosed in a folder), and into the video track. Taking the timestamps as limiters on the track.

jlskuz closed this task as Resolved.May 28 2023, 7:28 PM
jlskuz claimed this task.
jlskuz added a subscriber: jlskuz.

A subtitle track is implemented since several releases now. For discussions on further improvements of the subtitle feater see here: https://invent.kde.org/multimedia/kdenlive/-/issues/?state=opened&label_name%5B%5D=Subtitle