[FFmpeg-user] question about fps filter
Dennis Mungai
dmngaie at gmail.com
Sat May 23 01:15:48 EEST 2020
On Sat, 23 May 2020 at 01:07, Andy Sheimo <asheimo at gmail.com> wrote:
> I am using the command line seen here but the fps filter is being ignored.
>
> ffmpeg.exe -loglevel debug -stats -hwaccel cuda -hwaccel_output_format cuda
> -i "Evanescence - Anywhere but Home.mkv" -map 0:0 -filter:v
> yadif_cuda=deint=interlaced,fps=24000/1001 -c:v h264_nvenc -b:v 2000k
> -maxrate:v 6000k -rc:v vbr_hq -spatial-aq:v 1 -temporal-aq:v 1 -profile:v
> high -color_primaries:v smpte170m -color_trc:v bt709 -colorspace:v
> smpte170m -metadata:s:v title= -disposition:v default -map 0:1 -c:a:0 eac3
> -b:a:0 256k -metadata:s:a:0 title= -disposition:a:0 default -map 0:2 -c:a:1
> copy -metadata:s:a:1 title= -disposition:a:1 0 -sn -metadata:g title=
> "Evanescence - Anywhere but Home 2.mkv"
>
> I found this in the debug output and am not sure why it sees what was
> passed by the command line but then is ignored in the filter graph can
> someone help me understand please? The complete debug output is available
> but too big to include here.
>
> [Parsed_yadif_cuda_0 @ 00000220ac5561c0] Setting 'deint' to value
> 'interlaced'
> [Parsed_fps_1 @ 00000220ac74a500] Setting 'fps' to value '24000/1001'
> [Parsed_fps_1 @ 00000220ac74a500] fps=24000/1001
> [graph 0 input from stream 0:0 @ 00000220ac749f40] Setting 'video_size' to
> value '720x480'
> [graph 0 input from stream 0:0 @ 00000220ac749f40] Setting 'pix_fmt' to
> value '119'
> [graph 0 input from stream 0:0 @ 00000220ac749f40] Setting 'time_base' to
> value '1/1000'
> [graph 0 input from stream 0:0 @ 00000220ac749f40] Setting 'pixel_aspect'
> to value '186/157'
> [graph 0 input from stream 0:0 @ 00000220ac749f40] Setting 'frame_rate' to
> value '30000/1001'
> [graph 0 input from stream 0:0 @ 00000220ac749f40] w:720 h:480 pixfmt:cuda
> tb:1/1000 fr:30000/1001 sar:186/157
> [format @ 00000220ac74bac0] Setting 'pix_fmts' to value
> 'yuv420p|nv12|p010le|yuv444p|p016le|yuv444p16le|bgr0|rgb0|cuda|d3d11'
> [AVFilterGraph @ 00000220ac511d80] query_formats: 5 queried, 4 merged, 0
> already done, 0 delayed
> [h264_nvenc @ 00000220ac561540] Using input frames context (format cuda)
> with h264_nvenc encoder.
> _______________________________________________
>
What version of ffmpeg are you using?
There have been recent updates to the NVENC encoder's implementation in
ffmpeg that better handle frame rate, such as this commit:
https://git.ffmpeg.org/gitweb/ffmpeg.git/commit/b18fd2b95b2fea10f0b5381333a1b4c032f010bc
Use the latest build and retest.
More information about the ffmpeg-user
mailing list