Skip to content

rav1e arguments are broken when used with --target-quality #668

Closed
@phpb-com

Description

@phpb-com

I was trying to use rav1e encoder for some HDR content and it is failing with:

Queue 1 Workers 1 Passes 2
Params: --speed 0 --quantizer 50 --threads 8 --keyint 48 --min-keyint 48 --content-light 0,0 --mastering-display G(8500,39850)B(6550,2300)R(34000,146000)WP(15635,16450)L(10000000,1) --matrix bt2020nc --primaries bt2020 --transfer arib-std-b67
WARN [av1an_core::broker] Encoder failed (on chunk 0):
encoder crashed: exit status: 2
stdout:

stderr:
        error: Found argument '-q' which wasn't expected, or isn't valid in this context

                If you tried to supply `-q` as a value rather than a flag, use `-- -q`

        USAGE:
            rav1e [OPTIONS] --output <OUTPUT> <INPUT> [SUBCOMMAND]

        For more information try --help


source pipe stderr:

ffmpeg pipe stderr:

WARN [av1an_core::broker] Encoder failed (on chunk 0):
encoder crashed: exit status: 2
stdout:

stderr:
        error: Found argument '-q' which wasn't expected, or isn't valid in this context

                If you tried to supply `-q` as a value rather than a flag, use `-- -q`

        USAGE:
            rav1e [OPTIONS] --output <OUTPUT> <INPUT> [SUBCOMMAND]

        For more information try --help


source pipe stderr:

ffmpeg pipe stderr:

ERROR [av1an_core::broker] [chunk 0] encoder failed 3 times, shutting down worker
ERROR [av1an_core::broker] [chunk 0] encoder crashed: exit status: 2
stdout:

stderr:
        error: Found argument '-q' which wasn't expected, or isn't valid in this context

                If you tried to supply `-q` as a value rather than a flag, use `-- -q`

        USAGE:
            rav1e [OPTIONS] --output <OUTPUT> <INPUT> [SUBCOMMAND]

        For more information try --help


source pipe stderr:

ffmpeg pipe stderr:

The command that spins-up av1an is:

      docker run --privileged -v $(pwd):/videos --user $(id -u):$(id -g) -it --rm av1an:latest \
        -i "test_HDR.mkv" \
        -s test.scenese.json \
        -e rav1e \
        --target-quality "${TQ}" \
        -l "test_log" \
        --concat mkvmerge \
        -p 2 \
        -w 0 \
        -v "--speed 0
            --quantizer 50
            --threads 8
            --keyint 48
            --min-keyint 48
            --content-light '0,0'
            --mastering-display '${MASTER_DISPLAY}'
            --matrix ${COLORSPACE}
            --primaries ${COLORPRIMARIES}
            --transfer ${COLORTRANSFER}" \
        -f "-movflags frag_keyframe+empty_moov+default_base_moof+faststart -vf ${RESOLUTION_FILTER}" \
        -a "-c:a libfdk_aac -profile:a aac_low -b:a 128k -ar 48000" \
        -o test.mkv

I suspect it is --target-quality trying to adjust quality for the scenes.

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