GithubHelp home page GithubHelp logo

Encoding failed using aom about av1an HOT 5 CLOSED

master-of-zen avatar master-of-zen commented on August 15, 2024
Encoding failed using aom

from av1an.

Comments (5)

master-of-zen avatar master-of-zen commented on August 15, 2024

-enc aom
AOM is default encoder, no need to set this explicitly

-log test.log
.log always added to the end of the file, so with the current setting, it would look like test.log.log.
Proper: -log test

-v " --cq-level=35 "
Default encoding mode is target bitrate, and Q mode needs to be set explicitly using --end-usage=q. Also --cpu-used=N needs to be specified. So proper parameter would look something like (added threads for better multithreading):
-v " --end-usage=q --cq-level=35 --cpu-used=4 --threads=4 "

-ff " -map 0:0 -map 0:1 -map 0:2 "
FF settings are passed to the encoder directly, after splitting is done. So this command is wrong as splits only carry video stream and audio processed separately. This line is breaking encode, for sure.

-a " -c:a copy "
Audio is copied by default, if audio is don't need to be changed - no parameters for audio encoding should be passed

-o test2.mkv
.mkv is always added to the output file because it is consistent at muxing. so with this params, it would be test2.mkv.mkv

So final proper command would look like
av1an -i '.\test.mkv' -v " --end-usage=q --cq-level=35 --cpu-used=4 --threads=4 " -log test -o test2

Also would be nice to not copy paste 700 line log into issue page. Files can be attached to the comment 👇
file.txt

If your issue is solved, close it

from av1an.

Felixkruemel avatar Felixkruemel commented on August 15, 2024

@master-of-zen
Nice thanks for the fast answer!
Seems to work now :)

from av1an.

master-of-zen avatar master-of-zen commented on August 15, 2024

@Felixkruemel 👍

from av1an.

cryptobank avatar cryptobank commented on August 15, 2024

Sorry for the resurrection of this issue, but I'm having the same problem and i'm at the end of my wits here. I'm on arch linux running av1an-git, aom-git and ffmpeg-git.

av1an --resume -i MuzHK.mkv -v " --end-usage=q --cq-level=24 --cpu-used=4 " -log out -o MuzHKAV1
Queue: 187 Workers: 4 Passes: 2
Params: --end-usage=q --cq-level=24 --cpu-used=4
0%| | 0/139284 [00:00<?, ?fr/s]Encoding failed, check validity of your encoding settings/commands and start again

Even with default parameters it fails

av1an --resume -i MuzHK.mkv -log out -o MuzHKAV1
Queue: 187 Workers: 4 Passes: 2
Params: --threads=4 --cpu-used=6 --end-usage=q --cq-level=40
0%| | 0/139284 [00:00<?, ?fr/s]Encoding failed, check validity of your encoding settings/commands and start again
Killed

log
08:42:57 Encoding Queue Composed
Encoder: AOM Queue Size: 187 Passes: 2
Params: --threads=4 --cpu-used=6 --end-usage=q --cq-level=40
08:42:57 Resuming...
08:42:57 Resumed with 0 encoded clips done
08:43:01 Enc: 00053.mkv, 4585 fr
08:43:02 Enc: 00098.mkv, 5309 fr
08:43:03 Enc: 00060.mkv, 6336 fr

ffmpeg
ffmpeg version N-98064-gd09c35677d Copyright (c) 2000-2020 the FFmpeg developers
built with gcc 10.1.0 (GCC)
configuration: --prefix=/usr --disable-debug --disable-static --disable-stripping --enable-avisynth --enable-fontconfig --enable-gmp --enable-gnutls --enable-gpl --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libdav1d --enable-libdrm --enable-libfreetype --enable-libfribidi --enable-libgsm --enable-libiec61883 --enable-libjack --enable-libmfx --enable-libmodplug --enable-libmp3lame --enable-libopencore_amrnb --enable-libopencore_amrwb --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-libtheora --enable-libv4l2 --enable-libvidstab --enable-libvmaf --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxcb --enable-libxml2 --enable-libxvid --enable-nvdec --enable-nvenc --enable-omx --enable-shared --enable-version3

from av1an.

cryptobank avatar cryptobank commented on August 15, 2024

worked it out. video was interlaced and had to pass -vf yadif to ffmpeg. it would be helpful if these errors get passed to client.

from av1an.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.