Skip to content

Thumbnail/screenshots with transcoding job #103

Description

@nipakke

A cool feature would be the ability to make thumbnails/screenshots in transcoding jobs.
With fluent-ffmpeg it's easy as calling the "screenshots" function on the fluent-ffmpeg command, more info in the docs

Suggested input format for configuring screenshots in a transcode job:

{
	// the usual transcode job data
	"screenshots": [
		{
			"timestamps": [30.5, "50%", "01:10.123"],
			"size": "?x1080" // any input that is good for fluent-ffmpeg, it can be found in the docs
		},
		{
			"timestamps": ["50%"]
			// No size means the same size as the input video
		},
		//other way like with fluent-ffmpeg
		{
			// Will take screens at 20%, 40%, 60% and 80% of the video
			"count": 4,
			"size": "1280x720"
		}
	]
}

This example would generate 8 screenshots with different sizes taken at different times in the video.

Some things to consider:

  • It needs a different fluentFfmpeg call because ffmpeg can't make screenshots and videos together while transcoding as far as I understand
  • For varying screenshot sizes multiple calls are likely needed
  • It won't work with input streams (I don't know if it's a problem, don't think so if the original input is downloaded anyway)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions