Log in

View Full Version : PGCDemux - select multiple streams?


bitwerks
1st January 2009, 01:29
Mea culpa if this is an FAQ. I searched diligently before posting.

I frequently use PGCDemux and my work flow is to run it against one stream at a time and then rename the resulting audio (.ac3) to something meaningful and then iterate until all required streams have been demuxed.

It would be wonderful to be able to select all the desired streams and then click proceed. Is there a clever workaround or am I simply asleep at the switch?

ttfn,
bitwerks

r0lZ
1st January 2009, 04:19
Hum, it is not possible to demux only one audio stream with PgcDemux. You have to delete them all! Same thing for the subpics.
The streams on disc are identified by their ID, so it is usually easy to identify them.

bitwerks
1st January 2009, 20:02
Yes, I am probably not using the correct terms.

I select H:\VIDEO_TS\VTS_01_0.IFO as the input IFO, select mode->by_VOBid, select "Demux all audio streams" and see my four audio tracks in the chooser box on the bottom right.

I would like to select all four of them (VID 1, VID 2, etc) but am only able to select one at a time. It isn't a huge deal but it would certainly streamline my work flow and prevent operator errors...

blutach
1st January 2009, 22:57
Then demux by PGC and not by Vob ID.

Regards

pc_speak
2nd January 2009, 06:01
"Edited"

Hello.
I'm not quite sure. Does this batch file help? I created it some time ago because of a TV series I have on DVDs.It works with PgcDemux.exe, one IFO and the associated vobs in a folder.

Sometimes I had to start the count at 2 and increase the total count by 1 because PGC1 was the whole shebang & PGC2-PGC? were each episode.

@echo off
if exist Complete\*.* (del /q Complete\*.*) else md Complete
for %%a in ("*.ifo") do set ifo=%%a
set /p count=How many episodes are there to demux?
echo. && echo Demuxing %count% episodes. This will take some time. Please wait....

for /L %%b in (1,1,%count%) do (
echo episode_%%b.
pgcdemux.exe -pgc %%b -m2v -aud -nosub -nocellt -nolog %ifo% Complete
ren "Complete\VideoFile.m2v" "episode_%%b.m2v"
ren "Complete\AudioFile_*.ac3" "episode_%%b_*.ac3"
)

:end

bitwerks
5th January 2009, 06:41
Many thanks for the batch file. I'll give it a go tomorrow and see how it works. At least it gives me an idea how I can wrap PGCDemux in Perl/Python as I am doing with other parts of my workflow. I'll post my results in case anyone else is interested. BTW, I looked for documentation for PGCDemux command line arguments and didn't find anything of any depth but perhaps I was not looking in the right places.

blutach: I have tried demuxing by PGC as well and it appears to work the same way. I have to select each track one at a time and each is saved with the same name. I am running 1.2.0.5 which appears to be the lastest and greatest. I'll verify that tomorrow to ensure I'm not lying...

pc_speak
5th January 2009, 06:52
This is all I've ever found. Seems succinct.
(At the end of - ReadmePgcDemux.txt)
Command line support
PgcDemux [option1] [option2] ... [option12] <ifo_input_file> <destination_folder>
option1: [-pgc, <pgcnumber>]. Selects the PGC number (from 1 to nPGCs). Default 1
option2: [-ang, <angnumber>]. Selects the Angle number (from 1 to n). Default 1
option3: [-vid, <vobid>]. Selects the Angle number (from 1 to n). Default 1
option4: [-cid, <vobid> <cellid>]. Selects a cell vobid (from 1 to n). Default 1
option5: {-m2v, -nom2v}. Extracts/No extracts video file. Default NO
option6: {-aud, -noaud}. Extracts/No extracts audio streams. Default YES
option7: {-sub, -nosub}. Extracts/No extracts subs streams. Default YES
option8: {-vob, -novob}. Generates a single PGC VOB. Default NO
option9: {-customvob <flags>}. Generates a custom VOB file. Flags:
b: split VOB: one file per vob_id
n: write nav packs
v: write video packs
a: write audio packs
s: write subs packs
i: only first Iframe
l: patch LBA number
option10:{-cellt, -nocellt}. Generates a Celltimes.txt file. Only in PGC/VID mode. Default YES
option11:{-log, -nolog}. Generates a log file. Default YES
option12:{-menu, -title}. Domain. Default Title (except if filename is VIDEO_TS.IFO)