Skip to content

avformat: lowres does not work #795

@Tjoppen

Description

@Tjoppen

melt -producer avformat:any_imf_video_file.mxf lowres=3

Expected behavior: output is 1/8 the resolution, 480x270 for a 4K file

Actual behavior: output is full resolution

This is due to AVOptions being set after avcodec_open2() rather than before. This also affects thread_type. Option handling in the avformat module could use improving in general, since there is currently no way to set options for specific streams or to set options only for the demuxer. Getting this right is essential for being able to work with IMF files since they are 4K JPEG2000, which is very CPU intensive without lowres support.

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