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.

 

Go Back   Doom9's Forum > General > DVD2AVI / DGIndex
Register FAQ Calendar Today's Posts Search

Closed Thread
 
Thread Tools Search this Thread Display Modes
Old 8th November 2007, 08:44   #121  |  Link
buzzqw
HDConvertToX author
 
Join Date: Nov 2003
Location: Cesena,Italy
Posts: 6,552
@neuron2

do you know any affidable command line application able to extract audio track pid/id ?

i used bbsummary, but this utility not extract 80,81,C0 info ...

on command line i usually specify -TN=1,2 for extracting the first and second tracks... but with 150b11 dgindex fails extracting tracks even if i specify 80,81...

this is the old command line
c:\dgindex.exe -FO=0 -OM=1 -TN=1 -YR=2 -AIF=[c:\_aaa.vob] -OF=[C:\movie] -exit -minimize

and this is the vob ( 7.81 mb) http://www.64k.it/andres/data/a/_aaa.vob

how i can translate (or detect TN values) in new command line ?

thanks!

BHH
__________________
HDConvertToX: your tool for BD backup
MultiX264: The quick gui for x264
AutoMen: The Mencoder GUI
AutoWebM: supporting WebM/VP8
buzzqw is offline  
Old 8th November 2007, 13:17   #122  |  Link
G_M_C
Registered User
 
Join Date: Feb 2006
Posts: 1,076
Quote:
Originally Posted by kumi View Post
On the point that Sharc raises, could I request that you allow users to override what colorimetry is assumed by DGindex (and passed via hints) when the sequence display extension fields are absent? At present, when fed SD MPEG-2 input, DGindex assumes Rec.709, but Hank315 believes that the default SD MPEG-2 matrix might in fact be Rec.601. See here.


Thanks for the new beta
If i remenber correctly the MPEG2 has Rec.709 as the standard (default) colormetry, as part of the MPEG2-standards. So the fact that DGIndex gives 709 as defeult, is a simple (and correct) consequece of the MPEG2 standard.

If your unflagged stream is in fact Rec.601, than basically, the stream isn't muxed/made properly (is should have been flagged !).

Last edited by G_M_C; 8th November 2007 at 14:47.
G_M_C is offline  
Old 8th November 2007, 14:17   #123  |  Link
Guest
Guest
 
Join Date: Jan 2002
Posts: 21,907
Quote:
Originally Posted by buzzqw View Post
@how i can translate (or detect TN values) in new command line?
The audio id's work like this:

PVA and transport: one track always 0

all others:
AC3: 80-87
DTS: 88-8f
PCM: a0-a7
MPA: c0-c7

You could ask for the first two of each category:

TN=80,81,88,89,a0,a1,c0,c1

Or you could just demux them all.

The problem is that the concept of track number is DVD specific but DGMPGDec wants to handle all stream types. You might suggest to number them by the order they are encountered in the source. But that's indeterministic because if you start the project at different points you can change the order in which the streams are encountered.

But obviously I want to support third party applications, so can you take the above information into account and tell me what you need to support your application? Maybe I could make a command line option that just creates the audio stream list (as displayed in the Info dialog) and then exits.

Last edited by Guest; 8th November 2007 at 14:20.
Guest is offline  
Old 8th November 2007, 14:31   #124  |  Link
buzzqw
HDConvertToX author
 
Join Date: Nov 2003
Location: Cesena,Italy
Posts: 6,552
Quote:
Maybe I could make a command line option that just creates the audio stream list (as displayed in the Info dialog) and then exits
that's would be enough!

when i know the audio id (80,81,88,89,a0,a1,c0,c1) is very easy to read a "info.dump" created by dgindex

i my suggest, if possibile to include even more info in this "info" file (maybe all those in info panel, if isn't needed all file parsing)

thanks Neuron2!

BHH
__________________
HDConvertToX: your tool for BD backup
MultiX264: The quick gui for x264
AutoMen: The Mencoder GUI
AutoWebM: supporting WebM/VP8
buzzqw is offline  
Old 8th November 2007, 14:39   #125  |  Link
Guest
Guest
 
Join Date: Jan 2002
Posts: 21,907
Please redownload beta 11. There was a bug in the CLI operation. With the new one, this works for your sample VOB:

dgindex.exe -FO=0 -OM=1 -TN=80,c1 -YR=2 -AIF=[_aaa.vob] -OF=[movie] -exit -minimize

The problem with the log idea is how far do I parse into the file looking for audio streams? I'll do some experiments with some reasonable size.

Why don't you demux them all and parse the resulting file names?
Guest is offline  
Old 8th November 2007, 15:06   #126  |  Link
buzzqw
HDConvertToX author
 
Join Date: Nov 2003
Location: Cesena,Italy
Posts: 6,552
Quote:
The problem with the log idea is how far do I parse into the file looking for audio streams? I'll do some experiments with some reasonable size.
in bbsummary i analyze the first 10000 frames, and it's a matter of two seconds

Quote:
Why don't you demux them all and parse the resulting file names?
well.. i must admit that wont be a problem... just to search for 80 , 81 , c1 in file names...

BHH
__________________
HDConvertToX: your tool for BD backup
MultiX264: The quick gui for x264
AutoMen: The Mencoder GUI
AutoWebM: supporting WebM/VP8
buzzqw is offline  
Old 8th November 2007, 15:13   #127  |  Link
Guest
Guest
 
Join Date: Jan 2002
Posts: 21,907
Maybe we can map the bbsummary info to audio_ids. Can you post typical bbsummary output for the audio?
Guest is offline  
Old 8th November 2007, 15:38   #128  |  Link
buzzqw
HDConvertToX author
 
Join Date: Nov 2003
Location: Cesena,Italy
Posts: 6,552
bbsummary on _aaa.vob (same sample posted before)

Code:
bbSummary - based on BBINFO version 1.9

File C:\Programmi\PureBasic402\AutoMKV\test\_aaa.vob is an MPEG-2 Program Stream

Summary:

MPEG Packs = 4000
System headers = 22
Private AC3 Audio Stream 1 packets = 296, total bytes = 597029
    AC3 Audio Stream 0 packets = 296, total bytes = 0
Padding Stream packets = 21, total bytes = 12383
Private Stream 2 packets = 44, total bytes = 43956
MPEG Audio Stream 1 packets = 98, total bytes = 197957
Video Stream 0 packets = 3584, total bytes = 7244864
on a TS files
Code:
bbSummary - based on BBINFO version 1.9

File C:\Programmi\PureBasic402\AutoMKV\test\_aaa.ts is an MPEG-2 Transport Stream

Summary:

MPEG Transport Packets = 10000
PID 0000, Program Association Table packets = 3, total bytes = 552
PID 001F, Other packets = 1, total bytes = 184
PID 0113, Other packets = 9, total bytes = 1656
PID 0991, Video Stream 0 packets = 8548, total bytes = 1525328
PID 0992, MPEG Audio Stream 0 packets = 719, total bytes = 129930
PID 0993, MPEG Audio Stream 0 packets = 719, total bytes = 129930

other TS file
Code:
bbSummary - based on BBINFO version 1.9

File C:\Programmi\PureBasic402\AutoMKV\test\ateme.luxe.tv.hd.eutelsat.w3a.12.jun.2007.whole.ts.sample.ts is an MPEG-2 Transport Stream

Summary:

MPEG Transport Packets = 10000
PID 0000, Program Association Table packets = 25, total bytes = 4600
PID 0011, Other packets = 2, total bytes = 368
PID 0012, Other packets = 15, total bytes = 2760
PID 0020, Other packets = 24, total bytes = 4416
PID 0065, Video Stream 0 packets = 9391, total bytes = 1720842
PID 0100, MPEG Audio Stream 0 packets = 271, total bytes = 49204
PID 0101, MPEG Audio Stream 0 packets = 271, total bytes = 49204
on other vob file

Quote:
bbSummary - based on BBINFO version 1.9

File C:\Programmi\PureBasic402\AutoMKV\test\_telecine.vob is an MPEG-2 Program Stream

Summary:

MPEG Packs = 10000
System headers = 34
Private AC3 Audio Stream 1 packets = 1855, total bytes = 3740719
AC3 Audio Stream 0 packets = 415, total bytes = 0
AC3 Audio Stream 1 packets = 415, total bytes = 0
AC3 Audio Stream 3 packets = 209, total bytes = 0
DTS Audio Stream 2 packets = 816, total bytes = 0
Padding Stream packets = 34, total bytes = 39246
Private Stream 2 packets = 68, total bytes = 67932
Video Stream 0 packets = 8110, total bytes = 16382960
last vob

Code:
bbSummary - based on BBINFO version 1.9

File C:\Programmi\PureBasic402\AutoMKV\test\movimentato.vob is an MPEG-2 Program Stream

Summary:

MPEG Packs = 4840
System headers = 22
Private AC3 Audio Stream 1 packets = 273, total bytes = 548625
    AC3 Audio Stream 0 packets = 273, total bytes = 0
Padding Stream packets = 24, total bytes = 29997
Private Stream 2 packets = 44, total bytes = 43956
Video Stream 0 packets = 4544, total bytes = 9175284
BHH
__________________
HDConvertToX: your tool for BD backup
MultiX264: The quick gui for x264
AutoMen: The Mencoder GUI
AutoWebM: supporting WebM/VP8
buzzqw is offline  
Old 8th November 2007, 16:09   #129  |  Link
Guest
Guest
 
Join Date: Jan 2002
Posts: 21,907
I'll implement the log file, as there is not enough information there to map to audio id.
Guest is offline  
Old 8th November 2007, 17:33   #130  |  Link
Sharc
Registered User
 
Join Date: May 2006
Posts: 3,952
Quote:
Originally Posted by G_M_C View Post
If i remenber correctly the MPEG2 has Rec.709 as the standard (default) colormetry, as part of the MPEG2-standards. So the fact that DGIndex gives 709 as defeult, is a simple (and correct) consequece of the MPEG2 standard.

If your unflagged stream is in fact Rec.601, than basically, the stream isn't muxed/made properly (is should have been flagged !).
The background is that there were quite some controversial discussions on standards and on what (unflagged) DVDs (using mpeg2) comply with, and what (most) players do expect, in this thread:
http://forum.doom9.org/showthread.ph...05#post1061205.
I don't know what are opinions and what are facts, and how much room for the interpretation of standards is left to the studios and player/chipset manufacturers. Still it appears that many SD players expect 601.
Sharc is offline  
Old 8th November 2007, 20:59   #131  |  Link
kumi
Straight to video
 
kumi's Avatar
 
Join Date: Jun 2005
Posts: 637
Quote:
Originally Posted by G_M_C View Post
If your unflagged stream is in fact Rec.601, than basically, the stream isn't muxed/made properly (is should have been flagged !).
Exactly, that's what I thought, too. But there is some good evidence that Rec.601 IS the default, and not Rec.709. And the fact that many (most?) SD players assume 601 is icing on the cake.
kumi is offline  
Old 8th November 2007, 21:55   #132  |  Link
Guest
Guest
 
Join Date: Jan 2002
Posts: 21,907
The later spec says that if it is unspecified then the colorimetry used is "determined by the application". I could just report "unspecified" but I have to use something for RGB upconversion. Do you want it as an option?

Last edited by Guest; 8th November 2007 at 22:06.
Guest is offline  
Old 8th November 2007, 22:02   #133  |  Link
Guest
Guest
 
Join Date: Jan 2002
Posts: 21,907
I have the log file working and will release a beta tonight.

Whenever the Info dialog is closed, either manually or automatically by DGIndex, the Info dialog contents are written to a file. For CLI operation, if the new -preview parameter is given, the first 100 frames will be decoded and then the Info dialog will be killed, causing the log file to be generated. Thus, the way to get a silent dump of the data is this:

dgindex -AIF=[zdf.mpeg] -OF=[zdf] -preview -minimize -exit

The output file looks like this:

Stream Type: MPEG2 Program
Profile: main@main
Frame Size: 720x576
Aspect Ratio: 4:3
Frame Rate: 25.000000 fps
Video Type: PAL
Frame Type: Interlaced
Colorimetry: BT.709
Frame Structure: Frame
Field Order: Top
Coded Number: 99
Playback Number: 99
Frame Repeats: 0
Field Repeats: 0
VOB ID:
Cell ID:
Bitrate: 5.016 Mbps
Bitrate (Avg): 5.738 Mbps
Audio Stream: 80: AC3 2/0 384
Audio Stream: c0: MPA L2 2ch 48 256
Audio Stream: c1: MPA L2 mono 48 128
Timestamp: 0:00:05
Elapsed: 0:00:03
Remain: 0:00:10
FPS: 24.96
Info:

Last edited by Guest; 8th November 2007 at 22:09.
Guest is offline  
Old 8th November 2007, 22:26   #134  |  Link
buzzqw
HDConvertToX author
 
Join Date: Nov 2003
Location: Cesena,Italy
Posts: 6,552
Excellent!

thanks Neuron2!

BHH
__________________
HDConvertToX: your tool for BD backup
MultiX264: The quick gui for x264
AutoMen: The Mencoder GUI
AutoWebM: supporting WebM/VP8
buzzqw is offline  
Old 8th November 2007, 23:31   #135  |  Link
kumi
Straight to video
 
kumi's Avatar
 
Join Date: Jun 2005
Posts: 637
Quote:
Originally Posted by neuron2 View Post
but I have to use something for RGB upconversion. Do you want it as an option?
Yes, but only if it's possible to get the user's choice of default matrix passed into the stream hints. That's the reason for my request, really.

Currently, the 2nd line of this script is a no-op:
Code:
mpeg2source("foo.d2v", info=3) #foo.m2v is a MPEG2 SD clip w/ no sequence display extension fields
colormatrix(mode="Rec.601->Rec.709", hints=true)
I wish DGdecode would hint my source with Rec.601 coefficients. Can that be done? Thanks for listening
kumi is offline  
Old 8th November 2007, 23:50   #136  |  Link
Sharc
Registered User
 
Join Date: May 2006
Posts: 3,952
I second this.
The user's choice should only kick in when the source has no sequence display extension.

If the source comes with with sequence display extension I think it should override the user's choice.
Sharc is offline  
Old 9th November 2007, 00:04   #137  |  Link
kumi
Straight to video
 
kumi's Avatar
 
Join Date: Jun 2005
Posts: 637
Quote:
If the source comes with with sequence display extension I think it should override the user's choice.
I agree.
kumi is offline  
Old 9th November 2007, 02:01   #138  |  Link
Guest
Guest
 
Join Date: Jan 2002
Posts: 21,907
Version 1.5.0 beta 12

* Whenever the Info dialog is closed, a log file is created that contains the same information. This may be invoked by the CLI to silently query the nature of the input file. Please see the users manual for details.

* When a stream does not declare the colorimetry, matrix_coefficients=1 is assumed for HD video and matrix_coefficients=5 is assumed for SD video.

http://neuron2.net/dgmpgdec/dgmpgdec150b12.zip

I'll wait and see who cries foul about the second bullet item. I'd prefer not to make an option for it.
Guest is offline  
Old 9th November 2007, 07:50   #139  |  Link
kumi
Straight to video
 
kumi's Avatar
 
Join Date: Jun 2005
Posts: 637
Thanks a lot! Tested and working A-OK.

I wonder if you might also consider adding an "icing on the cake": how about some sort of indicator in the Info|Colorimetry area, to show when DGindex is applying it's own matrix coefficients? Perhaps something simple, like displaying *BT.470-2 B,G instead of BT.470-2 B,G.
kumi is offline  
Old 9th November 2007, 07:51   #140  |  Link
Boulder
Pig on the wing
 
Boulder's Avatar
 
Join Date: Mar 2002
Location: Finland
Posts: 5,584
Quote:
Originally Posted by neuron2 View Post
I'll wait and see who cries foul about the second bullet item. I'd prefer not to make an option for it.
I'll try this later today when I get home from work. All my DVB captures show 'unknown' for colorimetry in DGIndex, but I must not use ColorMatrix(mode="rec.601->rec.709") when encoding with CCE or HC. If I use that line, the colors in the resulting video are different from the original video when looking in VDub. I'll need to check whether the difference exists when playing the video on the standalone player.
__________________
And if the band you're in starts playing different tunes
I'll see you on the dark side of the Moon...
Boulder is online now  
Closed Thread


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 19:00.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2023, vBulletin Solutions Inc.