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.

Problems with bitrate in the latest version of the program
#1
Hello. I have problems with bitrate in the latest version of the program. Am i converting files to MKV. The finished file has a bitrate twice the settings. The old version (2021.07.18.1) of the program works correctly

[Image: 4ba149501e347ee487c2288b3ccfa4bd.jpeg]

I usually set a average bitrate (1pass) of 3500 kbit/sec, finished file has a bitrate 7000-7100 kbit/sec

Report file

ffmpeg started...
starting 2022-01-26@22_18_20_7010_01_audio@22:18:20.792 - D:\test.mkv
"D:\Other\Hybrid\64bit\ffmpeg.exe" -y -threads 8 -i "D:\Video\test.ac3" -b:a 160k -ar 48000 -channel_layout stereo "D:\Other\Temp\iId_1_aid_0_2022-01-26@22_18_20_7010_01.ac3"
2022-01-26@22_18_20_7010_01_audio finished after 00:00:01.043
finished...

created D:\Other\Temp\iId_1_aid_0_2022-01-26@22_18_20_7010_01.ac3 (2.84119 MB)
x264 (1 pass) processing started...
starting 2022-01-26@22_18_20_7010_04_video@22:18:22.287 - D:\test.mkv
"D:\Other\Hybrid\64bit\x264.exe" --preset veryfast --bitrate 3500 --profile high --level 5.1 --ref 3 --direct auto --b-adapt 0 --sync-lookahead 18 --ratetol 2.00 --qcomp 0.50 --rc-lookahead 40 --qpmax 51 --partitions i4x4,p8x8,b8x8 --no-fast-pskip --subme 5 --aq-mode 0 --vbv-maxrate 3500 --vbv-bufsize 300000 --sar 32:27 --non-deterministic --range tv --colormatrix bt709 --demuxer raw --input-res 720x480 --input-csp i420 --input-range tv --input-depth 8 --fps 30000/1001 --output-depth 8 --output "D:\Other\Temp\2022-01-26@22_18_20_7010_04.264" -
raw [info]: 720x480p 32:27 @ 30000/1001 fps (cfr)
x264 [info]: using SAR=32/27
x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2 AVX512
x264 [info]: profile High, level 5.1, 4:2:0, 8-bit
x264 [info]: frame I:45    Avg QP:12.87  size: 85944
x264 [info]: frame P:2257  Avg QP:16.76  size: 37873
x264 [info]: frame B:6627  Avg QP:22.70  size:  6593
x264 [info]: consecutive B-frames:  1.0%  0.0%  0.3% 98.7%
x264 [info]: mb I  I16..4: 15.7% 16.7% 67.6%
x264 [info]: mb P  I16..4:  6.4%  0.0%  9.1%  P16..4: 30.1% 19.7% 26.4%  0.0%  0.0%    skip: 8.3%
x264 [info]: mb B  I16..4:  0.5%  0.0%  1.4%  B16..8: 19.1%  9.9%  2.4%  direct:11.3%  skip:55.3%  L0:27.7% L1:40.3% BI:32.0%
x264 [info]: final ratefactor: 15.87
x264 [info]: 8x8 transform intra:1.4% inter:34.8%
x264 [info]: direct mvs  spatial:99.8% temporal:0.2%
x264 [info]: coded y,uvDC,uvAC intra: 68.3% 71.6% 45.9% inter: 29.0% 18.1% 5.3%
x264 [info]: i16 v,h,dc,p: 37% 27% 16% 19%
x264 [info]: i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 23% 29% 21%  4%  4%  5%  4%  5%  6%
x264 [info]: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 30% 13% 12%  6%  8% 11%  6%  9%  6%
x264 [info]: i8c dc,h,v,p: 45% 17% 27% 11%
x264 [info]: Weighted P-Frames: Y:6.5% UV:2.4%
x264 [info]: ref P L0: 74.7% 19.5%  5.8%
x264 [info]: ref B L0: 94.1%  5.2%  0.8%
x264 [info]: ref B L1: 98.4%  1.6%
x264 [info]: kb/s:3572.36
encoded 8929 frames, 140.65 fps, 3572.36 kb/s
2022-01-26@22_18_20_7010_04_video finished after 00:01:03.620
finished...

created D:\Other\Temp\2022-01-26@22_18_20_7010_04.264 (126.876 MB)
mkvmerge started...
starting 2022-01-26@22_18_20_7010_08_muxing@22:19:25.929 - D:\test.mkv
"D:\Other\Hybrid\64bit\mkvmerge.exe" --ui-language en -o "D:\2022-01-26@22_18_20_7010__07.mkv" --global-tags "D:\Other\Temp\mkvtags_2022-01-26@22_18_20_7010__07.xml" -d 0 --default-track 0:yes --default-duration "0:60000/1001fps" --aspect-ratio-factor 0:32/27 --fourcc 0:MP4V --no-chapters --compression -1:none --forced-track 0:yes --no-audio --no-subtitles "D:\Other\Temp\2022-01-26@22_18_20_7010_04.264" --default-track 0:yes --forced-track 0:no -a 0 --compression -1:none --no-video --no-subtitles --no-chapters "D:\Other\Temp\iId_1_aid_0_2022-01-26@22_18_20_7010_01.ac3"
2022-01-26@22_18_20_7010_08_muxing finished after 00:00:00.617
finished...

created D:\2022-01-26@22_18_20_7010__07.mkv (129.792 MB)


Debug file https://drive.google.com/file/d/1FDUu4bb...sp=sharing

MediaInfo report from MKV

General
Unique ID                                : 237618910418649176275422369621961363392 (0xB2C3BCCC53E93C41CE0CF27848584FC0)
Complete name                            : D:\test.mkv
Format                                   : Matroska
Format version                           : Version 4
File size                                : 130 MiB
Duration                                 : 2 min 28 s
Overall bit rate                         : 7 309 kb/s
Encoded date                             : UTC 2022-01-26 17:19:26
Writing application                      : mkvmerge v64.0.0 ('Willows') 64-bit
Writing library                          : libebml v1.4.2 + libmatroska v1.6.4
Encoding Gui                             : Hybrid 2021.12.10.1

Video
ID                                       : 1
Format                                   : AVC
Format/Info                              : Advanced Video Codec
Format profile                           : High@L5.1
Format settings                          : CABAC / 4 Ref Frames
Format settings, CABAC                   : Yes
Format settings, Reference frames        : 4 frames
Codec ID                                 : V_MPEG4/ISO/AVC
Duration                                 : 2 min 28 s
Bit rate                                 : 7 145 kb/s
Nominal bit rate                         : 3 500 kb/s
Width                                    : 720 pixels
Height                                   : 480 pixels
Display aspect ratio                     : 16:9
Frame rate mode                          : Variable
Frame rate                               : 59.940 FPS
Original frame rate                      : 29.970 (30000/1001) FPS
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 8 bits
Scan type                                : Progressive
Bits/(Pixel*Frame)                       : 0.345
Stream size                              : 127 MiB (98%)
Writing library                          : x264 core 164 r3075 66a5bc1
Encoding settings                        : cabac=1 / ref=3 / deblock=1:0:0 / analyse=0x3:0x111 / me=hex / subme=5 / psy=1 / psy_rd=1.00:0.00 / mixed_ref=0 / me_range=16 / chroma_me=1 / trellis=0 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=0 / chroma_qp_offset=0 / threads=15 / lookahead_threads=3 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / bframes=3 / b_pyramid=2 / b_adapt=0 / b_bias=0 / direct=3 / weightb=1 / open_gop=0 / weightp=1 / keyint=250 / keyint_min=25 / scenecut=40 / intra_refresh=0 / rc_lookahead=40 / rc=cbr / mbtree=1 / bitrate=3500 / ratetol=2.0 / qcomp=0.50 / qpmin=0 / qpmax=51 / qpstep=4 / vbv_maxrate=3500 / vbv_bufsize=300000 / nal_hrd=none / filler=0 / ip_ratio=1.40 / aq=1:0.00
Default                                  : Yes
Forced                                   : Yes
Color range                              : Limited
Matrix coefficients                      : BT.709

Audio
ID                                       : 2
Format                                   : AC-3
Format/Info                              : Audio Coding 3
Commercial name                          : Dolby Digital
Codec ID                                 : A_AC3
Duration                                 : 2 min 28 s
Bit rate mode                            : Constant
Bit rate                                 : 160 kb/s
Channel(s)                               : 2 channels
Channel layout                           : L R
Sampling rate                            : 48.0 kHz
Frame rate                               : 31.250 FPS (1536 SPF)
Compression mode                         : Lossy
Stream size                              : 2.84 MiB (2%)
Service kind                             : Complete Main
Default                                  : Yes
Forced                                   : No
Reply
#2
Did you encode the same source with both 2021.07.18.1 and 2021.12.12.1 and got this effect?
This would surprise me, since I haven't changed anything about x264 for ages.
Did a small test and for me encoding with both versions produced (roughly; not exactly) the same output,...
I also checked the x264 changelog and I can't see anything that should have this effect.
If you want a more content bit rate distribution lower the curve compression.
So assuming the source is detected correctly in both versions (especially frame rate and frame count) I see not how Hybrid could be the cause of the problem.
Quote:Frame rate : 59.940 FPS
Original frame rate : 29.970 (30000/1001) FPS
seems suspicious, did you perhaps encode at different frame rates?
-> since you didn't even use the latest version the debug output you posted is not interessting.

Cu Selur
Reply
#3
(26.01.2022, 20:13)Selur Wrote: Did you encode the same source with both 2021.07.18.1 and 2021.12.12.1 and got this effect?


Yes. Versions of the program are different, the source is the same and the result is different.

Old versions of the program do not have a section "Nominal bit rate " in the final mkv file



[Image: 3a7f582d5d98024b37c619734ee9395d.jpeg]



(26.01.2022, 20:13)Selur Wrote: since you didn't even use the latest version the debug output you posted is not interessting
I used the latest version https://www.selur.de/sites/default/files..._SETUP.exe , in the program window and logs version 2021.12.10.1


(26.01.2022, 20:13)Selur Wrote: seems suspicious, did you perhaps encode at different frame rates?


I change the frame rate through the filter and there are no problems. I take 60 frames.
Reply
#4
Question is: Is the frame rate of the output and the frame count the same in both encodes?
If the frame rate halves the average bitrate would double for the same file size.
Also since your input is vfr, it could be that the newer version properly takes the source as cfr and 29.97,...

Encoding itself didn't change, but in the last 6 month the source detection did change, so my guess is that this is what changed.

Cu Selur
Reply
#5
Source file has frame rate 29.970 , finished file has frame rate 59.940

If I want a bitrate of 3500 and the number of frames is doubled, do I specify a bitrate of 1750 in the settings?
Reply
#6
No, if you want 3500 kbit/s for the final output frame rate use that.
My point is that the issue probably is not the encoding itself, but how the source if detected and processed.
(as a side note: if you bob to go from 29,97 to 59.94 I hope your content is interlaced and not telecined unless you don't care about the tons of dublicate frames,..)

Cu Selur
Reply
#7
The differences are in the command line options for x264. The old and new versions of the Hybrid have the same settings and are enabled through the 60 frames filter. The old version has the option "fps 60000/1001" , latest version has option "fps 30000/1001"

[Image: _2032e632f4329adb49a2e762e3479628.jpeg]

I think this is the reason for different behavior, different versions

P.S. i disabled and enabled 60 frames in the latest version of the program and the encoding call options are the same as in the old version "fps 60000/1001", the Hybrid 2021.12.12.1 worked as Hybrid 2021.07.18.1 and finaled file with the correct bitrate. Maybe the encoding call is incorrectly formed for x264 ? I saved the settings, but after restarting the Hybrid, the encoding call settings are incorrect again
Reply
#8
No clue why the output fps is wrong and since you haven't updated to the latest public release I and created a debug output with that version I can't reproduce this here. It would also help if you write down your filtering&co settings. (no screenshots)

Cu Selur
Reply
#9
(27.01.2022, 06:33)Selur Wrote: No clue why the output fps is wrong and since you haven't updated to the latest public release I and created a debug output with that version I can't reproduce this here. It would also help if you write down your filtering&co settings. (no screenshots)

Cu Selur

I have the latest public version of the Hybrid 2021.12.12.1 (name in the program window 2021.12.10.1) and old version 2021.07.18.1 - version of the program in the screenshots. Both versions work in portable mode.

Last coding with problem demonstration:

Screen recording https://drive.google.com/file/d/1Bu9fKJn...sp=sharing
Debug file https://drive.google.com/file/d/1nl6Y_d0...sp=sharing
Report file https://drive.google.com/file/d/1qQRdcbc...sp=sharing
Reply
#10
will look into it after work
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)