Page 1 of 1

Re: Indexing Demuxed video

Posted: Fri Oct 25, 2019 5:52 am
by jpsdr
If i understand properly.
You have an m2ts file, you demux audio and video and have, for exemple, an .264 video file, and .ac3 audio file.
You want then to work with the .264 video file instead, and not the .m2ts file anymore.
Am i correct ?
If i am, correct, one possibility, but i don't know if it's easy or not to implement, is to have an option to create a second index file if the video is demuxed.
file is xxxx.mt2s, it creates xxxx.dgi and xxxx_264.dgi.
Maybe it possible to create the DGI informations for the both stream, as while they are demuxed, both are avaible in the memory, so maybe indexing informations can be created for/from the both streams, the one read and the one writen. But, i don't know if this can be done easely or not.

If i'm not correct and didn't properly understood the need, forget what i've said.

Re: Indexing Demuxed video

Posted: Fri Oct 25, 2019 8:52 am
by DJATOM
If I do understand index structure properly, it writes position (in bytes) to IDR frame and then explains how much data it can decode (in frames) and describes a type/etc. So in case of .264 ES we just need to correct those positions after demuxing step (and fix file extension). Other parts of index file should be the same.

Re: Indexing Demuxed video

Posted: Fri Oct 25, 2019 11:03 am
by Rocky
Gents, I appreciate your ideas but I know DGIndexNV architecture and design quite intimately, and I do not see any way to get an extra indexing of the demuxed video on the cheap.

Re: Indexing Demuxed video

Posted: Fri Oct 25, 2019 12:07 pm
by DJATOM
I thought of separate counting for demuxed .264 ES IDR sequences and increasing IDR stamps on it, as diff shows: https://www.diffchecker.com/GYLT5LUh. Or just doing second instance of indexing before writing demuxed video stream onto disk (we should have an option for it in that case).

Re: Indexing Demuxed video

Posted: Fri Oct 25, 2019 12:47 pm
by Bullwinkle
I have thought of many things. People call me a Thinker.

Re: Indexing Demuxed video

Posted: Fri Oct 25, 2019 1:51 pm
by DJATOM
Sure. No is no, I'll just trust you ;)

Re: Indexing Demuxed video

Posted: Fri Oct 25, 2019 3:22 pm
by Guest
If I may put things in perspective
I tested with UHD HDR mpls
If I do an initial index/demux and then delete the index file it only takes about 3 minutes to index the HEVC elementary stream.
All things being equal, this is easy and quick enough

Re: Indexing Demuxed video

Posted: Fri Oct 25, 2019 5:26 pm
by Rocky
The demuxing and indexing are run as two separate uncoordinated threads. That is the main reason that I can't do anything for you about this without a major redesign.

Re: Indexing Demuxed video

Posted: Fri Oct 25, 2019 5:33 pm
by Guest
Was just saying that the time savings is really minor in the grand scheme of things
All is good
Quick off topic
What does Rocky and Bullwinkle think of this
https://www.google.com/search?client=fi ... supremacy

Re: Indexing Demuxed video

Posted: Fri Oct 25, 2019 8:24 pm
by Bullwinkle
:scratch: :scratch: :scratch: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol:

All of "quantum information" and its applications is nonsense:

http://www.sciphysicsforums.com/spfbb1/ ... ?f=6&t=407

The informed one Me is here to show non-nonsense (NSFW trigger):

https://www.youtube.com/watch?v=FHSmevQCFoo

Snort. If that is too risque try this:

https://scottlocklin.wordpress.com/2019 ... -bullshit/

Re: Indexing Demuxed video

Posted: Tue Oct 29, 2019 5:09 am
by Guest
DGDemux/DGDemuxNV would be perfect