Skip to content

Comment on The Way to the Wormhole

You are viewing one comment and its replies. View all comments · View the comment above

Comments

  • Glad that it worked for you!

    I have no detailed knowledge of how to suppress specific information output of ffmpeg. I actually like that it vomits out so much information; I have my terminal scroll back set to essentially infinite and can so better analyze what went wrong or not quite right.


    Okay, now I know more: svt-av1 apparently pipes all its info as stderr, and that’s why -loglevel error doesn’t suppress it and why >/dev/null also doesn’t suppress it since this only redirects stdout to the void. You could do 2> /dev/null and suppress all stderr, or you could append it to a temp file with 2>> /tmp/ffmpeg-error.txt.

    But I found a better solution in a superuser answer:
    You can use the SVT_LOG environment variable like so:

    SVT_LOG=1 ffmpeg -y -hide_banner -loglevel error -i *.mp4 -an -c:v libsvtav1 -crf 34 -preset 6 -svtav1-params fast-decode=2 -g 300 -pix_fmt yuv420p -vf "fps=25, scale=-1:480" 'test4'.avif
    

    SVT_LOG=1 only gives actual errors, and you can make it permanent by adding export SVT_LOG=1 to your shell profile.


    Another thing: -quality 80 doesn’t do anything, and ffmpeg even gives a warning, which you suppressed. Quality is being controlled by -crf 34, see the wiki.

    0
    • Thanks! I will work that into my workflow.

      For the sake of comparison, I got JPEG-XL animations working from FFMPEG. But adjusting the values in the distance and effort options in the command below, I cannot get a file that is comparable to what I can get out of AVIF. Sure, it’s much better than GIF and pretty close to WebP, but compared to AVIF the JPEG-XL file is always either larger in file size or lower quality.

      ffmpeg -i test.mp4 -c:v libjxl_anim -f image2pipe -distance 8 -effort 5 -loop 0 -vf "fps=25, scale=-1:480" test.jxl
      
      1

Sign in to comment. Sign in