Saving PNG - norihiro/obs-text-pthread GitHub Wiki

Saving PNG files

Introduction

This text source as a feature to save each text image as a PNG file. At the same time, timestamp information is also written into a text file. During live steaming, the text source might get a lot of text updated by your script. At post production, this file is helpful to modify some text, change the timing, or overlay the text on other edited scenes.

A simple script to generate MLT file is provided. MLT file can be read by Kdenlive, which is an open source video editor.

Usage

This usage describes steps to setup the plugin and import to Kdenlive.

  1. Enable Save as PNG on a property window and set Directory to save. It is recommended to specify an empty directory because.
  2. After your live streaming, close OBS Studio.
  3. On Terminal, go to the directory and run these commands.
    curl -kLO 'https://github.com/norihiro/obs-text-pthread/raw/master/tools/list2mlt.py'
    chmod +x list2mlt.py
    ./list2mlt.py list*.dat > text-pthread.mlt
    
    Note that replace list*.dat for the file that you want to convert.
  4. From Kdenlive, you can
    • open text-pthread.mlt as a project to edit, or
    • import text-pthread.mlt as a clip to overlay other scenes.

Limitations

Currently, list2mlt.py has hard-coded size as 1920x1080 and text is placed at center-bottom. You might need to change some code in list2mlt.py to move or change alignment.