master-of-zen / Av1an

Cross-platform command-line AV1 / VP9 / HEVC / H264 encoding framework with per scene quality encoding
GNU General Public License v3.0
1.5k stars 155 forks source link

Concatenation failed while executing FFmpeg on Windows 10 #545

Open b1scoito opened 2 years ago

b1scoito commented 2 years ago

image

It seems like it cannot find any files to concat.

I tried executing the FFmpeg command manually and this is the output I get:

PS C:\Users\biscoito\Desktop> ffmpeg -y -hide_banner -loglevel error -f concat -safe 0 -i .4d659c83/concat -i .4d659c83/audio.mkv -c copy -map 1 -c copy -map 0 output.mkv
[concat @ 0000017c3aa7d580] No files to concat
.4d659c83/concat: Invalid data found when processing input
redzic commented 2 years ago

It seems like you're still running on the old python version of av1an. Can you confirm that this issue exists on the latest rust version (0.3.1)?

b1scoito commented 2 years ago

Correct. I'm running the python version, I tried installing/compiling it directly with cargo, but couldn't figure out on how to compile since there's no How to compile section on the README.

redzic commented 2 years ago

Yeah, compiling on Windows is a bit complicated currently and there's an open issue about documenting it, so hopefully we can address that soon. However we provide binary releases on the github releases page, could you try that binary?

b1scoito commented 2 years ago

With the compiled version I get a different error:

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

stderr:
        -------------------------------------------

        SVT [version]:  SVT-AV1 Encoder Lib v0.8.6

        SVT [build]  :  Visual Studio 2019 64 bit

        LIB Build date: Nov 29 2020 07:56:19

        -------------------------------------------

        Unprocessed tokens:  --crf

        Error in configuration, could not begin encoding! ...

        Run C:\dev\codecs\SvtAv1EncApp.exe --help for a list of options

source pipe stderr:

ffmpeg pipe stderr:
        av_interleaved_write_frame(): Broken pipe
        Error writing trailer of pipe:: Broken pipe

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

stderr:
        -------------------------------------------

        SVT [version]:  SVT-AV1 Encoder Lib v0.8.6

        SVT [build]  :  Visual Studio 2019 64 bit

        LIB Build date: Nov 29 2020 07:56:19

        -------------------------------------------

        Unprocessed tokens:  --crf

        Error in configuration, could not begin encoding! ...

        Run C:\dev\codecs\SvtAv1EncApp.exe --help for a list of options

source pipe stderr:

ffmpeg pipe stderr:
        av_interleaved_write_frame(): Broken pipe
        Error writing trailer of pipe:: Broken pipe

ERROR [av1an_core::broker] [chunk 2] encoder crashed 3 times, shutting down worker
ERROR [av1an_core::broker] [chunk 2] encoder crashed: exit code: 1
stdout:

stderr:
        -------------------------------------------

        SVT [version]:  SVT-AV1 Encoder Lib v0.8.6

        SVT [build]  :  Visual Studio 2019 64 bit

        LIB Build date: Nov 29 2020 07:56:19

        -------------------------------------------

        Unprocessed tokens:  --crf

        Error in configuration, could not begin encoding! ...

        Run C:\dev\codecs\SvtAv1EncApp.exe --help for a list of options

source pipe stderr:

ffmpeg pipe stderr:
        av_interleaved_write_frame(): Broken pipe
        Error writing trailer of pipe:: Broken pipe

Params: Params: --preset 4 --keyint 240 --rc 0 --crf 25 --tile-columns 1 --tile-rows 0

redzic commented 2 years ago

What version of SVT-AV1 are you using? The syntax for the command line options recently changed for SVT-AV1, and we haven't updated the default parameters for SVT-AV1 yet as I believe they are still working on an official release. You can manually specify the parameters with -v though.

EDIT: Nevermind. I see the version in the logs.

b1scoito commented 2 years ago

I'm running on latest. I mean, I tried running everything on latest and didn't seem to work out well, the release binary is not compatible with FFmpeg 5.0 aswell.

n00mkrad commented 2 years ago

I'm running on latest.

You are running SVT-AV1 0.8.6 which is not latest. Also, try it with --force.

b1scoito commented 2 years ago

I mean, it's the newest release in their releases section.

The --force option gives me the same error.

redzic commented 2 years ago

--force only disables the checking of the parameters from av1an itself, so if it was already getting to the point of encoding it will have no effect. Can you try -v "--preset 4 --keyint 240 --rc 0 --qp 25 --tile-columns 1 --tile-rows 0"? Hopefully SVT-AV1 0.8.6 has --qp as an allowed CLI arg.

b1scoito commented 2 years ago

Seems to be working now. :)

n00mkrad commented 2 years ago

Seems to be working now. :)

Either way I can highly recommend updating SVT, 0.8.7 is a lot faster.

b1scoito commented 2 years ago

Awesome. I'll try.