AkarinVS / L-SMASH-Works

Works based on L-SMASH project; This repo focuses on the common portion and the VapourSynth plugin. AviSynth users please use https://github.com/HomeOfAviSynthPlusEvolution/L-SMASH-Works. ffmpeg 5.0+ please use ffmpeg-4.5 branch.
47 stars 11 forks source link

L-SMASH HW Decoder causes Resize error 3074 #30

Open Ironclad17 opened 1 year ago

Ironclad17 commented 1 year ago

Appears issue #28 persists When using L-smash filter with the prefer_hw parameter set to 1 or 3 with unsupported mpeg2 video, you receive the error: vapoursynth.Error: Analyse: failed to retrieve first frame from super clip. Error message: Resize error: Resize error 3074: unrecognized transfer characteristics (0/0/0 => 0/0/0). May need to specify additional colorspace parameters. Even with all color parameters set for input and output, the error persists. Let me clarify this appears to only occur when the hw encoder does not support the input codec, but parameter 3 should fall back to software encoder regardless, yet the error persists.

AkarinVS commented 1 year ago

This one is interesting. It seems the decoder opens the stream fine but only returns error when requesting frames? And at which point, it's already too late to switch to another decoder....

btw, it's generally recommended to use software decoder for better compatibility and performance (surprise! at least cuvid decoder is slower than software decoder on 1080p)