Results 1 to 8 of 8
-
12th Jan 2012, 09:36 AM #1OPBanned
Need help on how to start with this batch program
hello,
here is the background.(you may skip this :YAWN
I have created a command line sequence for taking out the audio and video stream(s) from a mpeg-ts file and muxing into mkv for portability reasons.here are the steps that are involved. For this i already have a file called test.ts
in a folder called d:\recording\test.ts
Code:I check for the file name(in this case test.ts)
Code:1. First step i do is move the file from d:\recording\test.ts to d:\eac3to\test.ts using Command Prompt
Code:2. I use eac3to to demux video to video.mkv and audio to audio.aac
Code:3.move audio.aac and video.mkv to d:\mkvtoolnix\ and mux to output.mkv to the folder d:\outputfolder\output.mkv using mkvmerge
Code:4.i check if the output.mkv is ok and then delete test.ts(source file).I also delete audio.aac and video.mkv
i`m not asking for a complete .bat file here.i want a set of commands that may come in handy.
regards
sceneguy
NS:all the above steps are done to work 100% manually.looking for a way to automate the process.
thankssceneguy Reviewed by sceneguy on . Need help on how to start with this batch program hello, here is the background.(you may skip this :YAWN:) I have created a command line sequence for taking out the audio and video stream(s) from a mpeg-ts file and muxing into mkv for portability reasons.here are the steps that are involved. For this i already have a file called test.ts in a folder called d:\recording\test.ts I check for the file name(in this case test.ts) 1. First step i do is move the file from d:\recording\test.ts to d:\eac3to\test.ts using Command Prompt2. I use Rating: 5
-
12th Jan 2012, 04:47 PM #2Member
if you are know programming in C# or any .NET Windows Form Language, it have process invoking techniques by which you can run the CMD commands steps by steps.
if you need help i can it for you
-
13th Jan 2012, 09:46 AM #3OPBanned
i dont know much of c# or .net and dont want to learn them from scratch.i know c and java very well,by very well i mean coding applications.
any help is apprciated.which do you recommend,c# OR .net
-
15th Jan 2012, 09:10 AM #4MemberWebsite's:
eotips.comi know C# can u please tell they function name to invoke process ?
-
15th Jan 2012, 04:03 PM #5Respected Member
You are not saying whether the batch is for a linux or windows process??
But I will presume windows command line .. This would be a simple structure but you would have to know what the return codes are from each program you run upon completion or failure.
PHP Code:IF ERRORLEVEL 255 GOTO Label255
IF ERRORLEVEL 254 GOTO Label254
?
?
?
IF ERRORLEVEL 2 GOTO Label2
IF ERRORLEVEL 1 GOTO Label1
GOTO Label0
:Label255
(commands to be executed at errorlevel 255)
GOTO End
?
?
?
:Label1
(commands to be executed at errorlevel 1)
GOTO End
:Label0
(commands to be executed at errorlevel 0, or no errorlevel)
:End
-
16th Jan 2012, 02:03 PM #6OPBanned
@Lock Down : Sorry for not mentioning platform.Its windows. The commands always will be success.(99%).How to make it execute the next command after the previous one process has closed?
Thanks for your time.
-
8th Feb 2012, 04:12 PM #7MemberWebsite's:
Elite.SO Defendos.com Motionite.comYou can move files using the move command like this:
Code:move /-y "d:\recording\test.ts" "d:\eac3to\"
Code:if exist "d:\mkvtoolnix\output.mkv" ( echo Everyting is OK! ) else ( echo Error, failed! )
-
9th Feb 2012, 01:31 AM #8OPBanned
hey one more thing,is it possible to use a for loop to see if the extension is a .ts . then do the same process till all files have been exausted/deleted?
Sponsored Links
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
Not Selected for The Program (MEPI- Student Leaders Program)!!
By DoctorX in forum General DiscussionReplies: 0Last Post: 9th Feb 2011, 04:29 PM -
some batch help ?
By Porsche_maniak in forum Web Development AreaReplies: 7Last Post: 22nd Dec 2010, 09:42 PM -
[BATCH] Game!
By l0calh0st in forum Web Development AreaReplies: 2Last Post: 18th Sep 2010, 04:58 PM -
Need some invoice program source code/or program only
By Nikolasr in forum Webmaster DiscussionReplies: 2Last Post: 1st Feb 2010, 10:55 AM -
Want to start affiliate program
By John in forum Webmasters, Money MakingReplies: 0Last Post: 3rd Aug 2009, 12:41 PM
themaCreator - create posts from...
Version 3.07 released. Open older version (or...