The Lagarith decoder in libavcodec only supports YV12 files, and will fail with that exact error if you give it anything other than YV12. The error is coming directly out of x264's LAVF input module. Short of that decoder being fleshed out more, it's not going to resolve the issue.CodeZTM wrote:lavf [warning]: video decoding failed on frame 0
If you force it to use --demuxer avs and it works, that's because it's using the normal Lagarith VFW decoder and thus has no issue with other colorspaces, same as if you were giving it a regular AviSynth script using AVISource().
If MediaInfo is used for more than just simple reading, then I'd imagine the workaround would be either:
A) If it detects the file as Lagarith, force the use of --demuxer avs
B) If it detects the file as Lagarith, and 4:2:0, pass it through; anything other than 4:2:0, then force --demuxer avs (although this has the possibility of being non-consistent if there are any fflagarith-centric decoding quirks...I don't know how it treats nulls)