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. |
|
|
#121 | Link |
|
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 |
|
|
|
|
#122 | Link | |
|
Registered User
Join Date: Feb 2006
Posts: 1,076
|
Quote:
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. |
|
|
|
|
|
#123 | Link |
|
Guest
Join Date: Jan 2002
Posts: 21,907
|
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. |
|
|
|
|
#124 | Link | |
|
HDConvertToX author
Join Date: Nov 2003
Location: Cesena,Italy
Posts: 6,552
|
Quote:
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 |
|
|
|
|
|
#125 | Link |
|
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?
|
|
|
|
|
#126 | Link | ||
|
HDConvertToX author
Join Date: Nov 2003
Location: Cesena,Italy
Posts: 6,552
|
Quote:
Quote:
BHH
__________________
HDConvertToX: your tool for BD backup MultiX264: The quick gui for x264 AutoMen: The Mencoder GUI AutoWebM: supporting WebM/VP8 |
||
|
|
|
|
#128 | Link | |
|
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
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 Quote:
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
__________________
HDConvertToX: your tool for BD backup MultiX264: The quick gui for x264 AutoMen: The Mencoder GUI AutoWebM: supporting WebM/VP8 |
|
|
|
|
|
#130 | Link | |
|
Registered User
Join Date: May 2006
Posts: 3,952
|
Quote:
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. |
|
|
|
|
|
#132 | Link |
|
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. |
|
|
|
|
#133 | Link |
|
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. |
|
|
|
|
#135 | Link | |
|
Straight to video
Join Date: Jun 2005
Posts: 637
|
Quote:
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)
|
|
|
|
|
|
#138 | Link |
|
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. |
|
|
|
|
#139 | Link |
|
Straight to video
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. |
|
|
|
|
#140 | Link |
|
Pig on the wing
Join Date: Mar 2002
Location: Finland
Posts: 5,584
|
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... |
|
|
![]() |
|
|