Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion. Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules. |
18th December 2006, 11:55 | #1 | Link |
Registered User
Join Date: Dec 2006
Posts: 4
|
Audio Stream detection problem
If different audio streams in the "same position", only the last detected one is visible. I mean if there is az mpeg audio on $C0 pid ( first mpeg audio stream) and in the private stream contains an AC-3 stream on substream id $80 ( first AC-3 stream) only the AC-3 stream is detected. This also happens on second, third, etc..
"position" The same thing happens if there is an AC-3 stream on substream $80 ( first AC-3 stream) and a PCM stream on substream $A0 ( first PCM stream). Every time, only the "latests" detected stream is visible if there are different streams in the "same position". Is there any way to solve this, or I did something wrong, or what can I do? |
18th December 2006, 14:44 | #2 | Link |
Guest
Join Date: Jan 2002
Posts: 21,901
|
What software tool are you talking about?
If you are talking about DGIndex, please upload a sample unprocessed source stream that I can examine. If you are saying that there are two or more audio streams on the same PID of a transport stream, well, I've never seen such a thing. Where did you get this stream? |
18th December 2006, 15:39 | #3 | Link |
Registered User
Join Date: Dec 2006
Posts: 4
|
I'm talking about DGIndex. I'm talking about program streams. The "same position" means to me like this:
mpeg | AC-3 | DTS | PCM C0 | 80 | 88 | A0 C1 | 81 | 89 | A1 C2 | 82 | 90 | A2 C3 | 83 | 91 | A3 C4 | 84 | 92 | A4 etc... Of course, Ac-3, DTS, and PCM are substream ID's, these are in the private steam. If an mpeg file contains an Mpeg stream at $C0 ( 1. audio track) you set first audio to MPEG. Channel[MPA_Track] = FORMAT_MPA; // MPA_Track is 0 ! This OK. But if this movie contains AC-3 stream at $80 ( 1. AC-3 track ) Channel[This_Track] = FORMAT_AC3; //This_Track is 0 ! and the result is, only the AC-3 track is detected. And, if there is a PCM stream in this file on $A0 ( 1. PCM track ) Channel[This_Track] = FORMAT_LPCM; // This_Track is 0 ! In this case, the AC-3 stream also won't be detected. Here http://rapidshare.com/files/7998029/test.mpg is a test file. This contains four audio streams. C0 -> Mpeg stream 80 -> AC-3 81 -> AC-3 82 -> AC-3 but DGIndex does not detect the mpeg stream. |
18th December 2006, 19:02 | #5 | Link |
Registered User
Join Date: Dec 2006
Posts: 4
|
This file is multiplexed with TMpegEncoder. ( I made it for the test)
I made an ugly "solution" for the problem. I didn't have more time, s o I added a new command line parameter, then I can select that DGIndex search only for mpeg, AC-3, DTS, or PCM streams. So, if i run DGIndex and set to demux first audio stream on that test file with this new parameter set to 0 , then demux mpeg stream, new parameter set to 1 demux AC-3 stream. I know it is far from perfect, but it is a solution for me. Sorry for bothering you, I like DGIndex very much and I totally appreciate Your work. I wrote this only to inform you. I think the problem is that you counting the same variable for all different type of audio streams. |
Thread Tools | Search this Thread |
Display Modes | |
|
|