View Full Version : mpeg2 from cmd line
peho
13th January 2008, 00:54
I record TV-shows in mjpeg to my harddrive using WebShifter together with IUVcr.
Today I batch convert it with a script in the early morning to divx and xvid using virtualdub.
I would now like to convert it to mpeg2 from the script.
What program should I use?
/Peter
Guest
13th January 2008, 13:52
HCEnc MPEG2 encoder has a command line capability.
http://www.bitburners.com/hc-encoder/
Darksoul71
15th January 2008, 20:07
Hm, both HCEnc and QuEnc would be valid options. Unfortunately none of those two great encoders does support resize. If your target is DVD youīll either have to use AVISynth to automatically resize to DVD compliant resolution or you have to capture in a DVD compliant resolution.
Which res do you typically capture your AVIs ?
What would be your target MPEG2 format ?
(e.g. NTSC DVD -> 720x480)
Boulder
15th January 2008, 20:29
Mencoder can resize and encode to MPEG2.
Darksoul71
15th January 2008, 20:34
@Boulder: yep, true ! I forgot about MEncoder.
I can not comment on Quality and Multicore Support for this one though.
Edit: You can grab
ffmpeg here:
http://ffdshow.faireal.net/mirror/ffmpeg/
and Mencoder/MPlayer here:
http://sourceforge.net/project/showfiles.php?group_id=205275&package_id=245259&release_id=546040
If you feeling like doing something more than Batchfiles then drop me a note. I have some pretty nice AutoIt scripts which I use for batch processing my TV captures. Just an offer....
peho
19th January 2008, 15:11
Thanks, I will try them all.
I did try HCenc directly, but got caught with the frameserving part (never been doing d2v-files), been reading about that.
I don't need to resize them. I record them in PAL DVD, 720x576.
I will check autoit. I use VBscript today. Does autoit has it's own scripting language or why do use it?
Darksoul71
19th January 2008, 19:28
Hey peho,
I did try HCenc directly, but got caught with the frameserving part (never been doing d2v-files), been reading about that.
Using AVISynth as frameserver is no voodoo. Simply open up a text editor and write the following line in it:
AVISource("C:\My Capture.avi") -> If this is the name of your captured AVI file.
Then save it as C:\MyScript.avs (for example)
Then you are able to open it up in HCEnc. May be HCEnc complains about the Colorspace. You might have to add "ConvertToYV12()" at the end. This forces the AVISynth file to be decoded in YV12 colorspace.
Thatīs a benefit of using MEncoder for example that it reads a lot of formats without being dependent on any frameserver.
In regard to AutoIt:
IMHO AutoIt is superior to VBScript as VBScript is superiour to Batch scripts. Much easier to code, much more control over the environment, etc.
For someone with decent VisualBasic knowledge itīs really simply to learn.
You can grab it here:
http://www.autoitscript.com/autoit3/
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.