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

Reply
 
Thread Tools Search this Thread Display Modes
Old 21st April 2009, 15:48   #41  |  Link
halsboss
likes to tinker
 
Join Date: Jan 2004
Location: girt by sea
Posts: 635
Moitah has done an absolutely brilliant job with mpeg4modifier and has knowledge/skills >>> than I. I'm betting it'll never be able to reach motiah's heights.

I am currently looking at vb6 commandline version 0.1a which only does a form of pack/unpack on well-formed mpeg4-asp+mp3 AVIs. If I had C skills and a C compiler it might be easier... but I don't. The raw non-microsoft-api avi (riff file) parsing/demuxing seems to be working in debug mode for <1Gb files so far, I must take a look at mpeg4modifier to see how motiah did it. So far I have zero google hits for VB mpeg4-asp parsing code to help me on my way
halsboss is offline   Reply With Quote
Old 28th April 2009, 04:34   #42  |  Link
halsboss
likes to tinker
 
Join Date: Jan 2004
Location: girt by sea
Posts: 635
Hmm, how to do the "strikethrough" font. Not knowing java, I'd mistakenly thought it was going to be relatively like firefox addons where you can edit the source, bung it into .JAR appropriately, and off you go. Nope, lack of knowledge got my hopes up.
Quote:
Well ! Came across a java version by barakori which was based on mpeg4modifierCL 1.3.4 (unpack only). So I' have a look at a switch to trying to update this to unpack/pack only from mpeg4modifierCL 1.4.4 although it seems a somewhat daunting task after considering the changelog (and not knowing either java nor C# )...
http://www.xmixdrix.com/tools/unpackmp4.html
http://forum.doom9.org/showthread.php?t=105923

Last edited by halsboss; 28th April 2009 at 05:03.
halsboss is offline   Reply With Quote
Old 10th May 2009, 14:35   #43  |  Link
Nexin
Registered User
 
Join Date: Dec 2007
Posts: 150
Intresting..
Quote:
If you choose to download and view the source, please remember this is a rough port from C#, hence many of the names start with an upper-case letter, which is against the Java standard
So there is code in C# i wonder if motiah is coding this in C# before converting it to .NET. If so it would be no problem for motiah to release a C# version win32 of this tool, how about it motiah.
Nexin is offline   Reply With Quote
Old 10th May 2009, 15:00   #44  |  Link
halsboss
likes to tinker
 
Join Date: Jan 2004
Location: girt by sea
Posts: 635
Isn't C# a .NET product with .NET features ? I'd thought the changelog said something like that.

Anyway, most of the way there now with a VB6 prog with unpack/pack only. Only mpeg4 style bitstream handling to go (have to fight with the VB6's lack of unsigned datatypes and no native bitshifting instructions and some other deficiencies in language design) and then the "startcode packet" rearranging (I have their file positions located in tables) and then AVI file writing with a new odml2 index (I ignore the AVI index and rebuild from scratch). A good thing Motiah's code is there to clarify what's what; the java code is good too, just have to remember it's big-endian byte positioning. I wish I knew C and had a free compiler, it might have been a lot easier. All done with dynamic arrays, it takes quite a lot of memory (a few hundred meg; but that's why we buy memory - to use it) and is NOT built for speed I read somewhere that VB6 runtime comes with XP and later, which suits my only objective. Now, I don't think I can post an exe because of licensing ...

Last edited by halsboss; 10th May 2009 at 15:18.
halsboss is offline   Reply With Quote
Old 10th May 2009, 16:49   #45  |  Link
Nexin
Registered User
 
Join Date: Dec 2007
Posts: 150
Yes you can post a pm for where you have placed it

I didn't know C# was .net i thought it was C or C+ or C++ or a variant of C. You know how ProjectX (i know you do) had the java bits it needed self contained. Maybe you could do similar, then the tools appeals to everyone, instant run abilty. Maybe even someone make a gui frontend for it.

Big endian does that mean its not optimised for intel cpu's ?
I don't know the consequence that it may imply, btw i only use intel cpu's.
Nexin is offline   Reply With Quote
Old 27th May 2009, 17:55   #46  |  Link
Moitah
Registered User
 
Join Date: Feb 2004
Location: Virginia, USA
Posts: 334
I'll be impressed if you get it working in VB6 . Actually it was the language I started with (well, VB5) and used for 4 years before I switched to C#.

But why all this effort to avoid .NET? What about Mono? Last time I checked, MPEG4 Modifier runs fine with Mono in Windows except for loading a file by drag-and-drop.
__________________
moitah.net
Moitah is offline   Reply With Quote
Old 28th May 2009, 11:29   #47  |  Link
halsboss
likes to tinker
 
Join Date: Jan 2004
Location: girt by sea
Posts: 635
My sympathies, battling with VB's lack of some fundamentals; it was conceived in the olden days. The effort is free (only my time) and I'd like a clean, fast, less bloated and less vulnerable PC, which means just now ignoring .net and its brethren. Some time I might have to bite the bullet, but not just yet. The risk/bloat/value equation is not yet positive for me, yours is the only essential program requiring .NET which I've come across for my small niche needs. I admit to stalling it for the moment, doing other things, prior to implementing what I know will be slow bitstream handling.
halsboss is offline   Reply With Quote
Old 12th November 2010, 20:54   #48  |  Link
Gew
Observer
 
Gew's Avatar
 
Join Date: Jul 2008
Location: Kingston, Jamaica.
Posts: 113
Just so everyone knows. The CLI version runs flawless over WINE (Linux).
The GUI version seems to be a problem, at least with Ubuntu 10.10.

Thanks for a great application Moitah!


Ty in adv~
Gew is offline   Reply With Quote
Old 31st December 2010, 22:49   #49  |  Link
jarr_d
Registered User
 
Join Date: Jun 2007
Posts: 5
hey trying to batch mode --par 43ntsc all the files in a folder to switch their display pixels to 4:3

Could use a bit of help with the command line.

much thanks,

FOR %%I IN (*.avi) DO mmcl.exe --par 43ntsc %%I

isnt working....
jarr_d is offline   Reply With Quote
Old 31st December 2010, 23:02   #50  |  Link
b66pak
Registered User
 
b66pak's Avatar
 
Join Date: Aug 2008
Location: The Land Of Dracula (Romania - EU)
Posts: 934
try:

Code:
FOR %%I IN (*.avi) DO mmcl.exe --par 43ntsc %%I %%~nI.43ntsc.avi
_
__________________
if you ask a question and somebody give you the correct answer don't forget to leave a "thank you" note...
Visit The Land Of Dracula (Romania - EU)!
b66pak is offline   Reply With Quote
Old 2nd January 2011, 05:51   #51  |  Link
jarr_d
Registered User
 
Join Date: Jun 2007
Posts: 5
much thanks for the help

However, I get "%%I was unexpected at this time."

Running Win7 64-bit if that helps...

And it can write back to the exact same file - that's fine!
jarr_d is offline   Reply With Quote
Old 3rd January 2011, 21:53   #52  |  Link
jarr_d
Registered User
 
Join Date: Jun 2007
Posts: 5
aha

from command line use
FOR %I IN (*.avi) DO mmcl.exe --par 43ntsc "%I" "%I~n.avi"

from batch file use the double %%'s

much thanks,
jarr_d is offline   Reply With Quote
Old 3rd January 2011, 22:24   #53  |  Link
jarr_d
Registered User
 
Join Date: Jun 2007
Posts: 5
to change Display Aspect ratio use:

FOR %I IN (*.avi) DO mmcl.exe --dar custom 4:3 "%I" "%I.avi"

this will give you files with .avi.avi extensions
jarr_d is offline   Reply With Quote
Old 29th January 2011, 20:48   #54  |  Link
Aarone
Registered User
 
Join Date: Jan 2011
Posts: 3
Quote:
Originally Posted by Moitah View Post
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.
I just want to thank you for sharing this and will try it as soon as possible.

Thanks
Aarone
__________________
CHEAP DATA RECOVERY
Aarone is offline   Reply With Quote
Old 2nd July 2011, 06:57   #55  |  Link
_ck_
Registered User
 
Join Date: Apr 2006
Posts: 43
Not sure if you are still working on this (and thanks for such a great tool)

two requests:

fourcc change support ie. --fourcc XVID and --fourcc-hint XVID (there seems to be a descriptor field)

and user data support like in the gui --user-data "Xvid0063"

fourcc support would be a biggie because I do not believe there is any other batch tool that can do bulk 4cc changes, only the old avicc gui tool one-at-a-time

- I have a modern standalone player that refuses to play media with DX50 code, probably for DIVX licensing reasons, but change it to XVID and bingo, same media works fine - same thing for weird user data for reasons I don't understand, probably bad coding on their part

Last edited by _ck_; 2nd July 2011 at 07:01.
_ck_ is offline   Reply With Quote
Old 21st July 2011, 15:43   #56  |  Link
Thingy
Registered User
 
Join Date: Mar 2005
Posts: 1
Here is another batch script that let's you drop one or multiple files onto an unpack.bat file in windows 7, not tested on other platforms.
Then they will be placed in E:\ as for this script, you can change that path to fit your needs...

Code:
@ECHO OFF
ECHO mmcl unpacker

:Loop
IF "%~1"=="" GOTO Endloop
	ECHO Unpacking: %~n1
	D:\Downloads\mmcl.exe --unpack "%~f1" "e:\%~n1%~x1"
	SHIFT
GOTO Loop
:Endloop
PAUSE
Thingy is offline   Reply With Quote
Old 6th June 2012, 10:44   #57  |  Link
nbarzgar
Registered User
 
nbarzgar's Avatar
 
Join Date: Jul 2004
Location: Germany
Posts: 53
Set DAR 3:2

Thanks for a great tool!
I'd like to batch change the DAR of a number of .avi-files to 1.5.

Using the GUI I set DAR Custom to 3:2 and MediaInfo afterwards shows "1.500" as aspect ratio, which is exactly what I am aiming at.
Now what would I enter in the bat-file as par-value?
Entering '--par custom 3:2' results in "2.000" as aspect ratio.

So what should I do?
Thanks in advance for any help!
__________________
"There are more things in heaven and earth, Horatio,
Than are dreamt of in your philosophy." Shakespeare, Hamlet
nbarzgar is offline   Reply With Quote
Old 6th June 2012, 14:16   #58  |  Link
b66pak
Registered User
 
b66pak's Avatar
 
Join Date: Aug 2008
Location: The Land Of Dracula (Romania - EU)
Posts: 934
9:8
_
__________________
if you ask a question and somebody give you the correct answer don't forget to leave a "thank you" note...
Visit The Land Of Dracula (Romania - EU)!
b66pak is offline   Reply With Quote
Old 6th June 2012, 18:19   #59  |  Link
nbarzgar
Registered User
 
nbarzgar's Avatar
 
Join Date: Jul 2004
Location: Germany
Posts: 53
Thanks for the fast reply! Worked like a charm!
How would I calculate that...? Perhaps you know a place, were it's already explained, something I overlooked? Would be great.
__________________
"There are more things in heaven and earth, Horatio,
Than are dreamt of in your philosophy." Shakespeare, Hamlet
nbarzgar is offline   Reply With Quote
Old 6th June 2012, 20:11   #60  |  Link
ckeays
Registered User
 
Join Date: Mar 2008
Posts: 2
Great little program! Thank you !!!!!

I am trying to use the command line version to change the display AR to 16:9. (I have used the GUI to do this many times, but only one file at a time)

here is my bat file:
Code:
@ECHO OFF
md unpack
FOR %%I IN (*.avi) DO mmcl.exe --dar 169ntsc "%%~fI" "%%~dpIunpack\%%~nxI"
pause
doesn't work as the GUI does. (after using the GUI, media info shows the correct 16:9, the command line version shows 4.103)

anyone help?

EDIT:

Ok I got it now using this cmd in win XP:
Code:
@ECHO OFF
md unpack
FOR %%I IN (*.avi) DO mmcl.exe --dar custom 16:9 "%%~fI" "%%~dpIunpack\%%~nxI"
pause
thanks again for a great program!

Last edited by ckeays; 6th June 2012 at 20:41. Reason: solved
ckeays is offline   Reply With Quote
Reply

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 23:39.


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