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 Display Modes
Old 2nd January 2005, 01:05   #1  |  Link
Moitah
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.
Moitah is offline   Reply With Quote
Old 5th January 2005, 03:20   #2  |  Link
thop
*
 
thop's Avatar
 
Join Date: Oct 2002
Posts: 268
Thanks, works great in linux. You have to install 58MB additional stuff to make it run, but it's worth it
__________________
500.
thop is offline   Reply With Quote
Old 5th January 2005, 19:52   #3  |  Link
albertgasset
Registered User
 
albertgasset's Avatar
 
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
I'm not sure, but I suppose it's fault of DotGNU.
albertgasset is offline   Reply With Quote
Old 6th January 2005, 02:16   #4  |  Link
Moitah
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
Moitah is offline   Reply With Quote
Old 6th January 2005, 13:42   #5  |  Link
albertgasset
Registered User
 
albertgasset's Avatar
 
Join Date: Jan 2003
Location: Catalonia
Posts: 68
Quote:
Originally posted by Moitah
@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?
Yes. I've also tried packed and unpacked MPEG4, and even non-MPEG4 AVIs, and it always gives the same error; these files work as expected with MONO. The error message appears before starting the loading of the AVI file, so I think it has nothing to do with the file used.

I am using the irlun binary from Debian, I'll compile it myself and I'll let you know how it works.
albertgasset is offline   Reply With Quote
Old 7th January 2005, 13:43   #6  |  Link
albertgasset
Registered User
 
albertgasset's Avatar
 
Join Date: Jan 2003
Location: Catalonia
Posts: 68
Quote:
I'll compile it myself and I'll let you know how it works.
Same error.
albertgasset is offline   Reply With Quote
Old 6th March 2005, 11:38   #7  |  Link
Pulver
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) ?
Pulver is offline   Reply With Quote
Old 7th March 2005, 13:51   #8  |  Link
Moitah
Registered User
 
Join Date: Feb 2004
Location: Virginia, USA
Posts: 334
Quote:
Originally posted by Pulver
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) ?
You're welcome.

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
Moitah is offline   Reply With Quote
Old 7th March 2005, 14:16   #9  |  Link
karellen
Registered User
 
Join Date: Mar 2005
Posts: 7
Many thanks.

Just switched to mac OS X and was plodding along using Virtual PC to run MPEG4Modifier - took a lifetime.

Installed the command line tool, got it running first time without any problems - saved my life!
karellen is offline   Reply With Quote
Old 7th March 2005, 14:48   #10  |  Link
Moitah
Registered User
 
Join Date: Feb 2004
Location: Virginia, USA
Posts: 334
Quote:
Originally posted by karellen
Many thanks.

Just switched to mac OS X and was plodding along using Virtual PC to run MPEG4Modifier - took a lifetime.

Installed the command line tool, got it running first time without any problems - saved my life!
Mac is big endian, right? Have you checked to make sure the output works okay?
__________________
moitah.net
Moitah is offline   Reply With Quote
Old 7th March 2005, 16:25   #11  |  Link
karellen
Registered User
 
Join Date: Mar 2005
Posts: 7
Just watched a corrected xvid on my xvid dvd player and it worked fine - the only minor issue was that it wouldn't fast-forward.
karellen is offline   Reply With Quote
Old 8th March 2005, 00:41   #12  |  Link
Moitah
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.
Moitah is offline   Reply With Quote
Old 8th March 2005, 07:47   #13  |  Link
karellen
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
karellen is offline   Reply With Quote
Old 8th March 2005, 15:15   #14  |  Link
Moitah
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
Moitah is offline   Reply With Quote
Old 8th March 2005, 20:26   #15  |  Link
Moitah
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
Moitah is offline   Reply With Quote
Old 10th March 2005, 23:16   #16  |  Link
tvdpoll
Registered User
 
Join Date: Feb 2005
Posts: 23
Works fine with win2k. Thx for this nice tool!
tvdpoll is offline   Reply With Quote
Old 11th March 2005, 00:10   #17  |  Link
karellen
Registered User
 
Join Date: Mar 2005
Posts: 7
Quote:
Originally posted by Moitah
@karellen: I put up a new version of UnpackCL. Next time you try it, please let me know if fast-forwarding works. Thanks.
Just tested and fast-forwarding is now working.

Thank you, you are a true gentleman.
karellen is offline   Reply With Quote
Old 11th March 2005, 01:10   #18  |  Link
Moitah
Registered User
 
Join Date: Feb 2004
Location: Virginia, USA
Posts: 334
Quote:
Originally posted by karellen
Just tested and fast-forwarding is now working.

Thank you, you are a true gentleman.
No problem. I'm glad it works now .
__________________
moitah.net
Moitah is offline   Reply With Quote
Old 14th March 2005, 09:39   #19  |  Link
Infirmus
Registered User
 
Infirmus's Avatar
 
Join Date: Aug 2004
Posts: 20
Any posibility of adding a display of how many consec B-VOP's there are?

Tah.
Infirmus is offline   Reply With Quote
Old 14th March 2005, 16:05   #20  |  Link
Moitah
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
Moitah is offline   Reply With Quote
Reply

Thread Tools
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:15.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.