https://bugs.kde.org/show_bug.cgi?id=466232

            Bug ID: 466232
           Summary: Subtitles are drawn from wrong source when rendering
                    projects in batch mode
    Classification: Applications
           Product: kdenlive
           Version: 22.12.2
          Platform: Ubuntu
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: Video Display & Export
          Assignee: j...@kdenlive.org
          Reporter: digita...@gmail.com
  Target Milestone: ---

SUMMARY

The SRT subtitling feature renders correct subtitles in the editor when viewing
the project. However, if one uses the "generate script" feature in the
rendering panel to create rendering jobs, and then attempts to queue these for
later batch processing, they do not retrieve the subtitles from the correct
source.

The rendering process should pull them from the appropriate SRT sidecar file
for each project to be rendered.  Instead, what happens, is that the SRT file
is pulled from the CURRENTLY-OPEN Kdenlive project in the editor. 

STEPS TO REPRODUCE

1. Create a video project in Kdenlive.
2. Create subtitles.
3. Open rendering panel
4. Generate MLT script to render the project
5. Save
6. Repeat steps 1-5 for a 2nd project
7. Queue the two scripts for rendering and render (note that the 2nd project is
open in the editor at this point)

OBSERVED RESULT
Both rendered videos will use the subtitles from the 2ND project (so the 1ST
project's subtitles will be wrong).

Alternatively, if a new/empty Kdenlive project session is used to queue the
batch rendering jobs, the files will have NO subtitles. If an unrelated project
with SRT subtitles is open in the editor used to queue the jobs, that project's
subtitles will appear in the rendered output. Etc.

EXPECTED RESULT
Each project should be rendered with the subtitles belonging to that project
(which can be found in the .kdenlive.srt sidecar file stored beside each of
them on the filesystem).

SOFTWARE/OS VERSIONS
Ubuntu Studio 20.04.
Originally discovered in Kdenlive 20.12. 
Same behavior verified in 22.12.2 AppImage package.

ADDITIONAL INFORMATION
Examining the actual MLT scripts with an editor, the only SRT file reference I
could find is to a temporary file (i.e. /tmp/<hash>.srt ). There's no reference
to the correct sidecar file, although it is present beside the Kdenlive project
file.

I feel like this violates an encapsulation principle, in that I expect batched
MLT jobs to be self-sufficient, not relying on information from the
currently-open Kdenlive project. This seems to be true for other features, and
the batch rendering feature seems to be useless without this expectation.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to