dandere2x icon indicating copy to clipboard operation
dandere2x copied to clipboard

output codec?

Open revenz opened this issue 2 years ago • 4 comments

any chance of adding an option to the CLI to allow for the output codec to be set?

h265, h265 10 bit, h264

would be the current main ones, av1 in the not too distant future.

revenz avatar Sep 21 '22 00:09 revenz

You can set it on config_files/output_options.yaml

  pipe_video:
    -hwaccel: auto
    output_options:
      -loglevel: panic
      -y: -f
      image2pipe: True
      -i: '-'
      -vcodec: libx264
      -preset: medium
      -qscale: 5
      -crf: 15
      -vf:
        - ' deband=range=8:blur=false, pp7=qp=2:mode=medium'

akai-katto avatar Oct 07 '22 02:10 akai-katto

how do you use this if using the docker command?

revenz avatar Oct 07 '22 03:10 revenz

hmm, I don't think you can. I'll keep this in mind as I do book keeping. i'll let you know in this thread once I add support for this.

akai-katto avatar Oct 07 '22 03:10 akai-katto

I'm also interested since newer codecs other than x264, will produce better results. h265-10b (x265, hevc_nvenc, and I'm also interested in SVT-AV1 and AOM-AV1) will suffice, but depending on the source it may require also allowing other parameters to be set such as bit depth (eg: yuv420p10le), codec profile level (eg: high444), or even x265-params, aom-params, svtav1-params...

I'm just commenting to be notified if there are news in this issue.

PhiSYS avatar Nov 17 '23 15:11 PhiSYS