Log in

View Full Version : DGAVCDecNV 1.0.13: GPU decoding on Nvidia


Pages : 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 [19] 20 21 22 23 24 25 26 27

rica
26th January 2009, 00:32
Awaiting, thanks.

Guest
27th January 2009, 02:00
OK, the MKV test version is back on the road:

http://neuron2.net/dgavcdecnv/dgavcdecnv1011test.zip

Please provide test streams with your problem reports.

I added some pop-up messages to notify you of possible problem conditions. Please let me know if you see any of them.

xopowo
27th January 2009, 02:53
What is it about the server that bugs you?


When I load my avs script into vdubmod (I have to have to server running). Say I make frame cuts, then close the file and then reopen it to have it open honoring the cuts. CUVIDServer will keep frames in memory.. So, if there was a video frame (non-black) in memory, than if I start to encode from there, that frame, even if not included with the cuts that I made; will be part of the final encode. Don't know why it does that, but it does it every time.

The only way around this that I know of is to make cuts in vdubmod, close the app, close cuvidserver, reopen the server, then vdubmod, load the avs and then it's good. I don't know if this is happening to anyone else, but it happens to me everytime.

Guest
27th January 2009, 03:17
Say I make frame cuts, then close the file and then reopen it to have it open honoring the cuts. I don't use VirtualDubMod so I ask this: Why do you have to close and re-open the file? How do you close it?

When you exit VDM, the filter gets deinstantiated, which should clear the CUVID server. I don't know what happens if you just do File/Close video file. If VDM doesn't deinstantiate the source filter, then there can be trouble.

Guest
27th January 2009, 05:30
I've updated the Nvidia Development dialog to cover the period of the VC1 development and the ongoing MKV support.

http://neuron2.net/dgavcdecnv/cuda/cuda.html

The updated material starts here:

http://neuron2.net/dgavcdecnv/cuda/cuda.html#update

xopowo
27th January 2009, 07:44
I don't use VirtualDubMod so I ask this: Why do you have to close and re-open the file? How do you close it?

When you exit VDM, the filter gets deinstantiated, which should clear the CUVID server. I don't know what happens if you just do File/Close video file. If VDM doesn't deinstantiate the source filter, then there can be trouble.


Perhaps "cuts" wasn't the best way in which to describe it. When I make trims would be more appropriate. Then, when the trims are saved into the avs file, then I re-open the file so that the script will load with the applicable trims. When this happens, if there was a video frame that was viewed with the server running, then even though I load the script again with the appropriate trims, that video frame is stuck in memory somehow and it will actually encode into the video even if that particular frame is outside of the boundary of the trims that were specified.

Does that perhaps explain it better? It makes sense to me, but that obviously does nobody but myself any good.

**edit** If I hit file/close, or just re-open the avs with the trims in it, or if I physically close the application and re-launch it ... this particular anomoly happens each time. I 'have' to exit the cuvid server and relaunch it to clear any frames that it may have in memory.

Guest
27th January 2009, 07:49
I guess you are using the AVS script editor?

You should tell me exactly what menu items you select, etc., as I am not a user of that and when you say "I re-open the file" that means nothing to me because I don't know what you are actually doing in the program to make that happen.

I also don't know how VDM refreshed the AVS script and whether it deinstantiates the filter. If it isn't deinstantiating it to reload the script then it won't work. I'm willing to work to make third party apps work right with the server, but VDM is abandoned for a long time.

Guest
27th January 2009, 07:51
Do you happen to have the CUVID deinterlacer enabled?

Sharc
27th January 2009, 20:29
...... I added some pop-up messages to notify you of possible problem conditions. Please let me know if you see any of them.
Spares cues in this Matroska file. Seeking may be slow.

Guest
27th January 2009, 21:36
And is seeking slow?

rica
27th January 2009, 21:46
I get this:

http://img338.imageshack.us/img338/6286/neuronmkv01wq2.th.jpg (http://img338.imageshack.us/my.php?image=neuronmkv01wq2.jpg)

with this mkv:

http://www.sendspace.com/file/hsogkj

That is working with TMT and MPC-HC.

The method i used:

On the fly cut from original disc as is with head.exe.
Remux video to mkv with eac3to or GraphStudio. (both files don't work.)

_ _ _ _

Guest
27th January 2009, 21:57
"This" doesn't help me because I cannot see the image through my firewall. Can you give it to me in words?

Eragon4ever
27th January 2009, 22:01
"Timecode tracking failure."

rica
27th January 2009, 22:06
I put an attachment to my previous post.

Guest
27th January 2009, 22:13
Redownload the version. I updated it to fix that yesterday evening.

Sharc
27th January 2009, 22:27
And is seeking slow?
Yes, slow.

rica
27th January 2009, 22:29
Redownload the version. I updated it to fix that yesterday evening.

OK, i've revized; thanks.

rica
27th January 2009, 22:44
:)What is next; it is DGVC1NV's turn?

Guest
27th January 2009, 22:57
Patience, my friend. I have to solve a few issues and add audio support first.

~bT~
27th January 2009, 23:41
And is seeking slow?

i cant seek at all. would u like a sample?

edit: after i saved the project, it let me seek.

i then tried to open another mkv and it crashed. had to restart cuvid server. loaded the mkv again, no seeking..saved the project, seeking works :)

rica
28th January 2009, 00:08
I have to solve a few issues and add audio support first.

Flac is gonna be an additional audio file which you will support as well with mkv decoding; i guess?

Guest
28th January 2009, 01:31
I found the cause of the long hang on some files. Please wait for a fix before testing further.

I plan to demux all audio types.

rica
28th January 2009, 02:06
BTW, i've been awaiting you to make a CUDA encoder tool since i know you are the best in those CUDA things.
Still no hope on Cyberlink's Power Director 7 to me.

Guest
28th January 2009, 05:07
I fixed the seeking in the MKV test version. It should be really fast now without any hangs.

http://neuron2.net/dgavcdecnv/dgavcdecnv1011test.zip

I'm learning way more than I wanted to know about Matroska files. :)

A CUDA encoder is a massive project. Ask Dark_Shikari about it. ;)

Audionut
28th January 2009, 05:29
A CUDA encoder is a massive project. Ask Dark_Shikari about it. ;)

I'd search for his previous responses before doing that. ;)

Sagekilla
28th January 2009, 06:12
I'd not even ask about a CUDA encoder to begin with. Discussion of it has popped up -many- times and it's a no go because of the extensive resources required. Unless you have a lot of coders who are willing to put time and effort into optimizing code for CUDA, it's not happening. IIRC, one huge issue Dark Shikari had was getting functions to run fast enough to make it worthwhile.

@neuron2: Thanks for adding mkv support :) No need for me to demux a mkv for doing comparisons of my encodes anymore!

yeye69
28th January 2009, 15:07
How about Linux version?:)

Inventive Software
28th January 2009, 15:53
How about Linux version?:)

Care to port AviSynth and neuron2's DG toolset to Linux? ;)

Guest
28th January 2009, 16:10
Port DirectShow too while you're at it because NVCUVID needs it.

Inventive Software
28th January 2009, 17:13
Port DirectShow too while you're at it because NVCUVID needs it.

What? No stand-alone? Poor NVIDIA. :(

Guest
28th January 2009, 17:34
They're working on disconnecting it from DirectShow.

Guest
29th January 2009, 15:10
I've added audio demuxing. Note that some formats are not supported yet. If you hit one of them you'll get a popup asking you to send me a sample. :) I need samples to implement the support.

Be sure to update with the included nvcuvid.dll.

http://neuron2.net/dgavcdecnv/dgavcdecnv1011test.zip

kemuri-_9
29th January 2009, 15:45
I've added audio demuxing. Note that some formats are not supported yet. If you hit one of them you'll get a popup asking you to send me a sample. :) I need samples to implement the support.

which ones don't you have supported yet? might be easier to
A. compare against a non-supported list and give you samples for the ones on the list rather than trying to hunt
B. compare against a supported list and give you samples for things not on the list.

i imagine B would be easier to do as you know what you've implemented and may forget listing some formats for A.

Guest
29th January 2009, 16:15
The documentation of audio CodecIDs is incomplete, so by hunting I will find out ones that are in use but not documented. Anyway, here are the ones I currently support (because I have samples):

A_AC3
A_MPEG/L1
A_MPEG/L2
A_MPEG/L3
A_DTS

Kurtnoise
29th January 2009, 18:23
A_AAC
A_EAC3
A_FLAC
A_PCM/INT/LIT
A_REAL
A_TTA1
A_VORBIS
A_WAVPACK4

http://haali.cs.msu.ru/mkv/codecs.pdf

http://samples.mplayerhq.hu/Matroska/
http://www.bunkus.org/videotools/mkvtoolnix/samples/

Guest
30th January 2009, 00:35
Added support for A_AAC in MKV files.

http://neuron2.net/dgavcdecnv/dgavcdecnv1011test.zip

What's the priority on the remaining formats?

rica
30th January 2009, 01:15
Added support for A_AAC in MKV files.

http://neuron2.net/dgavcdecnv/dgavcdecnv1011test.zip

What's the priority on the remaining formats?

I think ac3, dts, aac and flac is enough for mkv since DTS-HD and TrueHD are not supported by matroska for now.

Stream Type: Matroska
Profile: High
Level: 4.1
Frame Size: 1920x1080
SAR: 1:1
Display Size: 1920x1080
Frame Rate: 23.976024 fps
Colorimetry: BT.709 [1]
Frame Structure: Frame
Frame Type: I
Coded Number: 257
Playback Number: 257
Frame Repeats: 0
Field Repeats: 0
Bitrate: 27.122
Bitrate (Avg): 13.526
Bitrate (Max): 27.122
Audio Stream: 1: A_FLAC 48000 6ch "und"
Elapsed: 0:00:00
Remain: 0:00:00
FPS:
Info: Finished!

For m2ts, all formats seem to be supported:

Stream Type: Transport [192]
Profile: High
Level: 4.1
Frame Size: 1920x1080
SAR: 1:1
Display Size: 1920x1080
Frame Rate: 23.976024 fps
Colorimetry: BT.709 [1]
Frame Structure: Frame
Frame Type: I
Coded Number: 217
Playback Number: 217
Frame Repeats: 0
Field Repeats: 0
Bitrate: 35.124
Bitrate (Avg): 34.615
Bitrate (Max): 35.383
Audio Stream: 1100: DTS HDHR C+L+R+SL+SR 48 1536
Audio Stream: 1101: DTS C+L+R+SL+SR 48 768
Audio Stream: 1102: DTS C+L+R+SL+SR 48 768
Audio Stream: 1103: DTS C+L+R+SL+SR 48 768
Audio Stream: 1104: AC3 3/2 48 448
Elapsed: 0:00:01
Remain: 0:00:00
FPS:
Info: Finished!


Stream Type: Transport [192]
Profile: High
Level: 4.1
Frame Size: 1920x1080
SAR: 1:1
Display Size: 1920x1080
Frame Rate: 23.976024 fps
Colorimetry: BT.709 [1]
Frame Structure: Frame
Frame Type: I
Coded Number: 258
Playback Number: 258
Frame Repeats: 0
Field Repeats: 0
Bitrate: 27.123
Bitrate (Avg): 13.697
Bitrate (Max): 27.123
Audio Stream: 1100: TrueHD AC3 3/2 48 640
Audio Stream: 1101: AC3 3/2 48 640
Audio Stream: 1102: AC3 3/2 48 640
Audio Stream: 1103: AC3 3/2 48 640
Audio Stream: 1104: AC3 3/2 48 640
Audio Stream: 1105: AC3 2/0 48 192
Audio Stream: 1a00: E-AC3 2/0 48 192
Elapsed: 0:00:01
Remain: 0:00:00
FPS:
Info: Finished!

Thanks neuron.



_ _ _

Guest
30th January 2009, 01:25
Added support for A_FLAC in MKV files.

http://neuron2.net/dgavcdecnv/dgavcdecnv1011test.zip

I'd like to release this, so please beat on it.

rica
30th January 2009, 01:37
Sorry, but i haven't understood the difference with previous version?
That already gave me the flac.

Guest
30th January 2009, 01:45
No, the previous version displayed FLAC as the detected audio type, but if you tried to demux it, you got an error. With the latest version you get a demuxed FLAC file. :)

rica
30th January 2009, 02:15
Please check this:

http://www.sendspace.com/file/gvhic6

Guest
30th January 2009, 05:57
I'd really appreciate it if you'd say if you think there's a problem and what it is.

You may need to download it again as I updated it shortly after posting the new version.

The demuxed .flac plays fine in WinAmp.

Be aware that I demux to raw flac, while mkvextract by default puts it into an ogg wrapper. Do you need it to be in an ogg wrapper or are you drawing my attention to something else?

rica
30th January 2009, 11:50
I couldn't get demuxed flac; that was the problem.
So i should reload DGAVCNV; thanks.

Guest
30th January 2009, 14:46
Both versions would have demuxed the FLAC.

rica
30th January 2009, 18:12
Reloaded again; it's working :thanks:

Guest
30th January 2009, 19:27
* Fixed a bug in the handling of multiple slice frames. This affected the stream provided by rica, so update to this version for proper handling of the stream.

* Added CLI support for audio demuxing for MKV files.

* Updated the users manuals.

http://neuron2.net/dgavcdecnv/dgavcdecnv1011rc1.zip

Snowknight26
30th January 2009, 20:10
DTS-HD is supported by mkv, contrary to what rica says, so maybe that one?

rica
31st January 2009, 19:59
DTS-HD is supported by mkv, contrary to what rica says, so maybe that one?

What???

rica
31st January 2009, 22:24
DTS-HD is supported by mkv, contrary to what rica says, so maybe that one?

Interesting.
Thanks snow; dtsHD-HR and dtsHD-MA is supported by mkvmergegui.
Here is the method i used:
Demux/remux video to mkv and demux audio to dts with eac3to 3.0.5 and remux to mkv with mkvmergegui 2.4.2.
Here are the results:

General
Complete name : C:\Users\rica\Desktop\TEST\video_dtsHD.mkv
Format : Matroska
File size : 37.0 MiB
Duration : 8s 50ms
Overall bit rate : 38.6 Mbps
Encoded date : UTC 2009-01-31 19:13:05
Writing application : mkvmerge v2.4.2 ('Oh My God') built on Jan 18 2009 17:30:28
Writing library : libebml v0.7.7 + libmatroska v0.8.1

Video
ID : 1
Format : AVC
Format/Info : Advanced Video Codec
Format profile : High@L4.1
Format settings, CABAC : Yes
Format settings, ReFrames : 4 frames
Muxing mode : Container profile=Unknown@0.0
Codec ID : V_MPEG4/ISO/AVC
Duration : 8s 41ms
Bit rate : 34.0 Mbps
Width : 1 920 pixels
Height : 1 080 pixels
Display aspect ratio : 16/9
Frame rate : 23.976 fps
Standard : NTSC
Resolution : 24 bits
Colorimetry : 4:2:0
Scan type : Progressive
Bits/(Pixel*Frame) : 0.684

Audio
ID : 2
Format : DTS
Format/Info : Digital Theater Systems
Format profile : HRA
Codec ID : A_DTS
Duration : 8s 50ms
Bit rate mode : Constant
Bit rate : 3 045 Kbps
Channel(s) : 6 channels
Channel positions : Front: L C R, Surround: L R, LFE
Sampling rate : 48.0 KHz
Resolution : 24 bits

General
Complete name : C:\video_dtsMA.mkv
Format : Matroska
File size : 23.2 MiB
Duration : 9s 426ms
Overall bit rate : 20.6 Mbps
Encoded date : UTC 2009-01-31 20:00:47
Writing application : mkvmerge v2.4.2 ('Oh My God') built on Jan 18 2009 17:30:28
Writing library : libebml v0.7.7 + libmatroska v0.8.1

Video
ID : 1
Format : AVC
Format/Info : Advanced Video Codec
Format profile : High@L4.1
Format settings, CABAC : Yes
Format settings, ReFrames : 2 frames
Muxing mode : Container profile=Unknown@0.0
Codec ID : V_MPEG4/ISO/AVC
Duration : 9s 416ms
Width : 1 920 pixels
Height : 1 080 pixels
Display aspect ratio : 16/9
Frame rate : 23.976 fps
Resolution : 24 bits
Colorimetry : 4:2:0
Scan type : Progressive

Audio
ID : 2
Format : DTS
Format/Info : Digital Theater Systems
Format profile : MA
Codec ID : A_DTS
Duration : 9s 426ms
Bit rate mode : Variable
Channel(s) : 6 channels
Channel positions : Front: L C R, Surround: L R, LFE
Sampling rate : 48.0 KHz
Resolution : 24 bits



Here are the sample files:

dtshd-HR:

http://www.mediafire.com/?sharekey=a6135ffd0b243e3067cd7f7bd65f7eef7abc06429f53ec11c95965eaa7bc68bc

dtshd-MA:

http://www.sendspace.com/file/g9fzhm

Previous test version extracts those audio files. Here it is: (you have to put your own licence.txt instead of the fake one i put.)

[link deleted]

while 1.0.11 rc1 can not.
_ _ _ _

Guest
1st February 2009, 03:52
I fixed the problem with audio demuxing. Please redownload rc1.

http://neuron2.net/dgavcdecnv/dgavcdecnv1011rc1.zip

Thanks for pointing it out, rica.