Open ThisNekoGuy opened 1 year ago
Did you try to run the command by itself?
/usr/bin/ffmpeg -r 29.419795221843003 -hwaccel auto -y -f image2 -i /home/neko-san/.cache/video2x/tmptp_c75mh/extracted_%d.png -vcodec h264_nvenc -pix_fmt yuv420p -crf 17 -vf pad=ceil(iw/2)*2:ceil(ih/2)*2 -tune animation /home/neko-san/.cache/video2x/tmptp_c75mh/intermediate.mkv
There are two weird errors here
Codec AVOption crf (Select the quality for constant quality mode) specified for output file #0 (/home/neko-san/.cache/video2x/tmptp_c75mh/intermediate.mkv) has not been used for any stream. The most likely reason is either wrong type (e.g. a video option with no video streams) or that it is a private option of some encoder which was not actually used for any stream.
Stream mapping:
Stream #0:0 -> #0:0 (png (native) -> h264 (h264_nvenc))
Press [q] to stop, [?] for help
[h264_nvenc @ 0x561d9e27d440] [Eval @ 0x7ffc87379a78] Undefined constant or missing '(' in 'animation'
[h264_nvenc @ 0x561d9e27d440] Unable to parse option value "animation"
[h264_nvenc @ 0x561d9e27d440] Error setting option tune to value animation.
Error initializing output stream 0:0 -- Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height
Conversion failed!
And last but not least, everybody uses rad tools to encode to bink.
Looks like you're using an old version of Video2X on Gentoo, which I would not recommend albeit it may not have anything to do with the error. Consider Docker or Colab.
Follow what @mirh said to see if FFmpeg can work with the format at all. If not, convert to another common format before processing it.
System Info
OS: Gentoo Linux GPU: Nvidia RTX 2080 Ti GPU Driver: 535.104.05
Description
I was trying to upscale cutscene
.bik
videos for an old game (namely Splinter Cell 1 from Steam), and video2x seems to be throwing an error related to ffmpeg, somehow, and it's unclear to me what exactly the problem is when reading the log (and there also appears to be several things going wrong - such as a missing streams?)...Ideally, for context, I also need the output to be back in the
.bik
format but it doesn't seem to be possible with ffmpeg(? in a prior test), so I opted to output it to mkv until I can find a way to convert it back (but that's a bit off-topic from the main issue here).Log and Config File
video2x_uhfd72tx.log
video2x.yaml configuration file:
```yaml # Name: Video2X Configuration File # Values here are the default values. Change the value here to # save the default value permanently. # Items commented out are parameters irrelevant to this context # or parameters handled by Video2X internally. waifu2x_caffe: path: '/usr/bin/waifu2x-caffe-cui' tta: 0 # <0|1> 8x slower and slightly high quality gpu: 0 # gpu device no batch_size: 1 # input batch size crop_h: null # input image split size(height) crop_w: null # input image split size(width) crop_size: 128 # input image split size output_depth: 8 # output image chanel depth bit output_quality: -1 # output image quality process: gpu #