Av1an icon indicating copy to clipboard operation
Av1an copied to clipboard

Concatenation failed while executing FFmpeg on Windows 10

Open b1scoito opened this issue 2 years ago • 12 comments

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

b1scoito avatar Jan 17 '22 14:01 b1scoito

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)?

redzic avatar Jan 17 '22 21:01 redzic

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.

b1scoito avatar Jan 17 '22 21:01 b1scoito

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?

redzic avatar Jan 17 '22 21:01 redzic

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

b1scoito avatar Jan 17 '22 21:01 b1scoito

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.

redzic avatar Jan 17 '22 21:01 redzic

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.

b1scoito avatar Jan 17 '22 21:01 b1scoito

I'm running on latest.

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

n00mkrad avatar Jan 17 '22 21:01 n00mkrad

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

The --force option gives me the same error.

b1scoito avatar Jan 17 '22 21:01 b1scoito

--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.

redzic avatar Jan 17 '22 21:01 redzic

Seems to be working now. :)

b1scoito avatar Jan 17 '22 21:01 b1scoito

Seems to be working now. :)

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

n00mkrad avatar Jan 17 '22 21:01 n00mkrad

Awesome. I'll try.

b1scoito avatar Jan 17 '22 21:01 b1scoito