Skip to content

[Bug]: contentType field on /v1/ffmpeg/compose endpoint is ignored (file always has application/octet-stream) #171

@Rayvox

Description

@Rayvox

Describe the bug

When using the /v1/ffmpeg/compose endpoint, I include "contentType": "video/mp4" in the output object as specified in the official documentation. However, the resulting file uploaded to DigitalOcean Spaces always has a Content-Type of application/octet-stream instead of video/mp4.

Forgive me if I've completely missed something in the setup or docs, but is this a known issue?
Is there a workaround for ensuring the correct Content-Type is set on Spaces uploads via this endpoint?
Can this be fixed so that the toolkit respects the contentType field as documented?

Reproduction Steps

Submit a valid /v1/ffmpeg/compose request, including the following output object:

{
  "options": [
    { "option": "-f", "argument": "mp4" },
    { "option": "-c:v", "argument": "libx264" },
    { "option": "-c:a", "argument": "aac" }
  ],
  "contentType": "video/mp4"
}

Inspect the file in DigitalOcean Spaces after processing.
The file is always set to application/octet-stream as its Content-Type.

Expected behavior

The file should have the correct MIME type (video/mp4) when "contentType": "video/mp4" is set in the output object. Even if no mime is specified, the output in the bucket should adopt the correct mime, but currently it is always octet-stream.

Screenshots and relevant files

Image

Platform

Digital Ocean

Would you like to work on this issue?

None

Checklist

  • I have searched the open issues for duplicates.
  • I have shown the entire traceback, if possible.

Additional Context

  • I have tested with and without the contentType field; the result is the same.
  • The Spaces upload is performed by the toolkit as part of the compose operation.
  • Even the thumbnail which is outputting a .jpg adopts the octet-stream.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions