和顺 / 影核 返回所属 Agent
YH-05.02

视听提示

原能力

标注音乐、环境声、对白和静默的位置,说明它们怎样支持画面节奏。(细化版 p.12–13)

首选项目

OpenTimelineIO(Apache-2.0,见附加说明)。 OpenTimelineIO

匹配范围

Audio track、Marker 与流检查支持声画时点标注。

源码

OpenTimelineIO · class OTIO_API_TYPE Marker

src/opentimelineio/marker.h · 17–30 行。 在 GitHub 查看源码 · 许可证与声明

源码片段
class OTIO_API_TYPE Marker : public SerializableObjectWithMetadata
{
public:

    /// @brief This struct provides the Marker schema.
    struct Schema
    {
        static auto constexpr name   = "Marker";
        static int constexpr version = 3;
    };

    using Parent = SerializableObjectWithMetadata;

    /// @brief Create a new marker.
  • // SPDX-License-Identifier: Apache-2.0
  • // Copyright Contributors to the OpenTimelineIO project

OpenTimelineIO · class OTIO_API_TYPE Track

src/opentimelineio/track.h · 14–27 行。 在 GitHub 查看源码 · 许可证与声明

源码片段
class OTIO_API_TYPE Track : public Composition
{
public:
    /// @brief This struct provides the base set of kinds of tracks.
    struct Kind
    {
        static auto constexpr video = "Video";
        static auto constexpr audio = "Audio";
    };

    /// @brief This enumeration provides the neighbor gap policy.
    enum NeighborGapPolicy
    {
        never              = 0,
  • // SPDX-License-Identifier: Apache-2.0
  • // Copyright Contributors to the OpenTimelineIO project

FFmpeg · static int show_stream(

fftools/ffprobe.c · 1984–1997 行。 在 GitHub 查看源码 · 许可证与声明

源码片段
static int show_stream(AVTextFormatContext *tfc, AVFormatContext *fmt_ctx, int stream_idx, InputStream *ist, int container)
{
    AVStream *stream = ist->st;
    AVCodecParameters *par;
    AVCodecContext *dec_ctx;
    char val_str[128];
    const char *s;
    AVRational sar, dar;
    AVBPrint pbuf;
    const AVCodecDescriptor *cd;
    const SectionID section_header[] = {
        SECTION_ID_STREAM,
        SECTION_ID_PROGRAM_STREAM,
        SECTION_ID_STREAM_GROUP_STREAM,
  • * Copyright (c) 2007-2010 Stefano Sabatini

实现与验收要点

素材筛选、静默节奏、审美意图和授权。