Skip to content

FFV1 lossless input fails to decode (avcodec_send_packet: Invalid argument) — only x264 8-bit lossless is accepted #74

Description

@kentafilo

Version: VideoJaNai 2.1.0
GPU / backend: RTX 2060, TensorRT
OS: Windows

Description

VideoJaNai fails to decode an FFV1 lossless input. The failure happens on the input decode step, not during inference: the TensorRT engine builds and passes successfully, and the run only dies when the FFV1 file is read. Re-encoding the exact same content to x264 lossless (qp 0, 8-bit 4:2:0) makes it work with no other change, which points to the input decode path rather than the model or the GPU.

In practice, this means only x264 8-bit lossless is reliably accepted as input, while a standard lossless intermediate like FFV1 is rejected.

Source file (MediaInfo)
Format: FFV1 v3.4 (V_FFV1), intra-only (GOP N=1), 24 slices, slicecrc
1440×1080, 24 fps CFR, YUV 4:2:0, 8-bit, limited range, BT.470BG
Container: MKV
Error (from log)
avcodec_send_packet(c->dec): Invalid argument
at encode.c:1074
Steps to reproduce
Load an FFV1 / MKV lossless clip as input
Start the upscale — the TensorRT engine builds fine
Processing fails immediately on decode with the error above
Workaround

Transcode the FFV1 source to x264 lossless (qp 0, 8-bit 4:2:0) beforehand; the same clip then processes correctly.

Expected

Common lossless intermediates (FFV1, and ideally UT Video / FFVHuff / Lagarith) should decode as input, since they are standard VapourSynth-readable formats.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions