Av1an icon indicating copy to clipboard operation
Av1an copied to clipboard

Error: FFmpeg concatenation failed (I sus pect audio problem)

Open pragmaticmero opened this issue 2 years ago • 2 comments

FFmpeg failed to concatenate

This error happens either when I encode with STV-AV1 or AOM

$ av1an -i "Slippery Climb.mp4" -o "slip_climb" -e svt-av1 -v "--preset 8 --keyint 240 --lp 0 --rc 0 --crf 25"
Scene detection
  00:00:29 [####################################################################################] 100%  8669/8669 (290.33 fps, eta 0s) Queue 68 Workers 1 Passes 1
Params: --preset 8 --keyint 240 --lp 0 --rc 0 --crf 25
ERROR [av1an_core::concat] FFmpeg concatenation failed with output: Output {
    status: ExitStatus(
        unix_wait_status(
            256,
        ),
    ),
    stdout: "",
    stderr: "[NULL @ 0x563b2dfe4380] Unable to find a suitable output format for '/media/st3500312cs/downloads/codec/slip_climb'\n/media/st3500312cs/downloads/codec/slip_climb: Invalid argument\n",
}
command: "ffmpeg" "-y" "-hide_banner" "-loglevel" "error" "-f" "concat" "-safe" "0" "-i" "/media/st3500312cs/downloads/codec/.1d997cb/concat" "-i" "/media/st3500312cs/downloads/codec/.1d997cb/audio.mkv" "-map" "0" "-map" "1" "-c" "copy" "/media/st3500312cs/downloads/codec/slip_climb"
  00:03:41 [#########################################################] 100%  8669/8669 (39.20 fps, eta 0s, 2161.1 Kbps, est. 74.52MiB) Error: FFmpeg concatenation failed

plz help, the original video is encoded with H.264 and the audio in it is AAC. I want to use the Matroska container, and I preffer to be using SVT-A1V.

FFmpeg version

ffmpeg version n5.0 Copyright (c) 2000-2022 the FFmpeg developers

SVT-AV1 version

SVT-AV1 v0.9.0-dirty (debug) SVT [version]: SVT-AV1 Decoder Lib v0.9.0-dirty

Av1an version

av1an 0.3.1

pragmaticmero avatar Apr 13 '22 17:04 pragmaticmero

Well... installing mkvmerge fixed the problem.... It isn't an optional package tho? I don't get it. Still, the audio is AAC in the encoded file, I have to add a parameter I guess. Plz change "mkvmerge" from optional to Prerequisite, it confuses me (I'm new in this world of encoders, command lines & linux)

Update: Seeing that "opus" is an open standard, I guess that the examples on your README.md work without the need of "mkvmerge".

Arch Linux

pragmaticmero avatar Apr 13 '22 20:04 pragmaticmero

for ffmpeg concatenation (which is the default when mkvmerge isn't installed) you need to add a file extension at the end of the filename, like this av1an -i "Slippery Climb.mp4" -o "slip_climb.mkv" -e svt-av1 -v "--preset 8 --keyint 240 --lp 0 --rc 0 --crf 25" otherwise ffmpeg will fail to create the output file because the output file type isn't defined

woot000 avatar Apr 17 '22 23:04 woot000