Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.

 

Go Back   Doom9's Forum > Video Encoding > MPEG-4 Encoder GUIs

Closed Thread
 
Thread Tools Search this Thread Display Modes
Old 20th September 2019, 10:14   #901  |  Link
sneaker_ger
Registered User
 
Join Date: Dec 2002
Posts: 5,570
You would increase all of them. (Usually you would keep the factors between them constant.)


P.S.: It seems you cannot select e.g. --vbrhq 0 --vbr-quality <float> in StaxRip. It always sets --vbrhq 7677.
sneaker_ger is offline  
Old 20th September 2019, 10:22   #902  |  Link
JKyle
Registered User
 
Join Date: Sep 2018
Posts: 298
Quote:
Originally Posted by sneaker_ger View Post
P.S.: It seems you cannot select e.g. --vbrhq 0 --vbr-quality <float> in StaxRip. It always sets --vbrhq 7677.
I already brought up that issue, and I guess Stax or Revan has a plan for that in the future.

See this.
JKyle is offline  
Old 20th September 2019, 10:27   #903  |  Link
Patman
Registered User
 
Patman's Avatar
 
Join Date: Jan 2015
Posts: 279
Quote:
I pm'ed Wolfberry but I don't know when he will fix it.
I sent Wolfberry pm too. But no reaction till now.

Quote:
BTW, your version of ffmpeg is very slim compared to the Wolfberry built ffmpeg, which is more than 90MiB in size.
Can you please explain what makes the big difference?
Wolfberry's build have a lot of external libraries included. My version based on zeranoe builds + openal, opencl, opengl, vapoursynth and cuda-nvcc. Final size of my build is about 65 MB. After compiling i compress my files with upx, so the filesizes are like now. You can also see it by the filesize of x264 and x265. Until now, i had no problems with the compressed files during my encodes/decodes.
Patman is offline  
Old 20th September 2019, 10:45   #904  |  Link
stax76
Registered User
 
stax76's Avatar
 
Join Date: Jun 2002
Location: On thin ice
Posts: 6,706
Quote:
Originally Posted by JKyle View Post
I already brought up that issue, and I guess Stax or Revan has a plan for that in the future.

See this.
I've bookmarked it, it looks like there is more than one issue and likely they are not easy to solve.
stax76 is offline  
Old 20th September 2019, 10:59   #905  |  Link
ZeroCool22
Registered User
 
ZeroCool22's Avatar
 
Join Date: Sep 2019
Posts: 20
Quote:
Originally Posted by sneaker_ger View Post
You would increase all of them. (Usually you would keep the factors between them constant.)


P.S.: It seems you cannot select e.g. --vbrhq 0 --vbr-quality <float> in StaxRip. It always sets --vbrhq 7677.
Thank you.

I tried VBR, it's good to get low size, but i notice pixelation in fast movement scenes.

So i just keep with CQP.
ZeroCool22 is offline  
Old 20th September 2019, 20:48   #906  |  Link
JKyle
Registered User
 
Join Date: Sep 2018
Posts: 298
Quote:
Originally Posted by Patman View Post
Wolfberry's build have a lot of external libraries included. My version based on zeranoe builds + openal, opencl, opengl, vapoursynth and cuda-nvcc. Final size of my build is about 65 MB. After compiling i compress my files with upx, so the filesizes are like now. You can also see it by the filesize of x264 and x265. Until now, i had no problems with the compressed files during my encodes/decodes.
Awesome! I'll be using your builds instead of the default Wolfberry builds, and see if I can provide any feedback for you.

Thank you again.
JKyle is offline  
Old 21st September 2019, 10:53   #907  |  Link
Atlantis
Registered User
 
Join Date: Feb 2002
Posts: 518
I encoded an HDR mp4 and it seems the HDR flags are not passed.

This is the original file
Code:
Format                                   : MPEG-4
Format profile                           : Base Media
Codec ID                                 : isom (isom)
File size                                : 724 MiB
Duration                                 : 1 min 23 s
Overall bit rate mode                    : Variable
Overall bit rate                         : 73.1 Mb/s
Encoded date                             : UTC 2016-10-24 05:40:14
Tagged date                              : UTC 2016-10-24 05:40:14

Video
ID                                       : 1
Format                                   : HEVC
Format/Info                              : High Efficiency Video Coding
Format profile                           : Main 10@L5.1@High
HDR format                               : SMPTE ST 2086, HDR10 compatible
Codec ID                                 : hvc1
Codec ID/Info                            : High Efficiency Video Coding
Duration                                 : 1 min 23 s
Bit rate                                 : 72.9 Mb/s
Maximum bit rate                         : 94.2 Mb/s
Width                                    : 3 840 pixels
Height                                   : 2 160 pixels
Display aspect ratio                     : 16:9
Frame rate mode                          : Constant
Frame rate                               : 59.940 (60000/1001) FPS
Color space                              : YUV
Chroma subsampling                       : 4:2:0 (Type 2)
Bit depth                                : 10 bits
Bits/(Pixel*Frame)                       : 0.147
Stream size                              : 722 MiB (100%)
Encoded date                             : UTC 2016-10-24 06:37:11
Tagged date                              : UTC 2016-10-24 05:40:23
Color range                              : Limited
Color primaries                          : BT.2020
Transfer characteristics                 : PQ
Matrix coefficients                      : BT.2020 non-constant
Mastering display color primaries        : R: x=1.000000 y=1.000000, G: x=1.000000 y=1.000000, B: x=1.000000 y=1.000000, White point: x=1.000000 y=1.000000
Mastering display luminance              : min: 0.1000 cd/m2, max: 1 cd/m2
Codec configuration box                  : hvcC
This is what Staxrip 2.0.4 gives
Code:
ormat                                   : Matroska
Format version                           : Version 4
File size                                : 253 MiB
Duration                                 : 1 min 23 s
Overall bit rate                         : 25.5 Mb/s
Encoded date                             : UTC 2019-09-21 09:45:52
Writing application                      : mkvmerge v37.0.0 ('Leave It') 64-bit
Writing library                          : libebml v1.3.9 + libmatroska v1.5.2
Writing frontend                         : StaxRip v2.0.4.0

Video
ID                                       : 1
Format                                   : HEVC
Format/Info                              : High Efficiency Video Coding
Format profile                           : Main 10@L5.1@Main
Codec ID                                 : V_MPEGH/ISO/HEVC
Duration                                 : 1 min 23 s
Bit rate                                 : 25.3 Mb/s
Width                                    : 3 840 pixels
Height                                   : 2 160 pixels
Display aspect ratio                     : 16:9
Frame rate mode                          : Constant
Frame rate                               : 59.940 (60000/1001) FPS
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 10 bits
Bits/(Pixel*Frame)                       : 0.051
Stream size                              : 251 MiB (99%)
Writing library                          : x265 3.1+11-de920e0a3183:[Windows][GCC 9.1.1][64 bit] 10bit
Encoding settings                        : rc=crf / crf=18.0000 / qcomp=0.60 / qpstep=4 / qpmax=69 / qpmin=0 / no-lossless / no-cu-lossless / ipratio=1.40 / pbratio=1.30 / aq-mode=2 / aq-strength=1.00 / psy-rd=2.00 / psy-rdoq=0.00 / rdoq-level=0 / cbqpoffs=0 / crqpoffs=0 / ctu=64 / min-cu-size=8 / ref=3 / limit-refs=1 / no-limit-modes / me=1 / subme=2 / merange=57 / no-hme / rd=3 / no-rd-refine / no-ssim-rd / rdpenalty=0 / deblock=0:0 / min-keyint=25 / keyint=250 / bframes=4 / bframe-bias=0 / b-adapt=2 / b-intra / b-pyramid / cutree / max-merge=3 / no-fades / weightp / no-weightb / no-rect / no-amp / sao / no-limit-sao / no-sao-non-deblock / early-skip / no-splitrd-skip / rskip / no-tskip / no-tskip-fast / no-fast-intra / scenecut=40 / scenecut-bias=0.05 / rc-lookahead=20 / gop-lookahead=0 / lookahead-slices=8 / max-tu-size=32 / tu-inter-depth=1 / tu-intra-depth=1 / limit-tu=0 / qg-size=32 / radl=0 / open-gop / no-hevc-aq / no-aq-motion / no-dynamic-refine / dynamic-rd=0.00 / nr-intra=0 / nr-inter=0 / strong-intra-smoothing / no-constrained-intra / no-strict-cbr / no-const-vbv / no-rc-grain / wpp / no-pmode / no-pme / no-psnr / no-ssim / signhide / stats-write=0 / stats-read=0 / zone-count=0 / input-csp=1 / input-res=3840x2160 / interlace=0 / total-frames=4980 / frame-threads=3 / level-idc=0 / high-tier=1 / uhd-bd=0 / no-analyze-src-pics / no-allow-non-conformance / no-repeat-headers / annexb / no-aud / no-hrd / info / hash=0 / temporal-mvp / no-temporal-layers / no-splice / no-intra-refresh / sar=0 / overscan=0 / videoformat=5 / range=0 / colorprim=9 / transfer=16 / colormatrix=9 / chromaloc=0 / display-window=0cll=0,0 / min-luma=0 / max-luma=1023 / log2-max-poc-lsb=8 / vui-timing-info / vui-hrd-info / slices=1 / no-opt-qp-pps / no-opt-ref-list-length-pps / no-multi-pass-opt-rps / no-opt-cu-delta-qp / no-hdr / no-hdr-opt / no-dhdr10-opt / no-idr-recovery-sei / analysis-reuse-level=5 / scale-factor=0 / refine-intra=0 / refine-inter=0 / refine-mv=0 / refine-ctu-distortion=0 / refine-analysis-type=0 / ctu-info=0 / copy-pic=1 / max-ausize-factor=1.0 / no-single-sei / no-svt / no-field / no-lowpass-dct / cpuid=1111039 / numa-pools=8 / log-level=2 / qp-adaptation-range=1.00
Default                                  : Yes
Forced                                   : No
Color range                              : Limited
Color primaries                          : BT.2020
Transfer characteristics                 : PQ
Matrix coefficients                      : BT.2020 non-constant
Atlantis is offline  
Old 21st September 2019, 11:24   #908  |  Link
Atlantis
Registered User
 
Join Date: Feb 2002
Posts: 518
Here is the original file:
https://uhdsample.com/43-download-so...emo-video.html
Atlantis is offline  
Old 21st September 2019, 12:02   #909  |  Link
NikosD
Registered User
 
Join Date: Aug 2010
Location: Athens, Greece
Posts: 2,901
Quote:
Originally Posted by Patman View Post
Quote:
Originally Posted by Patman View Post
I've updated my builds of MP4Box, x265 and ffmpeg (with dxva2 support). For these who are intresteted.

Builds
@stax76

Hello @Patman.

I replied earlier that ffmpeg DXVA2 worked like a charm and indeed, using my GTX 1660, the performance and CPU usage of ffmpeg DXVA2 was like NVEnc Hardware.

But using my older Haswell system with no discrete card, just the iGPU, both "ffmpeg Intel" and "ffmpeg DXVA2" options inside StaxRip give me very bad results using both versions of ffmpeg (65MB and 20MB)

The ffmpeg Intel option has 25% CPU usage for ffmpeg.exe + 10% CPU usage for QSVEncC = 35% CPU with highest CPU clock and 80% slower FPS than "QSVEnc Hardware" option.

The ffmpeg DXVA2 options has 25% CPU usage for ffmpeg.exe + 25% CPU usage for QSVEncC = 50% CPU with highest clock and 40% slower FPS than QSVEnc Hardware option

I think both ffmpeg Intel and DXVA2 use DXVA2 copy-back mode instead of DXVA2 native and that could be the reason of very high CPU usage and slow FPS performance.

QSVEnc Hardware has lowest CPU clock during encoding and very low total CPU usage ~8% which is normal for DXVA2 native mode, along with highest FPS performance of course.

@Patman

Could you check if there is an option during compilation of ffmpeg for Intel hardware decoding regarding DXVA2 mode ?

Thanks!
__________________
Win 10 x64 (19042.572) - Core i5-2400 - Radeon RX 470 (20.10.1)
HEVC decoding benchmarks
H.264 DXVA Benchmarks for all
NikosD is offline  
Old 21st September 2019, 20:10   #910  |  Link
JKyle
Registered User
 
Join Date: Sep 2018
Posts: 298
Quote:
Originally Posted by Atlantis View Post
I encoded an HDR mp4 and it seems the HDR flags are not passed.
AFAIK, the default x265 encoder included with 2.0.4 is Wolfberry's build and it's already reported to rearrange the order of 'Encoding Settings' metadata in the video stream.

See here.

My guess is that the HDR flags are missing in the course of tweaking the metadata.

Why don't you try Patman's x265 and see if the same problem occurs?

See here.
JKyle is offline  
Old 21st September 2019, 20:15   #911  |  Link
JKyle
Registered User
 
Join Date: Sep 2018
Posts: 298
Maybe rigaya is in full gear these days.
It's only three days since he released 4.49 but today he released 4.50 again.
JKyle is offline  
Old 21st September 2019, 22:21   #912  |  Link
Atlantis
Registered User
 
Join Date: Feb 2002
Posts: 518
I like the order of the new stuff
rc=crf / crf=17.0000 / qcomp=0.60 / qpstep=4 / vbv-maxrate=160000 / vbv-bufsize=160000 / vbv-init=0.9 / ...

CRF at the beginning is great because it's the most important parameter that you might want to check and now I can see it at the beginning. I remember it was like this once before too.
Maybe it was Staxrip 2.0.2 or some other previous version.
Atlantis is offline  
Old 21st September 2019, 23:39   #913  |  Link
JKyle
Registered User
 
Join Date: Sep 2018
Posts: 298
Quote:
Originally Posted by Patman View Post
Hi @ all,

I've updated my builds of MP4Box, x265 and ffmpeg (with dxva2 support). For these who are intresteted.

Builds
Unfortunately, your build of MP4Box seems to generate the same unnecessary 'Title' metadata for the final video stream.



Now I highly suspect that it is an issue inherent in the MP4Box source.
JKyle is offline  
Old 21st September 2019, 23:44   #914  |  Link
JKyle
Registered User
 
Join Date: Sep 2018
Posts: 298
Quote:
Originally Posted by Atlantis View Post
I like the order of the new stuff
rc=crf / crf=17.0000 / qcomp=0.60 / qpstep=4 / vbv-maxrate=160000 / vbv-bufsize=160000 / vbv-init=0.9 / ...

CRF at the beginning is great because it's the most important parameter that you might want to check and now I can see it at the beginning. I remember it was like this once before too.
Maybe it was Staxrip 2.0.2 or some other previous version.
I agree. As long as it does not make any mess or omission in the metadata, of course.
JKyle is offline  
Old 22nd September 2019, 12:09   #915  |  Link
Patman
Registered User
 
Patman's Avatar
 
Join Date: Jan 2015
Posts: 279
Quote:
Originally Posted by JKyle View Post
Unfortunately, your build of MP4Box seems to generate the same unnecessary 'Title' metadata for the final video stream.



Now I highly suspect that it is an issue inherent in the MP4Box source.
Hi JKyle,
that issue is related to mp4box. It's standard if no Tracktitle is set. I've run the mux process in command line with the parameter 'name:00009' after videoinput file and these is written to the title info.



The container options for MP4Box must be adapted like those for mkv and webm.

Last edited by Patman; 22nd September 2019 at 13:09.
Patman is offline  
Old 22nd September 2019, 14:55   #916  |  Link
imhh11
Registered User
 
Join Date: Jul 2016
Posts: 165
Quote:
Originally Posted by Atlantis View Post
I encoded an HDR mp4 and it seems the HDR flags are not passed.

This is the original file
probably because your HDR10 source got incomplete/incorrect metadata.

never seen metadata like this on any of the HDR10 file I have.

Mastering display color primaries : R: x=1.000000 y=1.000000, G: x=1.000000 y=1.000000, B: x=1.000000 y=1.000000, White point: x=1.000000 y=1.000000
Mastering display luminance : min: 0.1000 cd/m2, max: 1 cd/m2

you file should still trigger HDR10 since PQ is still there (--transfer smpte2084)

Last edited by imhh11; 22nd September 2019 at 14:57.
imhh11 is offline  
Old 22nd September 2019, 16:35   #917  |  Link
-QfG-
QfG Group Germany
 
-QfG-'s Avatar
 
Join Date: Oct 2018
Location: Germany
Posts: 67
Quote:
Originally Posted by Atlantis View Post
Enter this Line in your CUSTOM Section, for Display P3 D65 HDR10:

Code:
--hdr --output-depth 10 --hdr-opt --max-cll "1000,400" --master-display "G(13250,34500)B(7500,3000)R(34000,16000)WP(15635,16450)L(10000000,1)"
EDIT:
--max-cll "1000,400"
L(10000000,1)

You can see this values with "MediaInfo" from your source file.

With my little HDR Parser tool u must use this settings:


Code:
--hdr --output-depth 10 --hdr-opt --master-display "G(50000,50000)B(50000,50000)R(50000,50000)WP(50000,50000)L(5000,1000)"
__________________
AMD Ryzen 9 3950x / Gigabyte Aorus Master X570 / 32 GB G.Skill F4 3200C16-16GVK / ASUS STRIX GeForce GTX1070 8GB GDDR5

Last edited by -QfG-; 22nd September 2019 at 16:59.
-QfG- is offline  
Old 22nd September 2019, 16:47   #918  |  Link
sneaker_ger
Registered User
 
Join Date: Dec 2002
Posts: 5,570
He can't see these exact values for his speficic source file because like imhh11 said this file's ("Sony Bravia OLED 4K Demo.mp4") mastering display color primaries and luminance metadata values are bogus. (Though this does not yet explain why StaxRip didn't transfer the metadata to the output.)
sneaker_ger is offline  
Old 22nd September 2019, 17:04   #919  |  Link
-QfG-
QfG Group Germany
 
-QfG-'s Avatar
 
Join Date: Oct 2018
Location: Germany
Posts: 67
Problem with the filename (the tool is in beta). Renaming and working, correct values now in the post.
__________________
AMD Ryzen 9 3950x / Gigabyte Aorus Master X570 / 32 GB G.Skill F4 3200C16-16GVK / ASUS STRIX GeForce GTX1070 8GB GDDR5
-QfG- is offline  
Old 22nd September 2019, 18:10   #920  |  Link
Atlantis
Registered User
 
Join Date: Feb 2002
Posts: 518
Quote:
Originally Posted by imhh11 View Post
you file should still trigger HDR10 since PQ is still there (--transfer smpte2084)
Yes it does trigger the HDR in players. I just don't see it in MediaInfo.
I need it to be recognized as HDR in MediaInfo. For easy checking and organization of my files on PC.
Atlantis is offline  
Closed Thread

Tags
aac, hdr, hevc, nvenc, staxrip, x264, x265

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 08:22.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2021, vBulletin Solutions Inc.