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 > High Efficiency Video Coding (HEVC)

Reply
 
Thread Tools Search this Thread Display Modes
Old 4th March 2019, 17:23   #21  |  Link
Jamaika
Registered User
 
Join Date: Jul 2015
Posts: 532
Where is color format in SvtHevcEncApp.exe?
Code:
TOKEN                           DESCRIPTION                     INPUT TYPE

-nch                            NumberOfChannels                Single input
-i                              InputFile                       Single input
-b                              StreamFile                      Single input
-errlog                         ErrorFile                       Single input
-o                              ReconFile                       Single input
-qp-file                        QpFile                          Single input
-interlaced-video               InterlacedVideo                 Single input
-separate-fields                SeperateFields                  Single input
-w                              SourceWidth                     Single input
-h                              SourceHeight                    Single input
-n                              FrameToBeEncoded                Single input
-nb                             BufferedInput                   Single input
-base-layer-switch-mode         BaseLayerSwitchMode             Single input
-encMode                        EncoderMode                     Single input
-intra-period                   IntraPeriod                     Single input
-irefresh-type                  IntraRefreshType                Single input
-fps                            FrameRate                       Single input
-fps-num                        FrameRateNumerator              Single input
-fps-denom                      FrameRateDenominator            Single input
-bit-depth                      EncoderBitDepth                 Single input
-compressed-ten-bit-format      CompressedTenBitFormat          Single input
-hierarchical-levels            HierarchicalLevels              Single input
-pred-struct                    PredStructure                   Single input
-scd                            SceneChangeDetection            Single input
-q                              QP                              Single input
-use-q-file                     UseQpFile                       Single input
-rc                             RateControlMode                 Single input
-lad                            LookAheadDistance               Single input
-tbr                            TargetBitRate                   Single input
-max-qp                         MaxQpAllowed                    Single input
-min-qp                         MinQpAllowed                    Single input
-dlf                            LoopFilterDisable               Single input
-sao                            SAO                             Single input
-use-default-me-hme             UseDefaultMeHme                 Single input
-hme                            HME                             Single input
-search-w                       SearchAreaWidth                 Single input
-search-h                       SearchAreaHeight                Single input
-constrd-intra                  ConstrainedIntra                Single input
-tune                           Tune                            Single input
-lp                             LogicalProcessors               Single input
-ss                             TargetSocket                    Single input
-rt                             SwitchThreadsToRtPriority       Single input
-brr                            BitRateReduction                Single input
-sharp                          ImproveSharpness                Single input
-vid-info                       VideoUsabilityInfo              Single input
-hdr                            HighDynamicRangeInput           Single input
-ua-delm                        AccessUnitDelimiter             Single input
-pbuff                          BufferingPeriod                 Single input
-tpic                           PictureTiming                   Single input
-reg-user-data                  RegisteredUserData              Single input
-unreg-user-data                UnregisteredUserData            Single input
-recovery-point                 RecoveryPoint                   Single input
-max-cll                        MaxCLL                          Single input
-max-fall                       MaxFALL                         Single input
-use-master-display             UseMasterDisplay                Single input
-master-display                 MasterDisplay                   Single input
-dolby-vision-profile           DolbyVisionProfile              Single input
-dolby-vision-rpu               DolbyVisionRpuFile              Single input
-nalu-file                      NaluFile                        Single input
-temporal-id                    TemporalId                      Single input
-fpsinvps                       FPSInVPS                        Single input
-inj                            Injector                        Single input
-inj-frm-rt                     InjectorFrameRate               Single input
-speed-ctrl                     SpeedControlFlag                Single input
-profile                        Profile                         Single input
-tier                           Tier                            Single input
-level                          Level                           Single input
-latency-mode                   LatencyMode                     Single input
-asm                            AsmType                         Single input
What are we framerate by -fps-denom 1001 -fps-num 30000?
Code:
Video
ID                                       : 1
Format                                   : HEVC
Format/Info                              : High Efficiency Video Coding
Format profile                           : Main@L3.1@Main
Codec ID                                 : hvc1
Codec ID/Info                            : High Efficiency Video Coding
Duration                                 : 2 s 880 ms
Bit rate                                 : 1 909 kb/s
Maximum bit rate                         : 2 543 kb/s
Width                                    : 1 280 pixels
Height                                   : 720 pixels
Display aspect ratio                     : 16:9
Frame rate mode                          : Constant
Frame rate                               : 25.000 FPS
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 8 bits
Bits/(Pixel*Frame)                       : 0.083
Stream size                              : 671 KiB (100%)
Title                                    : h265@GPAC0.7.2-DEV-rev991-gac74c900-master
Encoded date                             : UTC 2019-03-04 16:16:40
Tagged date                              : UTC 2019-03-04 16:16:40
Codec configuration box                  : hvcC
The color format doesn't work. After removing the command, I have it.
Jamaika is offline   Reply With Quote
Old 4th March 2019, 19:34   #22  |  Link
filler56789
SuperVirus
 
filler56789's Avatar
 
Join Date: Jun 2012
Location: Antarctic Japan
Posts: 831
Quote:
Originally Posted by Jamaika View Post
.........

The color format doesn't work. After removing the command, I have it.
I can be wrong, but it seems this type of problem is "inevitable" when the current source-code is compiled for Windows with GCC:

https://github.com/intel/SVT-HEVC/is...ment-468867836
filler56789 is offline   Reply With Quote
Old 4th March 2019, 20:10   #23  |  Link
Jamaika
Registered User
 
Join Date: Jul 2015
Posts: 532
Quote:
Originally Posted by filler56789 View Post
I can be wrong, but it seems this type of problem is "inevitable" when the current source-code is compiled for Windows with GCC:

https://github.com/intel/SVT-HEVC/is...ment-468867836
It isn't true that GCC is guilty.
I've compiled svt encoder myself. Strange, for BPG libsvt works, in encoder svt doesn't want to.
Jamaika is offline   Reply With Quote
Old 4th March 2019, 20:26   #24  |  Link
filler56789
SuperVirus
 
filler56789's Avatar
 
Join Date: Jun 2012
Location: Antarctic Japan
Posts: 831
Quote:
Originally Posted by Jamaika View Post
It isn't true that GCC is guilty.
I've compiled svt encoder myself. Strange, for BPG libsvt works, in encoder svt doesn't want to.
I DIDN'T say it's GCC's fault, I said and meant the current source-code is messy :-/
filler56789 is offline   Reply With Quote
Old 5th March 2019, 04:57   #25  |  Link
HolyWu
Registered User
 
HolyWu's Avatar
 
Join Date: Aug 2006
Location: Taiwan
Posts: 535
Quote:
Originally Posted by Jamaika View Post
Where is color format in SvtHevcEncApp.exe?
Well, it's add in https://github.com/intel/SVT-HEVC/co...8b2223dd8cb219 after v1.3.0 release.

Quote:
Originally Posted by Jamaika View Post
What are we framerate by -fps-denom 1001 -fps-num 30000?
Not sure if affected by https://github.com/intel/SVT-HEVC/co...3b3c3a6b09d9ab or https://github.com/intel/SVT-HEVC/co...a49d3a20e37973, also after v1.3.0 release.

SvtHevcEncApp -i test8bit.yuv -b test8bit.hevc -w 1920 -h 1080 -fps-num 30000 -fps-denom 1001 -tune 0 -vid-info 1 -fpsinvps 1
Code:
Video
Format                      : HEVC
Format/Info                 : High Efficiency Video Coding
Format profile              : Main 10@L4@Main
Width                       : 1 920 pixels
Height                      : 1 080 pixels
Display aspect ratio        : 16:9
Frame rate                  : 29.970 (30000/1001) FPS
Color space                 : YUV
Chroma subsampling          : 4:2:0
Bit depth                   : 8 bits
Quote:
Originally Posted by filler56789 View Post
I can be wrong, but it seems this type of problem is "inevitable" when the current source-code is compiled for Windows with GCC:
https://github.com/intel/SVT-HEVC/is...ment-468867836
The culprit should be https://github.com/intel/SVT-HEVC/is...ment-468674642. Hence I just delete my shared file since I find that YUV420P8 is also affected, and decide not to fiddle with this mess at the moment.
HolyWu is offline   Reply With Quote
Old 5th March 2019, 08:01   #26  |  Link
Jamaika
Registered User
 
Join Date: Jul 2015
Posts: 532
I will not clutter up the topic. I'll wait for the corrections. In general, I have a hard time compiling the App with GCC. GCC enforces static headers in the APP otherwise the information is duplicated with libsvt.

Last edited by Jamaika; 5th March 2019 at 14:08.
Jamaika is offline   Reply With Quote
Old 5th March 2019, 08:54   #27  |  Link
dipje
Registered User
 
Join Date: Oct 2014
Posts: 267
AFAIK the svt encoder only supports a few specific input formats :

https://github.com/intel/SVT-HEVC/bl...t-video-format

Svt encodes to raw hevc streams on my system, so I have to mux it and set framerate there.
The fps parameters on the cli are (I guess ) only to specify framerate of the input for things like calculating bits per second (so it needs to know how many frames in a second ).

I don't know, but do raw elementary hevc streams even have a fps field somewhere ?
dipje is offline   Reply With Quote
Old 5th March 2019, 10:06   #28  |  Link
sneaker_ger
Registered User
 
Join Date: Dec 2002
Posts: 5,267
AVC and HEVC have vui_num_units_in_tick and vui_time_scale.
sneaker_ger is offline   Reply With Quote
Old 5th March 2019, 14:14   #29  |  Link
Jamaika
Registered User
 
Join Date: Jul 2015
Posts: 532
Quote:
Originally Posted by Atak_Snajpera View Post
Can somebody test how this SVT-HEVC survives famous park_joy_1080p50.y4m ?
My test codec by encoder BPG SVT.
At the moment the only way I could use.
yuv420p->RGB24->yuv420p
SvtHevcEncApp1.exe -i park_joy_1080p50.y4m -w 1920 -h 1080 -vid-info 1 -fpsinvps 1 -rt 0 -lp 0 -ss -1 -dolby-vision-rpu 0 -tune 2 -profile 1 -tier 0 -hme 1 -sao 0 -dlf 1 -brr 1 -bit-depth 8 -fps 50 -asm 0 -encMode 9 -tbr 70000 -compressed-ten-bit-format 0 -max-qp 48 -min-qp 10 -use-default-me-hme 1 -search-w 16 -search-h 7 -n 0 -q 30 -dolby-vision-profile 0 -max-cll 0 -max-fall 0 -use-master-display 0 -inj-frm-rt 60 -temporal-id 1 -sharp 1 -lad 17 -scd 1 -interlaced-video 0 -color-format 1 -base-layer-switch-mode 0 -pred-struct 0 -irefresh-type 2 -intra-period -2 -hierarchical-levels 3 -b park_joy_1080p50_QP30_tune2_hier3_base0_pred0.h265

https://www.sendspace.com/file/yf2ht7
Conclusion:
We don't use option PredStructure greater than zero. Tune 2 it's VMAF.
Jamaika is offline   Reply With Quote
Old 5th March 2019, 16:17   #30  |  Link
Atak_Snajpera
RipBot264 author
 
Atak_Snajpera's Avatar
 
Join Date: May 2006
Location: Poland
Posts: 6,773
Quote:
Originally Posted by Jamaika View Post
My test codec by encoder BPG SVT.
At the moment the only way I could use.
yuv420p->RGB24->yuv420p
SvtHevcEncApp1.exe -i park_joy_1080p50.y4m -w 1920 -h 1080 -vid-info 1 -fpsinvps 1 -rt 0 -lp 0 -ss -1 -dolby-vision-rpu 0 -tune 2 -profile 1 -tier 0 -hme 1 -sao 0 -dlf 1 -brr 1 -bit-depth 8 -fps 50 -asm 0 -encMode 9 -tbr 70000 -compressed-ten-bit-format 0 -max-qp 48 -min-qp 10 -use-default-me-hme 1 -search-w 16 -search-h 7 -n 0 -q 30 -dolby-vision-profile 0 -max-cll 0 -max-fall 0 -use-master-display 0 -inj-frm-rt 60 -temporal-id 1 -sharp 1 -lad 17 -scd 1 -interlaced-video 0 -color-format 1 -base-layer-switch-mode 0 -pred-struct 0 -irefresh-type 2 -intra-period -2 -hierarchical-levels 3 -b park_joy_1080p50_QP30_tune2_hier3_base0_pred0.h265

https://www.sendspace.com/file/yf2ht7
Conclusion:
We don't use option PredStructure greater than zero. Tune 2 it's VMAF.
Well I was expecting something around 5Mbps not those insane 30Mbps. At such high bitrate even x264 shines.
Atak_Snajpera is offline   Reply With Quote
Old 5th March 2019, 19:01   #31  |  Link
Jamaika
Registered User
 
Join Date: Jul 2015
Posts: 532
For grumpy here they are:
https://www.sendspace.com/filegroup/...GMHiESUyp2aEtw
Jamaika is offline   Reply With Quote
Old 5th March 2019, 19:21   #32  |  Link
Atak_Snajpera
RipBot264 author
 
Atak_Snajpera's Avatar
 
Join Date: May 2006
Location: Poland
Posts: 6,773
Quote:
Originally Posted by Jamaika View Post
Pathetic quality! x264 destroys this HEVC encoder easily!
https://www.mediafire.com/file/dmbhg...ormal.mkv/file

Last edited by Atak_Snajpera; 5th March 2019 at 19:28.
Atak_Snajpera is offline   Reply With Quote
Old 5th March 2019, 19:42   #33  |  Link
Jamaika
Registered User
 
Join Date: Jul 2015
Posts: 532
I don't comment on it. I am proud that I could compile myself and show off my waste of time. I will leave the rest to the professionals.
Jamaika is offline   Reply With Quote
Reply

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 15:58.


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