This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

different frame counts in the source and in the destination file
#2
using:
ffmpeg -y -loglevel fatal -noautorotate -nostdin -threads 8 -i "C:\Users\Selur\Desktop\source.avi" -map 0:0 -an -sn -color_primaries bt470bg -color_trc smpte170m -colorspace bt470bg -color_range tv -pix_fmt yuv420p10le -strict -1 -vsync 0 -f yuv4mpegpipe - | NVEnc --y4m -i - --fps 29.970 --codec av1 --sar 1:1 --output-depth 10 --vbr 0 --vbr-quality 23.00 --aq --aq-strength 5 --aq-temporal --gop-len 0 --ref 7 --multiref-l0 3 --multiref-l1 3 --bframes 3 --bref-mode auto --mv-precision Q-pel --preset quality --colorrange limited --colormatrix bt470bg --cuda-schedule sync --output "J:\tmp\source_1_2024-03-01@18_33_03_4410_01.av1"
I get:
Video Count : 391 Count of stream of this kind : 1 Kind of stream : Video Kind of stream : Video Stream identifier : 0 StreamOrder : 0 ID : 1 ID : 1 Format : AV1 Format : AV1 Format/Info : AOMedia Video 1 Format/Url : http://aomedia.org/ Commercial name : AV1 Format profile : Main@L3.0 Codec ID : av01 Duration : 14847 Duration : 14 s 847 ms Duration : 14 s 847 ms Duration : 14 s 847 ms Duration : 00:00:14.847 Duration : 00:00:14;25 Duration : 00:00:14.847 (00:00:14;25) Bit rate : 2910402 Bit rate : 2 910 kb/s Maximum bit rate : 3555928 Maximum bit rate : 3 556 kb/s Width : 640 Width : 640 pixels Height : 480 Height : 480 pixels Sampled_Width : 640 Sampled_Height : 480 Pixel aspect ratio : 1.000 Display aspect ratio : 1.333 Display aspect ratio : 4:3 Rotation : 0.000 Frame rate mode : CFR Frame rate mode : Constant Frame rate : 29.970 Frame rate : 29.970 (30000/1001) FPS FrameRate_Num : 30000 FrameRate_Den : 1001 Frame count : 445 Color space : YUV Chroma subsampling : 4:2:0 Chroma subsampling : 4:2:0 Bit depth : 10 Bit depth : 10 bits Bits/(Pixel*Frame) : 0.316 Stream size : 5401773 Stream size : 5.15 MiB (100%) Stream size : 5 MiB Stream size : 5.2 MiB Stream size : 5.15 MiB Stream size : 5.152 MiB Stream size : 5.15 MiB (100%) Proportion of this stream : 0.99949 Encoded date : 2024-03-01 17:33:07 UTC Tagged date : 2024-03-01 17:33:07 UTC colour_description_present : Yes colour_description_present_Source : Container / Stream Color range : Limited colour_range_Source : Container / Stream colour_primaries_Source : Container / Stream transfer_characteristics_Source : Container / Stream Matrix coefficients : BT.470 System B/G matrix_coefficients_Source : Container / Stream Codec configuration box : av1C
using:
ffmpeg -y -loglevel fatal -noautorotate -nostdin -threads 8 -i "C:\Users\Selur\Desktop\source.avi" -map 0:0 -an -sn -color_primaries bt470bg -color_trc smpte170m -colorspace bt470bg -color_range tv -pix_fmt yuv420p -vsync 0 -f yuv4mpegpipe - | NVEnc --y4m -i - --fps 29.970 --codec h264 --profile high --level auto --sar 1:1 --lookahead 16 --vbr 0 --vbr-quality 23.00 --aq --aq-strength 5 --aq-temporal --gop-len 0 --ref 7 --multiref-l0 3 --multiref-l1 3 --bframes 3 --direct auto --bref-mode auto --mv-precision Q-pel --cabac --deblock --preset quality --colorrange limited --colormatrix bt470bg --cuda-schedule sync --output "J:\tmp\h264_1_2024-03-01@18_35_47_9610_01.264"
Video Count : 392 Count of stream of this kind : 1 Kind of stream : Video Kind of stream : Video Stream identifier : 0 StreamOrder : 0 ID : 1 ID : 1 Format : AVC Format : AVC Format/Info : Advanced Video Codec Format/Url : http://developers.videolan.org/x264.html Commercial name : AVC Format profile : High@L3.1 Format settings : CABAC / 7 Ref Frames Format settings, CABAC : Yes Format settings, CABAC : Yes Format settings, Reference frames : 7 Format settings, Reference frames : 7 frames Internet media type : video/H264 Codec ID : avc1 Codec ID/Info : Advanced Video Coding Duration : 14847 Duration : 14 s 847 ms Duration : 14 s 847 ms Duration : 14 s 847 ms Duration : 00:00:14.847 Duration : 00:00:14;25 Duration : 00:00:14.847 (00:00:14;25) Bit rate : 2305894 Bit rate : 2 306 kb/s Maximum bit rate : 2899272 Maximum bit rate : 2 899 kb/s Width : 640 Width : 640 pixels Height : 480 Height : 480 pixels Sampled_Width : 640 Sampled_Height : 480 Pixel aspect ratio : 1.000 Display aspect ratio : 1.333 Display aspect ratio : 4:3 Rotation : 0.000 Frame rate mode : CFR Frame rate mode : Constant Frame rate : 29.970 Frame rate : 29.970 (30000/1001) FPS FrameRate_Num : 30000 FrameRate_Den : 1001 Frame count : 445 Color space : YUV Chroma subsampling : 4:2:0 Chroma subsampling : 4:2:0 Bit depth : 8 Bit depth : 8 bits Scan type : Progressive Scan type : Progressive Bits/(Pixel*Frame) : 0.250 Stream size : 4279791 Stream size : 4.08 MiB (100%) Stream size : 4 MiB Stream size : 4.1 MiB Stream size : 4.08 MiB Stream size : 4.082 MiB Stream size : 4.08 MiB (100%) Proportion of this stream : 0.99893 Encoded date : 2024-03-01 17:35:54 UTC Tagged date : 2024-03-01 17:35:54 UTC colour_description_present : Yes colour_description_present_Source : Container / Stream Color range : Limited colour_range_Source : Container / Stream colour_primaries_Source : Container / Stream transfer_characteristics_Source : Container / Stream Matrix coefficients : BT.470 System B/G matrix_coefficients_Source : Container / Stream mdhd_Duration : 14915 Codec configuration box : avcC
Using:
ffmpeg -y -loglevel fatal -noautorotate -nostdin -threads 8 -i "C:\Users\Selur\Desktop\source.avi" -map 0:0 -an -sn -color_primaries bt470bg -color_trc smpte170m -colorspace bt470bg -color_range tv -pix_fmt yuv420p -vsync 0 -f yuv4mpegpipe - | NVEnc --y4m -i - --fps 29.970 --codec h264 --profile high --level auto --sar 1:1 --lookahead 16 --cqp 20:23:25 --aq --aq-strength 5 --aq-temporal --gop-len 0 --ref 7 --multiref-l0 3 --multiref-l1 3 --bframes 3 --direct auto --bref-mode auto --mv-precision Q-pel --cabac --deblock --preset quality --colorrange limited --colormatrix bt470bg --cuda-schedule sync --output "J:\tmp\h264_const_quant_1_2024-03-01@18_39_08_9610_01.264"
I get:
Video Count : 392 Count of stream of this kind : 1 Kind of stream : Video Kind of stream : Video Stream identifier : 0 StreamOrder : 0 ID : 1 ID : 1 Format : AVC Format : AVC Format/Info : Advanced Video Codec Format/Url : http://developers.videolan.org/x264.html Commercial name : AVC Format profile : High@L3.1 Format settings : CABAC / 7 Ref Frames Format settings, CABAC : Yes Format settings, CABAC : Yes Format settings, Reference frames : 7 Format settings, Reference frames : 7 frames Internet media type : video/H264 Codec ID : avc1 Codec ID/Info : Advanced Video Coding Duration : 14847 Duration : 14 s 847 ms Duration : 14 s 847 ms Duration : 14 s 847 ms Duration : 00:00:14.847 Duration : 00:00:14;25 Duration : 00:00:14.847 (00:00:14;25) Bit rate : 2705904 Bit rate : 2 706 kb/s Maximum bit rate : 3336200 Maximum bit rate : 3 336 kb/s Width : 640 Width : 640 pixels Height : 480 Height : 480 pixels Sampled_Width : 640 Sampled_Height : 480 Pixel aspect ratio : 1.000 Display aspect ratio : 1.333 Display aspect ratio : 4:3 Rotation : 0.000 Frame rate mode : CFR Frame rate mode : Constant Frame rate : 29.970 Frame rate : 29.970 (30000/1001) FPS FrameRate_Num : 30000 FrameRate_Den : 1001 Frame count : 445 Color space : YUV Chroma subsampling : 4:2:0 Chroma subsampling : 4:2:0 Bit depth : 8 Bit depth : 8 bits Scan type : Progressive Scan type : Progressive Bits/(Pixel*Frame) : 0.294 Stream size : 5022219 Stream size : 4.79 MiB (100%) Stream size : 5 MiB Stream size : 4.8 MiB Stream size : 4.79 MiB Stream size : 4.790 MiB Stream size : 4.79 MiB (100%) Proportion of this stream : 0.99909 Encoded date : 2024-03-01 17:39:41 UTC Tagged date : 2024-03-01 17:39:41 UTC colour_description_present : Yes colour_description_present_Source : Container / Stream Color range : Limited colour_range_Source : Container / Stream colour_primaries_Source : Container / Stream transfer_characteristics_Source : Container / Stream Matrix coefficients : BT.470 System B/G matrix_coefficients_Source : Container / Stream mdhd_Duration : 14915 Codec configuration box : avcC
using different containers mp4/mkv doesn't change the output.

=> can't reproduce Sad

Cu Selur
----
Dev versions are in the 'experimental'-folder of my GoogleDrive, which is linked on the download page.
Offline between (including) 29th of June and 5th of July => RochHarz Festival
Reply


Messages In This Thread
RE: different frame counts in the source and in the destination file - by Selur - 01.03.2024, 19:42

Forum Jump:


Users browsing this thread: 1 Guest(s)