View Full Version : demux by cli?
neo75903
21st June 2004, 00:26
Hi,
is there a way to demux video from an avi file using commanf line only?
something like
program.exe input.avi videoOnly.avi?
Matthew
21st June 2004, 07:59
I don't know of a way to do it as simple as that, but you can use xDub's vcf scripting. VDubMod's help section has a good list of commands. I think this should be right for nandub:
VirtualDub.Open("DIR/INPUT.avi",0,0);
VirtualDub.video.SetMode(0);
VirtualDub.audio.SetSource(0);
VirtualDub.SaveAVI("DIR/OUTPUT.avi");
neo75903
21st June 2004, 08:26
hi,
thx, but is there a wai i can pass the file by command as an argument?
i need this for batch processing script.
thx.
Matthew
21st June 2004, 08:35
nandub.exe /sC:\demux.vcf /x
Will do the trick, if by file you mean the vcf.
Note that you can use a search and replace app if need be...for example I wrote something recently to remux all the avi's in a directory with a certain audio delay. To give you an idea...
Contents of .bat:
@echo off
SET DIR=D:\remux\one
SET AUDIODELAY=-98
FOR %%A IN (*.avi) DO (copy /y remux.vcf temp.vcf > nul
snr32.exe -r temp.vcf DIR "%DIR%" /a /ln > nul
snr32.exe -r temp.vcf ORIGAVINAME "%%A" /a /ln > nul
snr32.exe -r temp.vcf AUDIODELAY %AUDIODELAY% /a /ln > nul
snr32.exe -r temp.vcf NEWAVINAME "%%~nA-remuxed.avi" /a /ln > nul
snr32.exe -r temp.vcf \ / /a /ln > nul
nandub.exe /stemp.vcf /x
del temp.vcf > nul
del temp.sr0 > nul)
Contents of remux.vcf:
VirtualDub.Open("DIR\ORIGAVINAME",0,0);
VirtualDub.audio.SetInterleave(1,500,1,0,AUDIODELAY);
VirtualDub.audio.SetMode(0);
VirtualDub.video.SetMode(0);
VirtualDub.SaveAVI("DIR\NEWAVINAME");
neo75903
21st June 2004, 12:05
where can i find snr32.exe?
did a search on yahoo, but returned null.
Matthew
22nd June 2004, 00:04
http://kresin.belgorod.su/fileut.html
:)
neo75903
22nd June 2004, 00:32
Thx!
Looks like the thing i am lookign for.
again thx :)
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.