DOKK / manpages / debian 12 / sreview-encoder / sreview-transcode.1p.en
SREVIEW-TRANSCODE(1p) User Contributed Perl Documentation SREVIEW-TRANSCODE(1p)

sreview-transcode - transcode the output of sreview-cut into production-quality media files

sreview-transcode TALKID

"sreview-transcode" performs the following actions:

  • Look up the talk with id TALKID in the database.
  • Create the preroll slide from the preroll template, after applying template changes to it
  • If a postroll template is defined, create the postroll slide using the same process as for the preroll slide. If no postroll template is defined, use the statically configured preroll
  • If an apology template is defined and the current talk has an apology note that is not zero length and not NULL, create the apology slide for this talk
  • Convert the preroll slide, postroll slide, and (if any) apology slide to a 5-second video with the same properties as the main raw video
  • For each of the configured profiles, do a two-pass transcode of the concatenated version of preroll, apology (if available), main, and postroll videos to a production video

"sreview-transcode" considers the following configuration values:

The DBI string used to connect to the database
The directory in which to find the output of "sreview-cut"
The top-level directory in which to store production output data
Array of fields on which to base subdirectories to be created under "outputdir". The fields can be one or more of:
The ID number of the event that this talk was recorded at
The name of the event that this talk was recorded at
The "outputdir" value in row of the events field of the event that this talk was recorded at.
The name of the room in which this talk was recorded
The date on which this talk occurred
The year in which this talk occurred
The location where any temporary files are stored. Defaults to "/tmp", but can be overridden if necessary. These temporary files are removed when "sreview-transcode" finishes.
The name of an SVG template to be used for the preroll (i.e., opening credits). Required.
The name of an SVG template to be used for the postroll (i.e., closing credits). Either this option or "postroll" is required.
The name of a PNG file to be used for the postroll (i.e., closing credits). Either this option or "postroll_template" is required.
The name of an SVG template to be used for the apology slide (shown right after the opening credits if an apology was entered). Only required if at least one talk has an apology entered.
A profile that generates videos which can be concatenated with input videos without re-transcoding anything. If not specified, uses the input video as a "profile".
An array of profile names to be produced (see above for the details). Defaults to "webm".

The transformation performed over the SVG files is a simple "sed"-like replacement of input tags in the template file. All data is XML-escaped first, however.

The following tags can be set inside the SVG file:

@SPEAKERS@
The names of the speakers, in this format:

Firstname Lastname, Firstname Lastname and Firstname Lastname
@ROOM@
The name of the room where the talk was held.
@TITLE@
The title of the talk.
@SUBTITLE@
The subtitle of the talk.
@DATE@
The date on which the talk was held.
@APOLOGY@
The apology note defined for this talk.

If one of these fields has no data for the given talk, then the tag will be replaced by the empty string instead.

In addition, as of version 0.7, the template is processed by Mojo::Template with the SReview::Talk object for the current talk assigned to the $talk variable, which allows for far more flexibility. See the documentation of Mojo::Template for more details on that templating engine, and the documentation of SReview::Talk for the available values from that object.

(As an aside, the SVG transformations are actually implemented through SReview::Template::SVG. See the documentation for that module for details)

sreview-cut, sreview-previews, sreview-skip, sreview-config, Media::Convert::Asset::ProfileFactory, SReview::Talk, Mojo::Template.

2022-12-14 perl v5.36.0