Skip to content

Prevent duplicate output paths and possible data loss #81

Closed

Description

@Kevinjohn

Two source files with the same stem can resolve to one output path, allowing one conversion to overwrite another.

  • Reproduce: add /A/clip.mov and /B/clip.mkv, keep their derived names, choose one output directory and the same output container, then queue both files.
  • Expected: Frame assigns distinct output paths or reports the conflict before conversion starts.
  • Actual: both tasks resolve to /exports/clip_converted.mp4.

The output name is derived from the filename stem, while every selected task receives the same output directory. The final path builder therefore receives identical names for these two inputs. FFmpeg is also invoked with -y, so sequential jobs can overwrite an earlier result and concurrent jobs can race over the same file.

This is visible across the current paths for name derivation, task queuing, output path construction, and the -y FFmpeg arguments for copy and re-encode modes.

Environment

  • macOS 26.5.2
  • Rust 1.95.0
  • Frame revision affa1fb
  • Source media: distinct files named clip.mov and clip.mkv; media contents are not needed to reproduce path construction
  • FFmpeg logs: N/A; the collision is reproduced before process launch

Actual screenshot

A focused regression assertion builds both tasks through Frame's current task and output-path functions. It fails because the left and right paths are identical:

A focused regression test fails because both source files resolve to /exports/clip_converted.mp4

Suggested acceptance criteria

  • Detect collisions across all tasks in a batch before launching FFmpeg.
  • Produce deterministic unique paths or ask the user to resolve the conflict.
  • Cover same-stem files from different directories and different source extensions.
  • Avoid changing the normal output name for a single non-conflicting file.

Activity

  1. 66HEX commented on Jul 17, 2026

    @66HEX
    Owner

    Fixed in ef549a3
    This fix will be included in the next release 😁

  2. Kevinjohn commented on Jul 17, 2026

    @Kevinjohn
    ContributorAuthor

    Awesome!
    I had an idea sketched out, but with it being an architectural decision, didn't want to overstep or spam PRs

  3. added
    area:batch
    area:export
    bug
    and removed
    bug
    area:batch
    area:export
    on Nov 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions