Skip to content

Add Frames to all video files #6230

@bob12224

Description

@bob12224

Describe the feature you'd like

When ffprobe is run, it retrieves the number of frames a video has, I have an extension that needs the accurate frame count.
NOTE: using the duration * frame rate does not always give accurate frame count.

Describe the benefits this would bring to existing users

  1. internal/manager/generator_sprite.go -> NewSpriteGenerator would not need to calculate frame dynamically, it would be stored on initial scan
  2. Future extensions that deal with video editing would benefit from not having to do frame calculations on their own

Is there an existing way to achieve this goal?

I could not find any way to add custom data to a scene, having custome data for every scene would allow my extension to add frames for each file, but it is a less elegant solution

Have you searched for an existing open/closed issue?

  • I have searched for existing issues and none cover the core request of my proposal

Additional context

Framecount is already done in the file pkg/ffmpeg/ffprobe.go line 308. This feature would only store it in the database and make it available in the graphql

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions