Skip to content

Correctly calculate $VIDEO_NAME macro for URL inputs #197

Closed

Description

@Breakthrough

Currently, the macro $VIDEO_NAME is not calculated correctly when using an image sequence (e.g. img_%04d.jpg) or [1] a URL as an input video, leading to (potentially) malformed output filenames when running other commands that create output files on disk (e.g. list-scenes). This only happens when the user does not override the calculated filename.

Need to detect this case and either error out while parsing (forcing the user to provide an explicit filename), or output a warning suggesting the filename be overridden manually.

[1] Completed in v0.6

Activity

  1. Breakthrough commented on Jul 31, 2022

    @Breakthrough
    OwnerAuthor

    This should work correctly now for image sequences as of v0.6, but URLs still need to be tackled.

  2. changed the title [-]Correctly calculate $VIDEO_NAME macro for image sqeuence/URL inputs[/-] [+]Correctly calculate $VIDEO_NAME macro for URL inputs[/+] on Jul 31, 2022
  3. jennifferweslowski-design commented on Aug 16, 2026

    @jennifferweslowski-design
    Contributor

    For URL inputs, which behavior do you want for $VIDEO_NAME when the user hasn't overridden the filename template: (a) warn and continue, (b) error out during parsing and require an explicit filename, or (c) derive the name from the URL's path component and only warn/error when there's no usable path segment (e.g. https://example.com/)?

  4. jennifferweslowski-design commented on Aug 17, 2026

    @jennifferweslowski-design
    Contributor

    For a URL with no usable path (empty, or $VIDEO_NAME polluted by query/fragment), should PySceneDetect warn and fall back to a generic name, or reject the input? I don't want to pick that API behavior without your call.

  5. added this to the 0.7.3 milestone on Oct 18, 2026
  6. Breakthrough commented on Oct 21, 2026

    @Breakthrough
    OwnerAuthor

    Sorry for the delay in responding to this, I think either A or C sounds fine as per #582.

  7. added a commit that references this issue on Oct 21, 2026
    6d75bef
  8. jennifferweslowski-design commented on Oct 21, 2026

    @jennifferweslowski-design
    Contributor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions