[SOLVED] Demux Support & CLI

Support forum for DGDecNV
DAE avatar
Zathor
Posts: 94
Joined: Sun Nov 28, 2010 5:06 am

Re: [SOLVED] Demux Support & CLI

Post by Zathor »

Thank you very much! Sadly I cannot test this anymore today but based on your message this seems to be the solution :)

Only small question:

Code: Select all

4352: H:\GRAVE OF THE FIREFLIES\BDMV\STREAM\00004 PID 1100 L+R 48 1536 eng DELAY 0ms.dts
Why is it 4352 and not 1100? And yes, I know that 1100 Hex is 4352 Dec 8-)
So the "track number" is always written in Dec? No need to have it changed I only want to understand it.
User avatar
admin
Posts: 4551
Joined: Thu Sep 09, 2010 3:08 pm

Re: [SOLVED] Demux Support & CLI

Post by admin »

I can write it as hex if you prefer. The printed number base is completely arbitrary.
User avatar
admin
Posts: 4551
Joined: Thu Sep 09, 2010 3:08 pm

Re: [SOLVED] Demux Support & CLI

Post by admin »

I looked at MediaInfo. It shows decimal with hex in parentheses. I'll stick with decimal unless you have a good reason not to.
DAE avatar
Zathor
Posts: 94
Joined: Sun Nov 28, 2010 5:06 am

Re: [SOLVED] Demux Support & CLI

Post by Zathor »

Decimal is fine. I only wanted to know if it is always decimal so that I can convert if needed.
User avatar
admin
Posts: 4551
Joined: Thu Sep 09, 2010 3:08 pm

Re: [SOLVED] Demux Support & CLI

Post by admin »

Yes, it will always be decimal.
DAE avatar
Zathor
Posts: 94
Joined: Sun Nov 28, 2010 5:06 am

Re: [SOLVED] Demux Support & CLI

Post by Zathor »

Some observations while testing around with your "zathor"/138 build ;)
Btw all tests have been successful, I will release the new version soon. :hat:

- if I try to open a AVI file nothing happens (yes, this file type cannot be opened but when I open other file types I get something like "could not find a supported video track (need AVC/MPEG2/VC1/HEVC)". MediaInfo of that (old) file:

Code: Select all

General
Complete name                            : D:\MeGUI\_SAMPLE_FILES\test.avi
Format                                   : AVI
Format/Info                              : Audio Video Interleave
File size                                : 700 MiB
Duration                                 : 1 h 45 min
Overall bit rate mode                    : Variable
Overall bit rate                         : 928 kb/s
Writing application                      : VirtualDubMod 1.5.10.2 (build 2540/release)
Writing library                          : VirtualDubMod build 2540/release

Video
ID                                       : 0
Format                                   : MPEG-4 Visual
Format profile                           : Advanced Simple@L5
Format settings                          : BVOP2
Format settings, BVOP                    : 2
Format settings, QPel                    : No
Format settings, GMC                     : No warppoints
Format settings, Matrix                  : Default (H.263)
Codec ID                                 : XVID
Codec ID/Hint                            : XviD
Duration                                 : 1 h 45 min
Bit rate                                 : 793 kb/s
Width                                    : 608 pixels
Height                                   : 304 pixels
Display aspect ratio                     : 2.000
Frame rate                               : 25.000 FPS
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 8 bits
Scan type                                : Progressive
Compression mode                         : Lossy
Bits/(Pixel*Frame)                       : 0.172
Stream size                              : 598 MiB (85%)
Writing library                          : XviD 1.1.2 (UTC 2006-11-01)

Audio
ID                                       : 1
Format                                   : MPEG Audio
Format version                           : Version 1
Format profile                           : Layer 3
Format settings                          : Joint stereo / MS Stereo
Codec ID                                 : 55
Codec ID/Hint                            : MP3
Duration                                 : 1 h 45 min
Bit rate mode                            : Variable
Bit rate                                 : 122 kb/s
Nominal bit rate                         : 128 kb/s
Channel(s)                               : 2 channels
Sampling rate                            : 48.0 kHz
Frame rate                               : 41.667 FPS (1152 SPF)
Compression mode                         : Lossy
Stream size                              : 91.8 MiB (13%)
Alignment                                : Aligned on interleaves
Interleave, duration                     : 24  ms (0.60 video frame)
Interleave, preload duration             : 499  ms
Writing library                          : LAME3.90.
Encoding settings                        : -m j -V 4 -q 2 -lowpass 17.6 --abr 128
- in the file open dialogue the HEVC formats are missing but that may be because my GPU does not support them.

- is there a way how to detect if the GPU is able to decode HEVC? If possible I would love to have a special CLI switch based on which there will be a response which I can then use in MeGUI. Reason is that I would like to enable HEVC if the GPU supports it. Even better would be to also detect if a supported GPU is installed at all.
So something like "dgindexnv.exe -gpu" returns 1 (process exit code) if the GPU is not supported at all, 2 if is supports all except HEVC, 3 if it supports everything.
User avatar
admin
Posts: 4551
Joined: Thu Sep 09, 2010 3:08 pm

Re: [SOLVED] Demux Support & CLI

Post by admin »

Zathor wrote:
Fri Mar 30, 2018 8:43 am
Btw all tests have been successful, I will release the new version soon.
Cool, thanks.
- if I try to open a AVI file nothing happens (yes, this file type cannot be opened but when I open other file types I get something like "could not find a supported video track (need AVC/MPEG2/VC1/HEVC)".
The difference is that for the other files the container type is supported, while AVI is not. I don't think it's worth doing anything.
- in the file open dialogue the HEVC formats are missing but that may be because my GPU does not support them.
No, they are just missing. Will add them.
- is there a way how to detect if the GPU is able to decode HEVC? If possible I would love to have a special CLI switch based on which there will be a response which I can then use in MeGUI. Reason is that I would like to enable HEVC if the GPU supports it. Even better would be to also detect if a supported GPU is installed at all.
So something like "dgindexnv.exe -gpu" returns 1 (process exit code) if the GPU is not supported at all, 2 if is supports all except HEVC, 3 if it supports everything.
OK, will see what I can do. No guarantees because the checking for HEVC support is not easy without opening a file and trying to create the decoder.
DAE avatar
Zathor
Posts: 94
Joined: Sun Nov 28, 2010 5:06 am

Re: [SOLVED] Demux Support & CLI

Post by Zathor »

admin wrote:
Fri Mar 30, 2018 9:09 am
OK, will see what I can do. No guarantees because the checking for HEVC support is not easy without opening a file and trying to create the decoder.
Do not spend too much time into it. It os not worth too much effort. In worst case I can add an option to MeGUI where a user can enable the HEVC support.

Sadly I found during my final implementation test one remaining change I would like to request.

With this command line:
""D:\MeGUI\MeGUI_dgindexnv\bin\x86\Debug\tools\dgindexnv\dgindexnv.exe" -i "D:\MeGUI\00072.m2ts" -o "D:\MeGUI\f4aekuby.jmz\00073.dgi" -h -a
This log is created:
D:\MeGUI\00072.log
While I would have expected this:
D:\MeGUI\f4aekuby.jmz\00073.log

Could you please change it that it is written in the project / dgi file path with dgi / project name? EDIT: Or in other words - use -o instead of -i to define the log path & name.
Especially the path is important as e.g. with Blu-rays or other readonly media it will be impossible to write to the source file folder.

Thank you very much again and I am sorry for all these requests :-(
User avatar
admin
Posts: 4551
Joined: Thu Sep 09, 2010 3:08 pm

Re: [SOLVED] Demux Support & CLI

Post by admin »

OK, makes a lot of sense. I'll slip it when I get back from swimming. Check back in about 4-5 hours.
DAE avatar
Zathor
Posts: 94
Joined: Sun Nov 28, 2010 5:06 am

Re: [SOLVED] Demux Support & CLI

Post by Zathor »

Thanks, but please take your time. I will already be sleeping when you are back and tomorrow likely I do not have any time so before Monday it will be hard for me to do the final check.
User avatar
admin
Posts: 4551
Joined: Thu Sep 09, 2010 3:08 pm

Re: [SOLVED] Demux Support & CLI

Post by admin »

Thanks for the heads-up and enjoy your weekend!
User avatar
admin
Posts: 4551
Joined: Thu Sep 09, 2010 3:08 pm

Re: [SOLVED] Demux Support & CLI

Post by admin »

Slipstream 140 is released with the requested change. Thanks for your help to
improve MEGUI integration with DGDecNV.
DAE avatar
Zathor
Posts: 94
Joined: Sun Nov 28, 2010 5:06 am

Re: [SOLVED] Demux Support & CLI

Post by Zathor »

Thank you very much!

I have just commited version 2832 with the changes for the new DGDecNV build. I also prepared everything for an updated DGDecIM (with a fallback if the files are not found in the log). :)
User avatar
admin
Posts: 4551
Joined: Thu Sep 09, 2010 3:08 pm

Re: [SOLVED] Demux Support & CLI

Post by admin »

Thanks, Zathor!

I'll get working on DGDecIM.
DAE avatar
Zathor
Posts: 94
Joined: Sun Nov 28, 2010 5:06 am

Re: [SOLVED] Demux Support & CLI

Post by Zathor »

Take your time, everything is prepared in MeGUI. As soon as the logs also appear for DGDecIM they will be used.
User avatar
admin
Posts: 4551
Joined: Thu Sep 09, 2010 3:08 pm

Re: [SOLVED] Demux Support & CLI

Post by admin »

Crap, it's still broken, but on my side. Working on it...
User avatar
admin
Posts: 4551
Joined: Thu Sep 09, 2010 3:08 pm

Re: [SOLVED] Demux Support & CLI

Post by admin »

Slipstreamed 141 to fix it.
Post Reply