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 > (HD) DVD, Blu-ray & (S)VCD > (HD) DVD & Blu-ray authoring

Reply
 
Thread Tools Search this Thread Display Modes
Old 9th September 2019, 09:44   #1681  |  Link
r0lZ
PgcEdit daemon
 
r0lZ's Avatar
 
Join Date: Jul 2003
Posts: 7,293
Quote:
Originally Posted by Sharc View Post
Anyway, my post was not meant as a feature request. If you should however decide to add NVEnc I would be willing to try it with my Pascal GTX 1050Ti which is - unfortunatley - not the most advanced.
OK, I can admit that a fast encoding can be a good thing, even if the quality is a bit less good. But for me, it will be difficult to check the arguments without the possibility to actually launch the encoding. It's my main concern. But if tebasuna51 or you can help me to build and check a few command lines (corresponding roughly to the different encoding methods of x264), and then test them, I can probably add NVEnc in BD3D2MK3D.

Another method would be to just add the possibility to encode with NVEnc, with just the simpler arguments automatically added (such as the --chapter and --key-on-chapter arguments) and a large text field where the user will have to type the other arguments, related to the encoding mode and quality, under his own responsibility. I can add two buttons to save and load these arguments, so that you can easily define several presets. For me, that will be much easier, as I will have nothing to test, and the user will have to do the hard work without any help. And if some of your presets are really good, I can perhaps add them in the BD3D2MK3D code later, as hardcoded presets for the novice users.
Is it OK for you ?
__________________
r0lZ
PgcEdit homepage (hosted by VideoHelp)
BD3D2MK3D A tool to convert 3D blu-rays to SBS, T&B or FS MKV
r0lZ is offline   Reply With Quote
Old 9th September 2019, 09:46   #1682  |  Link
r0lZ
PgcEdit daemon
 
r0lZ's Avatar
 
Join Date: Jul 2003
Posts: 7,293
Quote:
Originally Posted by tebasuna51 View Post
Work fine for me.

And yes DGMVCSource seems faster than FRIMSource, with the same sample than before:
Thanks for that confirmations.
Quote:
Originally Posted by tebasuna51 View Post
And AVSVersion32/64.exe are from Groucho2004, not from me.
I know that, but you have pointed me to the right direction.
__________________
r0lZ
PgcEdit homepage (hosted by VideoHelp)
BD3D2MK3D A tool to convert 3D blu-rays to SBS, T&B or FS MKV
r0lZ is offline   Reply With Quote
Old 9th September 2019, 10:43   #1683  |  Link
tebasuna51
Moderator
 
tebasuna51's Avatar
 
Join Date: Feb 2005
Location: Spain
Posts: 5,591
Quote:
Originally Posted by r0lZ View Post
...But if tebasuna51 or you can help me to build and check a few command lines (corresponding roughly to the different encoding methods of x264), and then test them, I can probably add NVEnc in BD3D2MK3D.
My cheap (and silent without fan's) GPU, GeForce GT 1030 can decode but not encode, check here the ability of GPU's to do so, but maybe I can do some test with the GTX 1060 of my son.

Make test and change parameters is very easy editing your __ENCODE_3D.cmd file befor launch __ENCODE_3D_LAUNCHER.cmd, it is not necesary add nothing to BD3D2MK3D.
__________________
BeHappy, AviSynth audio transcoder, in Doom9 forums. NicAudio, BassAudio, audio decoders.
tebasuna51 is offline   Reply With Quote
Old 9th September 2019, 12:56   #1684  |  Link
sneaker_ger
Registered User
 
Join Date: Dec 2002
Posts: 5,453
To do it "right" you would need to check for compatible hardware and its features. Features differ not only by hardware but also by codec. (Not that I suggest it must be done "right". Some basic integration with letting the user handle the rest is fine.)
https://github.com/rigaya/NVEnc/blob...--check-device
https://github.com/rigaya/NVEnc/blob...--check-hw-int
https://github.com/rigaya/NVEnc/blob...k-features-int

For me:
Code:
nvencc64 --check-device
DeviceId #0: GeForce GTX 1660 Ti

nvencc64 --check-hw
NVEncC (x64) 4.45 (r1169) by rigaya, Aug 19 2019 11:47:02 (VC 1916/Win/avx2)
  [NVENC API v9.0, CUDA 10.1]
 reader: raw, avi, avs, vpy, avhw [H.264/AVC, H.265/HEVC, MPEG2, VP8, VP9, VC-1,
 MPEG1, MPEG4]
Loaded nvEncodeAPI64.dll.
InitCuda: device #0.

Checking Environment Info...
NVEncC (x64) 4.45 (r1169) by rigaya, Aug 19 2019 11:47:02 (VC 1916/Win/avx2)
OS Version     Windows 7 x64 (7601)
CPU            Intel Core i5-2500K @ 3.30GHz [TB: 3.70GHz] (4C/4T)
GPU            #0: GeForce GTX 1660 Ti (431.60)
NVENC / CUDA   NVENC API 9.0, CUDA 10.1, schedule mode: auto
cuInit: Success.
cuDeviceGetCount: Success.
cuDeviceGet: ID:0.
cuDeviceComputeCapability: Success: 7.5.
NVENC capabilities: OK.
using cuda schedule mode: auto.
cuCtxCreate: Success.
cuCtxPopCurrent: Success.
cuvidInit: Success.
cuvidCtxLockCreate: Success.
InitCuda: Success.
nvEncodeAPICreateInstance(APIVer=0x70020009): Success.
NvEncOpenEncodeSessionEx(device_type=NV_ENC_DEVICE_TYPE_CUDA): Success.
nvEncDestroyEncoder: success.
Closing perf monitor...
Avaliable Codec(s)
H.264/AVC
H.265/HEVC

nvencc64 --check-features
NVEncC (x64) 4.45 (r1169) by rigaya, Aug 19 2019 11:47:02 (VC 1916/Win/avx2)
  [NVENC API v9.0, CUDA 10.1]
 reader: raw, avi, avs, vpy, avhw [H.264/AVC, H.265/HEVC, MPEG2, VP8, VP9, VC-1,
 MPEG1, MPEG4]

Environment Info
OS : Windows 7 x64 (7601)
CPU: Intel Core i5-2500K @ 3.30GHz [TB: 3.70GHz] (4C/4T)
RAM: Used 4099 MB, Total 16337 MB
GPU: #0: GeForce GTX 1660 Ti (1536 cores, 1875 MHz)[PCIe2x16][431.60]

List of available features.
Codec: H.264/AVC
Max Bframes               4
B Ref Mode                yes
RC Modes                  63
Field Encoding            no
MonoChrome                no
FMO                       no
Quater-Pel MV             yes
B Direct Mode             yes
CABAC                     yes
Adaptive Transform        yes
Max Temporal Layers       0
Hierarchial P Frames      no
Hierarchial B Frames      no
Max Level                 51
Min Level                 1
4:4:4                     yes
Max Width                 4096
Max Height                4096
Dynamic Resolution Change yes
Dynamic Bitrate Change    yes
Forced constant QP        yes
Dynamic RC Mode Change    no
Subframe Readback         yes
Constrained Encoding      yes
Intra Refresh             yes
Custom VBV Bufsize        yes
Dynamic Slice Mode        yes
Ref Pic Invalidiation     yes
PreProcess                no
Async Encoding            yes
Max MBs                   65536
Lossless                  yes
SAO                       no
Me Only Mode              yes
Lookahead                 yes
AQ (temporal)             yes
Weighted Prediction       yes
Max LTR Frames            8
10bit depth               no

Codec: H.265/HEVC
Max Bframes               5
B Ref Mode                yes
RC Modes                  63
Field Encoding            no
MonoChrome                no
Quater-Pel MV             yes
B Direct Mode             no
Max Temporal Layers       0
Hierarchial P Frames      no
Hierarchial B Frames      no
Max Level                 62
Min Level                 1
4:4:4                     yes
Max Width                 8192
Max Height                8192
Dynamic Resolution Change yes
Dynamic Bitrate Change    yes
Forced constant QP        yes
Dynamic RC Mode Change    no
Subframe Readback         yes
Constrained Encoding      no
Intra Refresh             yes
Custom VBV Bufsize        yes
Dynamic Slice Mode        yes
Ref Pic Invalidiation     yes
PreProcess                no
Async Encoding            yes
Max MBs                   262144
Lossless                  yes
SAO                       yes
Me Only Mode              yes
Lookahead                 yes
AQ (temporal)             yes
Weighted Prediction       yes
Max LTR Frames            7
10bit depth               yes
sneaker_ger is offline   Reply With Quote
Old 9th September 2019, 13:32   #1685  |  Link
Sharc
Registered User
 
Join Date: May 2006
Posts: 3,477
Quote:
Originally Posted by r0lZ View Post
OK, I can admit that a fast encoding can be a good thing, even if the quality is a bit less good. But for me, it will be difficult to check the arguments without the possibility to actually launch the encoding. It's my main concern. But if tebasuna51 or you can help me to build and check a few command lines (corresponding roughly to the different encoding methods of x264), and then test them, I can probably add NVEnc in BD3D2MK3D.

Another method would be to just add the possibility to encode with NVEnc, with just the simpler arguments automatically added (such as the --chapter and --key-on-chapter arguments) and a large text field where the user will have to type the other arguments, related to the encoding mode and quality, under his own responsibility. I can add two buttons to save and load these arguments, so that you can easily define several presets. For me, that will be much easier, as I will have nothing to test, and the user will have to do the hard work without any help. And if some of your presets are really good, I can perhaps add them in the BD3D2MK3D code later, as hardcoded presets for the novice users.
Is it OK for you ?
Thanks for your goodwill and proposals. It would be certainly OK for me, but unless there is a broader demand don't do anything just for me. I can get along with manual modifications as per tebasuna' hints. I am afraid that you would risk to be flooded with questions from potential users who experience some problems with their HW/GPU or are otherwise dissatisfied. You may not be able to help as you can't replicate the issues with your HW. You may just open a can of worms and you wouldn't do a favour to yourself and to your great software.
Maybe time will tell whether there is a real or broader demand for NVEnc. Thanks again.

Last edited by Sharc; 9th September 2019 at 13:36.
Sharc is offline   Reply With Quote
Old 9th September 2019, 16:06   #1686  |  Link
tebasuna51
Moderator
 
tebasuna51's Avatar
 
Join Date: Feb 2005
Location: Spain
Posts: 5,591
Using my son PC:

Quote:
nvencC64 --check-features
NVEncC (x64) 4.47 (r1188) by rigaya, Sep 1 2019 06:07:40 (VC 1916/Win/avx2)
[NVENC API v9.0, CUDA 10.1]
reader: raw, avi, avs, vpy, avhw [H.264/AVC, H.265/HEVC, MPEG2, VP8, VP9, VC-1, MPEG1, MPEG4]

Environment Info
OS : Windows 10 x64 (18362)
CPU: Intel Core i5-6400 @ 2.70GHz [TB: 3.09GHz] (4C/4T)
RAM: Used 2459 MB, Total 8119 MB
GPU: #0: GeForce GTX 1060 6GB (1280 cores, 1784 MHz)[PCIe3x16][436.15]

List of available features.
Codec: H.264/AVC
Max Bframes 4
B Ref Mode yes
RC Modes 63
...
10bit depth no

Codec: H.265/HEVC
Max Bframes 0
B Ref Mode no
...
10bit depth yes
Encoding the same sample:

Quote:
"NVEncC64.exe" --output-depth 8 --vbrhq 0 --vbr-quality 23 --preset quality --bframes 3 --ref 3 --bref-mode each --lookahead 32 --weightp --aq --direct spatial --sar 1:1 --colormatrix bt709 --chapter chapters_3D_delay.ogm.txt --key-on-chapter --fps 24000/1001 -i "__ENCODE_3D_MOVIE.avs" -o "00009_3D.264"
weighted prediction with B frames unsupported.
NVEncC (x64) 4.47 (r1188) by rigaya, Sep 1 2019 06:07:40 (VC 1916/Win/avx2)
OS Version Windows 10 x64 (18362)
CPU Intel Core i5-6400 @ 2.70GHz [TB: 3.29GHz] (4C/4T)
GPU #0: GeForce GTX 1060 6GB (1280 cores, 1784 MHz)[PCIe3x16][436.15]
NVENC / CUDA NVENC API 9.0, CUDA 10.1, schedule mode: auto
Input Buffers CUDA, 44 frames
Input Info Avisynth+ 2.60(yv12)->nv12 [AVX2], 1920x1080, 24000/1001 fps
Vpp Filters copyHtoD
Output Info H.264/AVC high @ Level auto
1920x1080p 1:1 23.976fps (24000/1001fps)
Encoder Preset quality
Rate Control VBRHQ
Bitrate 0 kbps (Max: 24000 kbps)
Target Quality 23.00
Initial QP I:20 P:23 B:25
VBV buf size auto
Lookahead on, 32 frames, Adaptive I, B Insert
GOP length 240 frames
B frames 3 frames [ref mode: each]
Ref frames 3 frames, LTR: off
AQ on(spatial, strength auto)
Others mv:auto cabac deblock adapt-transform:auto bdirect:spatial
encoded 158712 frames, 71.31 fps, 8429.56 kbps, 6651.93 MB
encode time 0:37:05, CPU: 60.5%, GPU: 5.9%, VE: 24.6%, GPUClock: 1674MHz, VEClock: 1505MHz
frame type IDR 671
frame type I 671, total size 110.00 MB
frame type P 42468, total size 3410.40 MB
frame type B 115573, total size 3131.54 MB

Encoding finished 09/09/2019 15:25:54,18 -> 37:08,76
Of course is fast but not to much with parameters like x264 defaults
(with x264 default weightp is mode 2 and lookahead 40).

But the bitrate obtained is near double, maybe the crf equivalence is not the same number.
__________________
BeHappy, AviSynth audio transcoder, in Doom9 forums. NicAudio, BassAudio, audio decoders.
tebasuna51 is offline   Reply With Quote
Old 9th September 2019, 16:57   #1687  |  Link
Sharc
Registered User
 
Join Date: May 2006
Posts: 3,477
Quote:
Originally Posted by tebasuna51 View Post

Of course is fast but not to much with parameters like x264 defaults
(with x264 default weightp is mode 2 and lookahead 40).

But the bitrate obtained is near double, maybe the crf equivalence is not the same number.
Hmmm, I guess that the encoding speed is probably reduced (halved) by the resizing script (for 3D SBS arrangement).
I think the CRF equivalence is not the same. One has to experiment. How does your NVEncC encode look visually compared with CPU x264?
Sharc is offline   Reply With Quote
Old 11th September 2019, 08:39   #1688  |  Link
r0lZ
PgcEdit daemon
 
r0lZ's Avatar
 
Join Date: Jul 2003
Posts: 7,293
OK, since v1.12beta2 seems to work fine, here is the official release of v1.12.

Nothing has changed, except the version number, the URL to AviSynth+, and a small change in the dialog about the avs2yuv version (to take Avisynth 64-bit into account).
Quote:
v1.12beta2 (September 5, 2019)
- Support for AviSynth+ 32 and 64-bit. It is strongly recommended to install AviSynth+ 64-bit !
- Added the 64-bit version of the AviSynth filters necessary for the conversion to 3D (in toolset\plugins64bit)
- Replaced the old VSFilter 32-bit avisynth plugin with the new and much faster version from the xy-VSFilter Project
- DGMVCSource is now the default MVC decoder again because its 64-bit version is faster than FRIMSource
- Replaced Avs2YUV 0.24 (32-bit) with Avs2YUV 0.24bm2, and added Avs2YUV 64-bit 0.24bm2 (necessary to use AviSynth+ 64-bit with x265 64-bit)
- The Avisynth version is now detected with AVSVersion32/64.exe (Thanks tebasuna51!) and the Help -> Avisynth Version menu has been redesigned.

v1.12 (September 11, 2019)
- Changed the URL to the AviSynth+ download location to https://github.com/pinterf/AviSynthPlus/releases
Download: BD3D2MK3D.7z
__________________
r0lZ
PgcEdit homepage (hosted by VideoHelp)
BD3D2MK3D A tool to convert 3D blu-rays to SBS, T&B or FS MKV
r0lZ is offline   Reply With Quote
Old 11th September 2019, 10:40   #1689  |  Link
tebasuna51
Moderator
 
tebasuna51's Avatar
 
Join Date: Feb 2005
Location: Spain
Posts: 5,591
Thanks r0lZ for the new final version.

About NVEnc I think than advanced users with powerfull GPU's can make tests for fastest encodes, but this thread in not the place to compare encoders.
Also x264/x265 can be tunned with many parameters to obtain more quality or fast encodes at user taste.

@Sharc
I don't see better quality (maybe there are some) with the NVEncC encode at double bitrate, BD3D2MK3D need the avs like this and maybe is not the recommended to compare encoders.

In my test with GTX 1060 6GB (275 € now in Amazon) the GPU usage was 25% and CPU 75%, maybe can be improved. But can't encode to HEVC with B frames (the GTX 1660 Ti from sneaker_ger can do it). I think than we need know the GPU to make the specific command line.

Maybe with a GeForce RTX 2080 Ti FTW3 (1400 €) a user want a return on their investment and use it to encode.
With my GT 1030 (70 €) I need use x264/x265.
__________________
BeHappy, AviSynth audio transcoder, in Doom9 forums. NicAudio, BassAudio, audio decoders.

Last edited by tebasuna51; 11th September 2019 at 11:13. Reason: Add info
tebasuna51 is offline   Reply With Quote
Old 11th September 2019, 11:21   #1690  |  Link
r0lZ
PgcEdit daemon
 
r0lZ's Avatar
 
Join Date: Jul 2003
Posts: 7,293
Quote:
Originally Posted by tebasuna51 View Post
Thanks r0lZ for the new final version.

About NVEnc I think than advanced users with powerfull GPU's can make tests for fastest encodes, but this thread in not the place to compare encoders.
Completely agree. I don't want to spend much time in testing various encoders. It's why I prefer to just add a way for the user to use any other encoder, without limitation. He will be alone for testing it, and I will have nothing to check or debug, except perhaps fix a bug in my code. And this thread will still be devoted to BD3D2MK3D only.

And thanks for the thanks. ;-)
__________________
r0lZ
PgcEdit homepage (hosted by VideoHelp)
BD3D2MK3D A tool to convert 3D blu-rays to SBS, T&B or FS MKV
r0lZ is offline   Reply With Quote
Old 16th September 2019, 11:26   #1691  |  Link
r0lZ
PgcEdit daemon
 
r0lZ's Avatar
 
Join Date: Jul 2003
Posts: 7,293
BD3D2MK3D v1.13

As promised, here is BD3D2MK3D with the possibility to use any encoder, by providing yourself the command line to use. This feature should be used only if you know what you are doing. Novice users should continue to encode with x264 (or x265).

Use this possibility at your own risk. BD3D2MK3D simply copies the command YOU have defined to the encoding script (after having substituted some variables). It is therefore not responsible if something goes wrong. I will NOT provide any help for your custom command lines. If necessary, contact the support of your encoder.

Also, do NOT use this thread to post your custom commands, working or not. If you want to exchange your commands with other peoples, open a new thread, and if necessary, post a link here. Thanks !

Of course, I will fix any bug related to the custom encoder, if it is dependent of my code, but don't expect more.
Quote:
v1.13 (September 16, 2019)
- Added the possibility to encode the 3D movie with any encoder by providing yourself the command line to use.
Download: BD3D2MK3D.7z
__________________
r0lZ
PgcEdit homepage (hosted by VideoHelp)
BD3D2MK3D A tool to convert 3D blu-rays to SBS, T&B or FS MKV
r0lZ 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 13:40.


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