-
Notifications
You must be signed in to change notification settings - Fork 323
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
avformat: lowres does not work #795
Comments
Thanks for this hint, I am not sure if this is a long-standing problem or something that degraded while migrating to new APIs. Looks like an easy to change to make, but if you do not I have to find another test case because
MLT and the avformat is not multi-stream except for the case of one audio and one video. In the avformat consumer you can use the "a" or "v" prefix on MLT properties to target a muxer or encoder. In the avformat producer you can select one audio stream using |
This is working for me with HDV:
Also, some other MPEG-2 MXF files work. I have not found jpeg2000 in my library except |
Yes please. I tried exactly this and melt thought I was specifying more producers instead of providing options for the avformat producer. Bringing the option parsing closer in line with ffmpeg would be nice. Multi-stream support in melt is iffy, but at least it works well enough for our use case.
Right, it might work anyway with some formats. I forgot to mention these are JPEG 2000 / IMF files. Can't really upload them anywhere since they're absolutely massive. |
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.
The text was updated successfully, but these errors were encountered: