Page 1 of 1

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

Posted: Sun Oct 22, 2017 12:17 pm
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?

Re: Project Range

Posted: Sun Oct 22, 2017 12:23 pm
by admin
What kind of video and audio are we talking about? I thought it already operated this way.

Re: Project Range

Posted: Sun Oct 22, 2017 12:28 pm
by Guest
MKV, with AC3 audio and AVC video
Any steps I can take to test?

Re: Project Range

Posted: Sun Oct 22, 2017 12:44 pm
by admin
Ah, OK. Let me look into it.

Re: Project Range

Posted: Sun Oct 22, 2017 12:53 pm
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

Re: Project Range

Posted: Sun Oct 22, 2017 4:36 pm
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.

Re: Project Range

Posted: Mon Oct 23, 2017 5:44 pm
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.

Re: Project Range

Posted: Mon Oct 23, 2017 6:06 pm
by Guest
Thanks for the info
Will test

Re: Project Range

Posted: Mon Oct 23, 2017 6:19 pm
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

Re: Project Range

Posted: Mon Oct 23, 2017 6:46 pm
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

Re: Project Range

Posted: Mon Oct 23, 2017 6:59 pm
by Guest
Let me guess, the numbers are in milliseconds, :wow: :oops: :oops:

Re: Project Range

Posted: Mon Oct 23, 2017 7:15 pm
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?

Re: Project Range

Posted: Mon Oct 23, 2017 7:21 pm
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

Re: Project Range

Posted: Mon Oct 23, 2017 7:25 pm
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.

Re: Project Range

Posted: Mon Oct 23, 2017 7:28 pm
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

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

Posted: Mon Oct 23, 2017 7:32 pm
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

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

Posted: Mon Oct 23, 2017 7:36 pm
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

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

Posted: Tue Oct 24, 2017 2:21 pm
by admin
Sure you wouldn't make one with a non-default scale, but I have seen them in the wild.

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

Posted: Tue Oct 24, 2017 5:04 pm
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

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

Posted: Tue Oct 24, 2017 8:31 pm
by admin
Thanks, Luis. :)