This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Subtitles in v. 0.8

Tags: None
(comma "," separated)
Smarken
Registered Member
Posts
6
Karma
0

Subtitles in v. 0.8

Mon Jun 06, 2011 8:28 am
Is there an easy way to include a subtitle file from fx KDE Subtitle Composer, into a sort of videostream in kdenlive?
I got these clips with a lot of speech, and I'm making a file with subtitle composer, but have no idea how to get it into kdenlive.

When viewing the clip in vlc it works ofc fine with a srt file and it show correctly in timeline. (fine if it's only for viewing in vlc)
-but if you make a file for making a DVD or for youtube you need to import it into kdenlive as a sub-stream or so ...
How do one do that ?
j-b-m
Registered Member
Posts
804
Karma
1

Re: Subtitles in

Mon Jun 06, 2011 8:37 am
This feature is not implemented in Kdenlive. The DVD wizard is really basic. You should use a DVD specific application like DVDStyler which seems to allow subtitle files.
Smarken
Registered Member
Posts
6
Karma
0

Re: Subtitles in v. 0.8

Mon Jun 06, 2011 10:21 am
Well .. it should be ^^

I would be happy to make a lot of tutorials about a lot of things, but i would prefer to make them in danish (first) and then sub it in common language (english).
Linux is generally supported in peoples native language, and so should the tutorials, and subed for everyone else..

If the subtitle feature was implemented, it would boost both kedenlive AND Linux by helping all those people who would be able to make tutorials (in their native language).
You could say that people should just make the in english from start, but even some tutorials made in "english" SHOULD be subbed ;-)

so .. guys ... PLEASE (begging on my knees ;-) )

btw .. don't know if it would be easy just for kdenlive to hook into an existing appl. like the subtitle composer and fx placing as a tab besides the preview/clipmonitor..
that would be awesome :P
StefaanHimpe
Registered Member
Posts
33
Karma
0

Re: Subtitles in v. 0.8

Fri Jun 10, 2011 9:08 pm
Sorry the template file generates a spurious empty line at the top of the kdenlive file, leading to an error when trying to load the project in kdenlive. Here's the corrected version.

Feel free to comment.
Image
StefaanHimpe
Registered Member
Posts
33
Karma
0

Re: Subtitles in v. 0.8

Sat Jun 11, 2011 7:00 am
In the mean time, if you are not faint-of-heart, you could experiment with a subtitle generation script I created.
It's really a proof-of-concept-scratch-my-own-itch type of script, i.e. not polished at all;
it-works-for-me, no guarantees that it will work-for-you-too.
I assume no responsibility if anything gets injured or damaged by the use of this information.
BACKUP YOUR WORK BEFORE YOU START TO EXPERIMENT

In this context, not faint-of-heart means:
------------------------------------------
1. you are prepared to install some software: imagemagick, python 2.6 or python 2.7 (not: python 3.x)
2. you are prepared to install some additional python libraries: mako and pysrt
(e.g. using easy_install, which will have to be installed too)
3. you are prepared to edit the srt2mlt script to adapt the configuration information to your needs
(this entails setting some information from your project's profile, like framerate, width and height of the video;
all configuration happens in the top lines of the script; not everything that is supported by kdenlive has been exposed
to the script)
4. you are not afraid of experimenting with imagemagick's command line parameters to tweak the subtitle
look and feel to your needs (although the default settings will get you started)

steps 1-2 are a one-time investment;
steps 3-4 depend on your actual project

What can the script give you?
-----------------------------
* It takes an .srt file as input (subrip file).
* It automatically produces from that file
1. images, one for each subtitle
2. a kdenlive project with all subtitle images inserted in the timeline on the times as indicated in the subrip file
3. each subtitle image has a configurable background, and a chromakey filter applied to remove that background color

How can you use the result?
---------------------------
* The script generates images and a kdenlive file
(in the output folder that should have been created by extracting the .tar.bz2 file)
* Load the auto-generated kdenlive file as a clip in video track 0 of your own project, and composite it over your videos in tracks 1,2,...

How can I run the script?
-------------------------
* You will need to extract the .tar.bz2 file attached to this post in a folder of your choice.
* The forum doesn't allow to upload .tar.bz2 files, so I've renamed it to .pdf. Don't try to
open the file with a .pdf reader; first rename it to .tar.bz2 and then extract it using
"tar xvjf srt2mlt.tar.bz2" on a terminal
* Make sure you have installed the dependencies, as indicated in the "not faint-of-heart" section
* Edit the srt2mlt.py file, to change the configuration information so that it fits your project
* on the command line, run
python srt2mlt.py
* Note that the generated kdenlive project contains absolute file paths (at first sight, this seems like an unfortunate design decision of mlt/kdenlive?), meaning that you cannot copy the generated files to another location before using them in kdenlive, unless you are prepared to let kdenlive search for the missing clips (just try and you'll see what I mean).
* Note also that a proper solution to subtitling probably consists of making a new mlt producer that can produce subtitles,
but without studying the mlt code base, this script was far easier to make.

Good luck. I hope this can help you a bit.
If not, it was still fun to work on :)

leoplaw
Registered Member
Posts
29
Karma
0
OS

Re: Subtitles in v. 0.8

Sat Mar 03, 2012 11:47 pm
There are currently two entries in Kdenlive Mantis for proper subtitling features.

http://www.kdenlive.org/mantis/view.php?id=1887

http://www.kdenlive.org/mantis/view.php?id=400

With one person even going so far to come up with mock ups.

http://www.project-insanity.org/2012/02/mockups-for-kdenlive-subtitle-editor/comment-page-1/#comment-972

Can we get some more support on these entries so that this feature appears in a version of Kdenlive sooner rather than later. Manually creating, and positioning titles for an entire video creates a lot of extra work.
teej_drupal
Registered Member
Posts
1
Karma
0

Re: Subtitles in v. 0.8

Thu Jan 17, 2013 2:41 am
Deleted.

Problem was missing dependency.


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], q.ignora, watchstar