View Full Version : command line SVCD encoding
Zodiacal
9th January 2003, 21:08
how can i make my mpeg2 streams into a SVCD via a dos command line?
htc10825
10th January 2003, 18:30
Only knowing GUI tools - but you can use a program such as AutoIt/AutoMate to make the proccess automatically.
Zodiacal
10th January 2003, 20:23
i might want to use my computer while its converting. those macro programs need need control of the screen...
htc10825
11th January 2003, 14:29
I'm so sorry...
But you can still use your computer during encoding if you do it step-by-step with a gui program(CCE or TMPG). As soon as the encoding starts you can do other thing(but the comuter will be very slow, otherwise you should by a new one).
Zodiacal
11th January 2003, 20:27
i want to be able to change the proccess priorty so that it won't bog down my machine but other people can still use the computer i.e. girlfreind. and if autoit is running she might mess up the functions it does. must be command line. or api.
htc10825
13th January 2003, 14:23
But you can still use your computer during encoding if you do it step-by-step with a gui program(CCE or TMPG). As soon as the encoding starts you can do other thing
Zodiacal
13th January 2003, 17:19
but if it hasn't started the encoding yet and someone uses the computer it will probably mess up. theres gota be a way. i have used avisynth with mpeg2dec.dll and/or mpegdecoder.dll and mpadecoder.dll to get the mpeg2 audio and video streams to frame server as .avi files. so if anyone knows of a command line program that converts .avi's to mpeg2's that would be great.
htc10825
13th January 2003, 19:06
but if it hasn't started the encoding yet and someone uses the computer it will probably mess upcan you mess up a program that hasn't started jet?
Zodiacal
13th January 2003, 19:07
:) what if it trys to start while your using the computer?
htc10825
13th January 2003, 19:41
im my suggestion you should start every program manually. After that, say the TMPG encoding time is 720 hours, then you have the time for a mouth do everything with the computer except kill it or shutdown manually. I donnt understand where is your problem.
Zodiacal
13th January 2003, 19:45
im extracting shows from my tivo via a download manager and want to automaticly transcode them when its done downloading them.
htc10825
14th January 2003, 17:17
then use the program "automate".
Zodiacal
15th January 2003, 00:40
i use a html download manager to download my tivo shows. then i have them Open after they are done downloading. my windows is setup to run a program for these type of files when they are open. if i have that command call Autoit or automate it could get confused if multiple automate/autoit sessions are running concurrently.
htc10825
15th January 2003, 14:26
You've posted this arguments twice - Have you read the manual of "automate"(it is very conplex, one should need 1-2 weeks for it, but you can also read it through in 2-4 hours without really understand it)? It is DIFFERENT from AutoIt. It can handle the "process", not only the "window".
Zodiacal
16th January 2003, 02:03
i don't see that feature. it seems to need control of the active window.
htc10825
18th January 2003, 15:17
If you do not find - you can still do so:
Under Windows XP(if not, then install it!) create a extra user called "Video-Encoding" and do all the automation jobs there. Then use the "user-swith" feather of WinXP to switch to other user like "girl friend" and work normal.
Zodiacal
18th January 2003, 19:22
so it has to switch users every time it needs to interact with the desktop? nah i need it to be more of a background proccess.
htc10825
21st January 2003, 13:27
when you switch the user it will not interact with the desktop-windows and all running in background.
Zodiacal
26th January 2003, 17:21
how would i know when one job is finished and to start on another one? im using cinnamacraft encoder and the encoding dialog box only has a cancel button on it and it doesn't popup another notification window before canceling it just cancels.
htc10825
27th January 2003, 15:31
This is a question of the skill of programming - not the topic of this thread and this forum.
In fact, even though you could find a commandline encoder, you would encounter the same problem. In Multi-taskiing OS like Win98/XP/2K/ME all the win32 programs in a batch will return the control to the batch file as soon as they have been started. So all the Win32 program in a batch file will start almost simultaneously. You habe to add extra script to check the condition for starting point of each program.
Zodiacal
27th January 2003, 19:23
i hate it when programmers make programs like that. i guess i could try calling it from the batch file with START prefixed and if its a good encoder it should have an exit option. if you know of any reall command line encoders please please let me know. i guess i could write a program to find the window handle and read the text of the controls to see if its finsihed encoding but a command line encoder would be alot less of a pain.
htc10825
28th January 2003, 17:00
threre is a few (GNU-)programs that handle this problem well:
GKnote for DivX encoding
DVD2SVCD for VCD/SVCD encoding
They all are automation tools special designed for DVD->CD conversion and call the external programs in order. Perhaps you can read the source code to see how to realise it.
Or you try to solve it in your way - for example:
check if the result file exist - (Win98/MW) or check if you can rename the file (win2k/XP)
Zodiacal
28th January 2003, 21:53
doesn't dvd2svcd only import vobs?
htc10825
30th January 2003, 14:50
I've never installed/used DVD2SVCD - but in forum I've read someone used it to convert .avis etc. But this is not the point. You should only to know how it controls the other GUI programs(CCE/TMPG) - this is the key you have to get.
Otherwise plz consider my suggestion (win9x and Win2k/XP treat the tmp files different)
Zodiacal
30th January 2003, 19:08
know where the source code is available off hand?
htc10825
31st January 2003, 18:26
contact the author, perhaps on their home page - as I've stated that I donnt know much about such "newbie only GUI" so cannt help you in this thing. Searching instead of question.
Why do you not use the way I've indicated?
Nocturno
5th February 2003, 05:06
i've used the autoit dll in a vb project to automate cce before.. the trick is that the dll can turn off the keyboard and mouse functions a few seconds,bring cce to front,push buttons,enter shit,start cce and then hand back control to the user. i still have to look for an api to set the process priority back, but this works even though the user is doing other things.. 'he/she'll only be annoyed that she/he lost control a few secs,but it works
htc10825
5th February 2003, 18:36
I think he wants to make some "script programming", not a real p-language. But that is also fine if you can help him to do the VB job.
Nocturno
6th February 2003, 05:17
i might be able to help him as i'm using the code for a dvd2svcd like tool i'm making for myself in vb.
my program does just what i said,starts cce,turns off keyboard and mouse functions for a minute,loads an ecl file it created,presses the encode button then hands back control to the user.. it lies "dorment" till the mpeg encoding window (with the cancel button) closes then it reactivates , brings the cce screen to the front and closes it.
but i have the feeling it's not quite what he's looking for.
in the development forum they're working on a commandline mpeg4 (xvid) encoder.. maybe they could help you out altough i don't know of many mpeg encoding codecs as such
Zodiacal
6th February 2003, 06:11
what version of cee are you using with your vb app?
Nocturno
23rd February 2003, 04:43
v 2.5 .. this can be adapted for 2.66 versions, but i don't own 2.6x version.
you could make an autoit executable with the autoit package that does the same.
i'm attempting to make vb do it with sendkeys and window recognision,to avoid the autoit.dll being required.
Zodiacal
23rd February 2003, 07:20
thats sounds cool but i have to ask does your app check the file length and set them in the encoding options in the .ecl file? if not whats the advantage of creating an .ecl file insted of just opening the file using the default svcd profile? right now i just have automate open my video and use the default svcd profile for encoding.
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.