Avidemux Forum

Avidemux => Windows => Topic started by: JG Media on September 28, 2012, 02:38:38 PM

Title: How to get rid of "Malformed Header" warning when using command line
Post by: JG Media on September 28, 2012, 02:38:38 PM
I'm running a conversion through Windows XP command line and I'm using a video file that I know has a bad avi header. The source is from Q-See cameras and their web-interface to record locally. I can't do anything about this since Q-See is the sloppiest/buggiest outfit I've ever come across when it comes to their native/propriety software. Nonetheless, my customer uses them and I have to work with what i have.

I am writing a script to record locally from the web-interface, convert the file to mp4 and then upload it to web automatically. Since this will all take place in command line, I was over-joyed that Avidemux could convert the files that I generate with the crappy Q-See interface that creates defective avi files. The only problem is that though all error messages and warning screens are supposed to be suppressed when using command line, I still get the error message, "Malformed Header", to which i have to click "OK" to make it go away and let the conversion take place.

Is there any way to suppress this warning as well?

(https://avidemux.org/smif/proxy.php?request=http%3A%2F%2Fwww.jgmedia.biz%2Ftemp%2Favidemux%2Fscreenshot1.png&hash=6fe801f09e84cd06f43d46b09ef123da4166c29d)
(https://avidemux.org/smif/proxy.php?request=http%3A%2F%2Fwww.jgmedia.biz%2Ftemp%2Favidemux%2Fscreenshot2.png&hash=819df78bef02e904b30b6896b2e5278f8068bdea)
Title: Re: How to get rid of "Malformed Header" warning when using command line
Post by: Jan Gruuthuse on September 28, 2012, 05:55:57 PM
if using the GUI:
QuoteYou can use ââ,¬â€œnogui option in case you want to suppress all dialogs (it must be first option!)
if using cli,
would it not help if you redirect an ascii (alt 013) from a text file?
< enter.txt
Title: Re: How to get rid of "Malformed Header" warning when using command line
Post by: mean on September 29, 2012, 06:23:34 AM
Also, If you have sample of such file, i could see if the warning is real or if it is a false alarm / too picky
Title: Re: How to get rid of "Malformed Header" warning when using command line
Post by: JG Media on September 29, 2012, 06:26:18 AM
-nogui didn't change anything. the exact same thing (as pictured in the original screenshot) happened.

and yes the header is malformed! Q-See makes some crappy software to run their equipment.

thanks for the help so far. i hope this thing can get sorted out...
Title: Re: How to get rid of "Malformed Header" warning when using command line
Post by: mean on September 29, 2012, 07:18:41 AM
try with avidemux_cli
it has no gui
Title: Re: How to get rid of "Malformed Header" warning when using command line
Post by: JG Media on October 01, 2012, 04:45:31 PM
is that a linux package or is there also a version of that for windows xp?
Title: Re: How to get rid of "Malformed Header" warning when using command line
Post by: Jan Gruuthuse on October 02, 2012, 09:12:57 AM
you should have the cli on both, for windows that should be avidemux_cli.exe
Title: Re: How to get rid of "Malformed Header" warning when using command line
Post by: JG Media on October 02, 2012, 07:19:03 PM
I was happy to find the avidemux_cli.exe file. when i ran it however i did not like the result (see screenshot below):
(https://avidemux.org/smif/proxy.php?request=http%3A%2F%2Fwww.jgmedia.biz%2Ftemp%2Favidemux%2Fscreenshot3.png&hash=ceda260376015017326e21631602f1c0d63f5f03)

where can i get libxml2-2.dll and where should i copy it to? t Re-installed the program three times and it didn't just show up.
Title: Re: How to get rid of "Malformed Header" warning when using command line
Post by: Jan Gruuthuse on October 03, 2012, 05:58:51 AM
Quote from: mean on September 18, 2012, 06:33:45 AMCopy libxml2-2.dll from avidemux 2.5 folder or download it from here
http://avidemux.razorbyte.com.au/
Title: Re: How to get rid of "Malformed Header" warning when using command line
Post by: JG Media on October 03, 2012, 06:08:25 PM
THANK YOU EVERYONE!!!

It worked! I downloaded and installed the latest version of 2.5 and copied libxml2-2.dll into the 2.6 folder and it worked perfectly when i called avidemux_cli.exe from the command line with the rest of my command.

BTW - I never realized that CLI had it's own application.