Command line usage is not working

Trying to use command line
mkv movie to mkv movie:

"C:\Program Files\Topaz Labs LLC\Topaz Video AI\ffmpeg" -hide_banner -nostdin -y -nostats -i C:/temp/2/01.mkv -sws_flags spline+accurate_rnd+full_chroma_int -color_trc 2 -colorspace 2 -color_primaries 2 -filter_complex tvai_up=model=ahq-12:scale=0:w=720:h=480:device=0:vram=1:instances=1 -c:v hevc_nvenc -profile:v main -preset medium -pix_fmt yuv420p -b_ref_mode disabled -tag:v hvc1 -b:v 0 -map_metadata 0 -movflags "use_metadata_tags+write_colr" -map_metadata:s:v 0:s:v -an -metadata "videoai=Enhanced using ahq-12" C:/temp/2/01_1_ahq12.mkv

Output:

Input #0, matroska,webm, from 'C:/temp/2/01.mkv':
  Metadata:
    encoder         : libebml v1.4.4 + libmatroska v1.7.1
    creation_time   : 2023-03-06T11:23:28.000000Z
  Duration: 00:08:24.09, start: 0.000000, bitrate: 21201 kb/s
  Chapters:
    Chapter #0:0: start 0.000000, end 504.087000
      Metadata:
        title           : (01)00:00:00:000
  Stream #0:0: Video: hevc (Main), yuv420p(tv), 720x480 [SAR 8:9 DAR 4:3], 23.98 fps, 23.98 tbr, 1k tbn (default)
    Metadata:
      BPS             : 21120685
      DURATION        : 00:08:24.087000000
      NUMBER_OF_FRAMES: 12086
      NUMBER_OF_BYTES : 1330832899
      _STATISTICS_WRITING_APP: mkvmerge v74.0.0 ('You Oughta Know') 64-bit
      _STATISTICS_WRITING_DATE_UTC: 2023-03-06 11:23:28
      _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
  Stream #0:1(rus): Audio: aac (LC), 48000 Hz, stereo, fltp
    Metadata:
      BPS             : 78730
      DURATION        : 00:08:23.637000000
      NUMBER_OF_FRAMES: 23608
      NUMBER_OF_BYTES : 4956458
      _STATISTICS_WRITING_APP: mkvmerge v74.0.0 ('You Oughta Know') 64-bit
      _STATISTICS_WRITING_DATE_UTC: 2023-03-06 11:23:28
      _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
Stream mapping:
  Stream #0:0 (hevc) -> tvai_up:default
  tvai_up:default -> Stream #0:0 (hevc_nvenc)
[swscaler @ 000001EA1DA00040] [swscaler @ 000001EA1DA870C0] No accelerated colorspace conversion found from yuv420p to rgb48le.
[swscaler @ 000001EA1DA00040] [swscaler @ 000001EA1DA95500] No accelerated colorspace conversion found from yuv420p to rgb48le.
[swscaler @ 000001EA1DA00040] [swscaler @ 000001EA1DAA3980] No accelerated colorspace conversion found from yuv420p to rgb48le.
[swscaler @ 000001EA1DA00040] [swscaler @ 000001EA1DAB1E00] No accelerated colorspace conversion found from yuv420p to rgb48le.
[swscaler @ 000001EA1DA00040] [swscaler @ 000001EA1DAC0280] No accelerated colorspace conversion found from yuv420p to rgb48le.
[swscaler @ 000001EA1DA00040] [swscaler @ 000001EA1DACE6C0] No accelerated colorspace conversion found from yuv420p to rgb48le.
[swscaler @ 000001EA1DA00040] [swscaler @ 000001EA1DADCB40] No accelerated colorspace conversion found from yuv420p to rgb48le.
[swscaler @ 000001EA1DA00040] [swscaler @ 000001EA1DAEAFC0] No accelerated colorspace conversion found from yuv420p to rgb48le.
[swscaler @ 000001EA1DA00040] [swscaler @ 000001EA1DAF9440] No accelerated colorspace conversion found from yuv420p to rgb48le.
[swscaler @ 000001EA1DA00040] [swscaler @ 000001EA1DB07880] No accelerated colorspace conversion found from yuv420p to rgb48le.
[swscaler @ 000001EA1DA00040] [swscaler @ 000001EA1DB15D00] No accelerated colorspace conversion found from yuv420p to rgb48le.
[swscaler @ 000001EA1DA00040] [swscaler @ 000001EA1DB24180] No accelerated colorspace conversion found from yuv420p to rgb48le.
[swscaler @ 000001EA1DA00040] [swscaler @ 000001EA1DB32600] No accelerated colorspace conversion found from yuv420p to rgb48le.
[swscaler @ 000001EA1DA00040] [swscaler @ 000001EA1DB40A40] No accelerated colorspace conversion found from yuv420p to rgb48le.
[swscaler @ 000001EA1DA00040] [swscaler @ 000001EA1DB4EEC0] No accelerated colorspace conversion found from yuv420p to rgb48le.
[swscaler @ 000001EA1DA00040] [swscaler @ 000001EA1DB5D340] No accelerated colorspace conversion found from yuv420p to rgb48le.

Output file is not created.

Image sequence:

"C:\Program Files\Topaz Labs LLC\Topaz Video AI\ffmpeg" -hide_banner -nostdin -y -nostats -framerate 25 -start_number 0 -i D:/Deinterlace/0001/%06d.png -sws_flags spline+accurate_rnd+full_chroma_int -color_trc 2 -colorspace 0 -color_primaries 2 -filter_complex bwdif=mode=1:parity=0:deint=0,tvai_up=model=ddv-3:scale=0:w=720:h=480:device=0:vram=1:instances=1 -c:v png -pix_fmt rgb24 -metadata "videoai=Deinterlaced and enhanced using ddv-3" -start_number 0 D:/Deinterlace/0001_ddv3/%06d.png

Output:

Input #0, image2, from 'D:/Deinterlace/0001/%06d.png':
  Duration: 00:00:03.20, start: 0.000000, bitrate: N/A
  Stream #0:0: Video: png, rgb24(pc, gbr/unknown/unknown), 720x480, 25 fps, 25 tbr, 25 tbn
Stream mapping:
  Stream #0:0 (png) -> bwdif:default
  tvai_up:default -> Stream #0:0 (png)

No output files created.

In program (UI) everything works fine.

p.s. why you make all parameters for ffmpeg in quotes “” ?

Did you set the environment variables?
The reason they add all the quotes is to reduce potential errors over different operating systems. For example in Windows: a path with no spaces will work fine with no quotation marks, but once a space is added, it breaks.

Its easier to check if parameter (path) contains space - before adding quotes.

Depends on how you’re generating the command. In the Python script I made to generate commands for TVAI, I found that spaces were a pain-point more than three times—and I only tested it on Windows. It probably doesn’t work on Mac.

Hello,

Could you share the last message from ffmpeg before the command fails? The [swscaler @ 000001EA1DA00040] [swscaler @ 000001EA1DB24180] No accelerated colorspace conversion found from yuv420p to rgb48le. message is expected when using the CLI and is just an informational line that does not stop the process from running.

Thanks!

Tested in 3.2.1 and now no such error anymore. Works fine from any command prompt.