Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.

 

Go Back   Doom9's Forum > General > Linux, Mac OS X, & Co

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old 27th October 2006, 08:04   #1  |  Link
Moitah
Registered User
 
Join Date: Feb 2004
Location: Virginia, USA
Posts: 334
MPEG4 Modifier Command Line Version (Updated 2007-Jan-13)

Requires .NET Framework 2.0 or a recent version of Mono (with the latter it should run fine in Linux, OS X, etc).

Code:
Arguments: [switches] source_path [dest_path]
  dest_path is only optional with --info or --frame-list

Switches:
  --unpack             Remove packed bitstream.
  --pack               Add packed bitstream.
  --par <val>          Set the pixel aspect ratio, <val> is:
                         square - Square Pixel Shape
                         43pal - 4:3 PAL Pixel Shape
                         43ntsc - 4:3 NTSC Pixel Shape
                         169pal - 16:9 PAL Pixel Shape
                         169ntsc - 16:9 NTSC Pixel Shape
                         custom <width:height> - Custom Pixel Shape
  --field-order <val>  Change the interlaced field order, <val> is:
                         tff - Top Field First
                         bff - Bottom Field First
  --info               Display detailed information about the video.
  --frame-list <path>  Write a text file containing each frame's type,
                       timestamp, and size to the location specified.
  --always-write       Write a new file even if the video format isn't being
                       changed (useful for converting OpenDML AVIs < 2GB to
                       standard AVIs).
It has return values to aid scripting:
  • 0 = Everything was successful.
  • 1 = Some type of error (invalid arguments, couldn't open file, file was corrupt, etc).
  • 2 = Aborted because output file was already in the desired format (e.g. --unpack was used on a file that didn't have packed bitstream).

Example usage: mono mmcl.exe --unpack /home/jdp/Desktop/test.avi /home/jdp/Desktop/test-new.avi


.bat file for batch unpacking in Windows. Paste this into Notepad, correct the path to mmcl.exe, and save it as a .bat file in the same folder as your AVI files. Open the folder in Explorer and double-click the .bat file. The unpacked AVIs will be written in a new folder (only the ones that needed to be unpacked).

Code:
@ECHO OFF
md unpack
FOR %%I IN (*.avi) DO "C:\Program Files\MPEG4 Modifier\mmcl.exe" --unpack "%%~fI" "%%~dpIunpack\%%~nxI"

Download: MPEG4 Modifier CL v1.4.4 (Binary and Source)

Update: It's now possible to run MPEG4 Modifier GUI version in Mono since Mono 1.2.3 was released.
__________________
moitah.net

Last edited by Moitah; 13th February 2007 at 14:03.
Moitah is offline   Reply With Quote
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 04:13.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2017, vBulletin Solutions Inc.