[RESOLVED] Apply project range to audio (for MKV)

Support forum for DGDecNV
Post Reply
DAE avatar
Guest

[RESOLVED] Apply project range to audio (for MKV)

Post by Guest »

When using the project range markers in DGDecNV for the video is there a way to have it apply this to the audio as well so it stays in sync?
User avatar
admin
Posts: 4551
Joined: Thu Sep 09, 2010 3:08 pm

Re: Project Range

Post by admin »

What kind of video and audio are we talking about? I thought it already operated this way.
DAE avatar
Guest

Re: Project Range

Post by Guest »

MKV, with AC3 audio and AVC video
Any steps I can take to test?
User avatar
admin
Posts: 4551
Joined: Thu Sep 09, 2010 3:08 pm

Re: Project Range

Post by admin »

Ah, OK. Let me look into it.
DAE avatar
Guest

Re: Project Range

Post by Guest »

If I remux my files to a TS container the project range function works perfect, so I might have to rearrange the initial part of my work flow
DAE avatar
Guest

Re: Project Range

Post by Guest »

If you could implement it for mkv it would be awesome and I would appreciate it, but its your software and time so whatever you decide is fine by me.
User avatar
admin
Posts: 4551
Joined: Thu Sep 09, 2010 3:08 pm

Re: Project Range

Post by admin »

I just checked and it is already implemented. Just set your range, do save project and demux video, and then do audio/audio demux. The resulting video and audio ES's will be in sync. Please report if it is not working for you.

The only negative is it isn't all done in one pass. C'est la vie.
DAE avatar
Guest

Re: Project Range

Post by Guest »

Thanks for the info
Will test
DAE avatar
Guest

Re: Project Range

Post by Guest »

Did a quick test and once again you are right
Quick question
The dgi file has a line that says
RANGE 45045000000 0 7245446000000 0
is the number 45045 the first frame kept in the trimmed output and 7245446 the last
DAE avatar
Guest

Re: Project Range

Post by Guest »

Read the documentation but I must be missing something.
The numbers are supposed to be timecodes but how to translate to secs or frame numbers, I can't come up with the answer
DAE avatar
Guest

Re: Project Range

Post by Guest »

Let me guess, the numbers are in milliseconds, :wow: :oops: :oops:
User avatar
admin
Posts: 4551
Joined: Thu Sep 09, 2010 3:08 pm

Re: Project Range

Post by admin »

Those are the MKV timestamps in units of nanoseconds. :wow: Yes they are the starting and ending frames of the range.

So your range included ~7200 seconds = 120 minutes.

Does it agree?
DAE avatar
Guest

Re: Project Range

Post by Guest »

:oops: Of course, the trailing zeroes are the micro and then nano seconds.
Thanks for clearing it up for me, even when I am on the right track I sometimes miss the obvious.
P.S.
It also works perfectly for hevc in mkv
I am learning more about the capabilities of your tools everyday
User avatar
admin
Posts: 4551
Joined: Thu Sep 09, 2010 3:08 pm

Re: Project Range

Post by admin »

I try my best to do the right things. 8-)

Two points:

1. An MKV can specify a TimecodeScale other than the default of 1000000. IIRC I handle it correctly.

2. One day I would like to do the video and audio demux as a single pass.
DAE avatar
Guest

Re: Project Range

Post by Guest »

IIRC I handle it correctly.
Tested your timecodes on a fully muxed mkv by splitting it in mkvmerge with your time stamps, and as far as I can tell it comes out perfect
User avatar
admin
Posts: 4551
Joined: Thu Sep 09, 2010 3:08 pm

Re: [RESOLVED] Apply project range to audio (for MKV)

Post by admin »

OK, but I meant I also handle non-default TimecodeScale correctly. Do you have any MKVs with that?

BTW, the MKV spec is a fun and useful read for grokking the deep internals.

https://matroska.org/technical/index.html
DAE avatar
Guest

Re: [RESOLVED] Apply project range to audio (for MKV)

Post by Guest »

No funky mkv's. I like to keep things neat, straightforward and simple.
Much easier that way.
Once again, thank you for your help
User avatar
admin
Posts: 4551
Joined: Thu Sep 09, 2010 3:08 pm

Re: [RESOLVED] Apply project range to audio (for MKV)

Post by admin »

Sure you wouldn't make one with a non-default scale, but I have seen them in the wild.
DAE avatar
Guest

Re: [RESOLVED] Apply project range to audio (for MKV)

Post by Guest »

Your thoroughness is admirable Don, once again, thanks for your patience and help.
Your software keeps impressing me more all the time
As I learn a little more and wish to go further your tools step up and show that they can do more than I realized :hat:
:bow: :bravo:
And I will try to remember for next time to count the trailing zeroes, milli >micro > nano
User avatar
admin
Posts: 4551
Joined: Thu Sep 09, 2010 3:08 pm

Re: [RESOLVED] Apply project range to audio (for MKV)

Post by admin »

Thanks, Luis. :)
Post Reply