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. |
|
|
#1 | Link |
|
Registered User
Join Date: Feb 2004
Location: Virginia, USA
Posts: 334
|
Tool to unpack MPEG4 ASP AVIs
UPDATE: This has been replaced by MPEG4 Modifier CL
I made a command line tool based on MPEG4 Modifier to remove packed bitstream from MPEG4 ASP AVIs (i.e. XviD, DivX). It is written in C#, but it compiles and runs fine with Mono. A few people have tested it in Linux, with no problems reported (it will run in other OSes as long as you have Mono, even big endian systems such as Mac). Usage should look something like: mono UnpackCL.exe [-i] source_file [dest_file] You may omit dest_file just to see whether or not packed bitstream was used (you don't have to check before unpacking, though, if the video isn't packed it will simply stop after this is determined). Use the '-i' switch for detailed info about the video. Download: v1.2.1 (Binary and Source)
__________________
moitah.net Last edited by Moitah; 27th October 2006 at 09:27. |
|
|
|
|
|
#3 | Link |
|
Registered User
Join Date: Jan 2003
Location: Catalonia
Posts: 68
|
It works well with Mono 1.0 in Debian, great work!
I've also tried with DotGNU Portable.NET 0.6.10 (1/3 the size of Mono). The source compiles fine but I get an "index of string is out of range" error when running the program: Code:
$ ilrun UnpackCL.exe ss.avi UnpackCL v1.0.0 by Moitah Based on MPEG4 Modifier v1.3.0 http://www.moitah.net/ Error: L'índex de la cadena està fora del rang |
|
|
|
|
|
#4 | Link |
|
Registered User
Join Date: Feb 2004
Location: Virginia, USA
Posts: 334
|
@albertgasset: I just tested with cscc and ilrun (DotGNU Portable.NET 0.6.10) in Windows, seems to compile/run here. Is that the same AVI you used to test while running with Mono?
__________________
moitah.net |
|
|
|
|
|
#5 | Link | |
|
Registered User
Join Date: Jan 2003
Location: Catalonia
Posts: 68
|
Quote:
I am using the irlun binary from Debian, I'll compile it myself and I'll let you know how it works. |
|
|
|
|
|
|
#7 | Link |
|
Registered User
Join Date: Feb 2002
Posts: 35
|
Thanks for this great tool!
It works perfect on my Mandrake-machine. Any plans to include some features from the GUI (Windows) version ? I would love to see some information about the file, such as Qpel, GMC etc. Am I right when I assume that it is impossible to get the GUI version to work under Linux (with mono and gtk-sharp) ? |
|
|
|
|
|
#8 | Link | |
|
Registered User
Join Date: Feb 2004
Location: Virginia, USA
Posts: 334
|
Quote:
I didn't plan on adding more features to the command line version. The GUI version may run in Mono soon, as they are working on their WinForms support. Of course the GUI wouldn't run as-is with GTK#, but I suppose someone could rewrite the GUI.
__________________
moitah.net |
|
|
|
|
|
|
#10 | Link | |
|
Registered User
Join Date: Feb 2004
Location: Virginia, USA
Posts: 334
|
Quote:
__________________
moitah.net |
|
|
|
|
|
|
#12 | Link |
|
Registered User
Join Date: Feb 2004
Location: Virginia, USA
Posts: 334
|
@karellen: Could you run this command line program in Mono on OS X, please? It's a little program I just wrote to test the behavior of BitConverter/BinaryReader/BinaryWriter on big endian systems. Please paste the output in this thread, and you may delete the "endiantest.bin" file it creates. Thank you.
EDIT: I looked at Mono's source code, it looks like BinaryReader/BinaryWriter are always Little Endian, but BitConverter depends on your system. This could be why you are unable to fast-forward, as the code to update the AVI index uses BitConverter. I would still like to see the output from the program above, if you don't mind.
__________________
moitah.net Last edited by Moitah; 8th March 2005 at 01:27. |
|
|
|
|
|
#13 | Link |
|
Registered User
Join Date: Mar 2005
Posts: 7
|
Here you go -
Powerbook-G4:~ james$ mono endiantestcl.exe BitConverter.IsLittleEndian: False BitConverter.GetBytes: Big Endian BitConverter.ToUInt32: Big Endian BinaryWriter.Write: Little Endian BinaryReader.ReadUInt32: Little Endian |
|
|
|
|
|
#14 | Link |
|
Registered User
Join Date: Feb 2004
Location: Virginia, USA
Posts: 334
|
Thanks,
This means the output file will have an invalid index. I will fix this soon.
__________________
moitah.net |
|
|
|
|
|
#15 | Link |
|
Registered User
Join Date: Feb 2004
Location: Virginia, USA
Posts: 334
|
@karellen: I put up a new version of UnpackCL. Next time you try it, please let me know if fast-forwarding works. Thanks.
__________________
moitah.net |
|
|
|
|
|
#17 | Link | |
|
Registered User
Join Date: Mar 2005
Posts: 7
|
Quote:
Thank you, you are a true gentleman.
|
|
|
|
|
|
|
#18 | Link | |
|
Registered User
Join Date: Feb 2004
Location: Virginia, USA
Posts: 334
|
Quote:
.
__________________
moitah.net |
|
|
|
|
|
|
#20 | Link |
|
Registered User
Join Date: Feb 2004
Location: Virginia, USA
Posts: 334
|
Well, it should be pretty easy to add the "Video Info" feature, I'll do it tonight if I get a chance.
__________________
moitah.net |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|