Hello,

I'm trying to use nnedi to deinterlace a 29.97 fps video without doubling the frame rate. I added the fields=a option which I thought was supposed to make nnedi only use one of the two fields, but the output is still 59.94 fps. Is this a bug or am I misunderstanding something?

Here's the command and the output:
$ ffmpeg -i foo.mkv -vf nnedi=weights=nnedi3_weights.bin:field=a bar.mkv
ffmpeg version 4.4.2 Copyright (c) 2000-2021 the FFmpeg developers
  built with gcc 11 (GCC)
configuration: --prefix=/usr --bindir=/usr/bin --datadir=/usr/share/ffmpeg --docdir=/usr/share/doc/ffmpeg --incdir=/usr/include/ffmpeg --libdir=/usr/lib64 --mandir=/usr/share/man --arch=x86_64 --optflags='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection' --extra-ldflags='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 ' --extra-cflags=' -I/usr/include/rav1e' --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libvo-amrwbenc --enable-version3 --enable-bzlib --enable-chromaprint --disable-crystalhd --enable-fontconfig --enable-frei0r --enable-gcrypt --enable-gnutls --enable-ladspa --enable-libaom --enable-libdav1d --enable-libass --enable-libbluray --enable-libbs2b --enable-libcdio --enable-libdrm --enable-libjack --enable-libfreetype --enable-libfribidi --enable-libgsm --enable-libilbc --enable-libmp3lame --enable-libmysofa --enable-nvenc --enable-openal --enable-opencl --enable-opengl --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librsvg --enable-librav1e --enable-librtmp --enable-librubberband --enable-libsmbclient --enable-version3 --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-libsvtav1 --enable-libtesseract --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libv4l2 --enable-libvidstab --enable-libvmaf --enable-version3 --enable-vapoursynth --enable-libvpx --enable-vulkan --enable-libglslang --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --enable-libxml2 --enable-libzimg --enable-libzmq --enable-libzvbi --enable-lv2 --enable-avfilter --enable-avresample --enable-libmodplug --enable-postproc --enable-pthreads --disable-static --enable-shared --enable-gpl --disable-debug --disable-stripping --shlibdir=/usr/lib64 --enable-lto --enable-libmfx --enable-runtime-cpudetect
  libavutil      56. 70.100 / 56. 70.100
  libavcodec     58.134.100 / 58.134.100
  libavformat    58. 76.100 / 58. 76.100
  libavdevice    58. 13.100 / 58. 13.100
  libavfilter     7.110.100 /  7.110.100
  libavresample   4.  0.  0 /  4.  0.  0
  libswscale      5.  9.100 /  5.  9.100
  libswresample   3.  9.100 /  3.  9.100
  libpostproc    55.  9.100 / 55.  9.100
Input #0, matroska,webm, from 'foo.mkv':
  Metadata:
    ENCODER         : Lavf58.76.100
  Duration: 00:00:15.02, start: 0.000000, bitrate: 9479 kb/s
Stream #0:0: Video: h264 (High), yuv420p(tv, bt709, top coded first (swapped)), 1920x1080 [SAR 1:1 DAR 16:9], 29.97 fps, 29.97 tbr, 1k tbn, 59.94 tbc (default)
    Metadata:
      DURATION        : 00:00:15.015000000
Stream mapping:
  Stream #0:0 -> #0:0 (h264 (native) -> h264 (libx264))
Press [q] to stop, [?] for help
[libx264 @ 0x55ee59541800] using SAR=1/1
[libx264 @ 0x55ee59541800] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
[libx264 @ 0x55ee59541800] profile High, level 4.2, 4:2:0, 8-bit
[libx264 @ 0x55ee59541800] 264 - core 163 r3060 5db6aa6 - H.264/MPEG-4 AVC codec - Copyleft 2003-2021 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=6 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
Output #0, matroska, to 'bar.mkv':
  Metadata:
    encoder         : Lavf58.76.100
Stream #0:0: Video: h264 (H264 / 0x34363248), yuv420p(tv, bt709, progressive), 1920x1080 [SAR 1:1 DAR 16:9], q=2-31, 59.94 fps, 1k tbn (default)
    Metadata:
      DURATION        : 00:00:15.015000000
      encoder         : Lavc58.134.100 libx264
    Side data:
      cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: N/A
frame= 450 fps= 20 q=-1.0 Lsize= 1847kB time=00:00:14.91 bitrate=1014.2kbits/s speed=0.654x video:1843kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.199605%
[libx264 @ 0x55ee59541800] frame I:2     Avg QP:10.29  size: 23832
[libx264 @ 0x55ee59541800] frame P:147   Avg QP:17.66  size:  7200
[libx264 @ 0x55ee59541800] frame B:301   Avg QP:18.50  size:  2593
[libx264 @ 0x55ee59541800] consecutive B-frames:  8.4%  3.6% 10.7% 77.3%
[libx264 @ 0x55ee59541800] mb I  I16..4: 76.3% 20.3%  3.5%
[libx264 @ 0x55ee59541800] mb P I16..4: 3.5% 6.9% 0.1% P16..4: 15.4% 1.3% 1.3% 0.0% 0.0% skip:71.4% [libx264 @ 0x55ee59541800] mb B I16..4: 0.2% 0.1% 0.0% B16..8: 10.9% 0.2% 0.0% direct: 5.1% skip:83.5% L0:47.7% L1:51.7% BI: 0.6%
[libx264 @ 0x55ee59541800] 8x8 transform intra:59.5% inter:96.0%
[libx264 @ 0x55ee59541800] coded y,uvDC,uvAC intra: 11.2% 56.7% 16.9% inter: 1.9% 11.2% 0.1%
[libx264 @ 0x55ee59541800] i16 v,h,dc,p: 64% 22%  6%  7%
[libx264 @ 0x55ee59541800] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 18% 9% 69% 1% 1% 1% 1% 1% 0% [libx264 @ 0x55ee59541800] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 44% 18% 22% 3% 3% 4% 2% 3% 2%
[libx264 @ 0x55ee59541800] i8c dc,h,v,p: 50% 23% 25%  3%
[libx264 @ 0x55ee59541800] Weighted P-Frames: Y:4.8% UV:2.7%
[libx264 @ 0x55ee59541800] ref P L0: 64.4%  2.3% 22.3% 10.5%  0.5%
[libx264 @ 0x55ee59541800] ref B L0: 89.5%  8.5%  2.0%
[libx264 @ 0x55ee59541800] ref B L1: 96.5%  3.5%
[libx264 @ 0x55ee59541800] kb/s:1005.15

Thanks,
Alex
_______________________________________________
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

Reply via email to