News:

--

Main Menu

Command line confusion...

Started by Hugh232, March 24, 2013, 03:37:33 AM

Previous topic - Next topic

Hugh232

New to the command line, and having trouble.

I haven't found any answers that helped at http://www.avidemux.org/admWiki/doku.php?id=using:command_line_usage

Basically I'm trying to batch-convert a folder of uncompressed video to compressed video on Windows.  The script to make the batch is no problem, but the command to make the compression is giving me trouble. Both the source and destination formats are in AVI.

Minimally, I would think this would work, but doesn't...
avidemux.exe  --load %1 --video-codec xvid4 --audio-codec mp3 --save %2 --output-format avi --quit

I've tried all the formats listed, and no matter what format I choose, the outcome is uncompressed copies of both audio/video.  What am I doing wrong?  Or what do I need to add to allow the compression codec to run?

Jan Gruuthuse

#1
You could try this.
Load your video in avidemuxGUI. Make settings for what you require.
Then from main menu: File: Tinypy Project: Save As Project. Give a recognizable name like: avi2avivid4
This would be saved in the last folder where you saved a video.
Now edit this file with text editor like notepad++ (keeps the text structure)

Remove these similar lines and leave the rest
adm.loadVideo("/media/1Processed/Demo/fraps.avi")
adm.clearSegments()
adm.addSegment(0, 0, 12049598)
adm.markerA = 0
adm.markerB = 12049598

now you could call this settings file from your batch file at the line calling avidemux:

avidemux.exe --load "%%f" --run avi2avixvid4.py --save "%%f.avi" --quit
moreinfo: Batch processing