Author Topic: How to get rid of "Malformed Header" warning when using command line  (Read 6908 times)

JG Media

  • Newbie
  • *
  • Posts: 5
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?



Jan Gruuthuse

  • Hero Member
  • *****
  • Posts: 6060
Re: How to get rid of "Malformed Header" warning when using command line
« Reply #1 on: September 28, 2012, 05:55:57 PM »
if using the GUI:
Quote
You 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?
Code: [Select]
< enter.txt
« Last Edit: September 28, 2012, 05:59:15 PM by Jan Gruuthuse »

mean

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 10971
Re: How to get rid of "Malformed Header" warning when using command line
« Reply #2 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

JG Media

  • Newbie
  • *
  • Posts: 5
Re: How to get rid of "Malformed Header" warning when using command line
« Reply #3 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...

mean

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 10971
Re: How to get rid of "Malformed Header" warning when using command line
« Reply #4 on: September 29, 2012, 07:18:41 AM »
try with avidemux_cli
it has no gui

JG Media

  • Newbie
  • *
  • Posts: 5
Re: How to get rid of "Malformed Header" warning when using command line
« Reply #5 on: October 01, 2012, 04:45:31 PM »
is that a linux package or is there also a version of that for windows xp?

Jan Gruuthuse

  • Hero Member
  • *****
  • Posts: 6060
Re: How to get rid of "Malformed Header" warning when using command line
« Reply #6 on: October 02, 2012, 09:12:57 AM »
you should have the cli on both, for windows that should be avidemux_cli.exe

JG Media

  • Newbie
  • *
  • Posts: 5
Re: How to get rid of "Malformed Header" warning when using command line
« Reply #7 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):


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.

Jan Gruuthuse

  • Hero Member
  • *****
  • Posts: 6060
Re: How to get rid of "Malformed Header" warning when using command line
« Reply #8 on: October 03, 2012, 05:58:51 AM »
Copy libxml2-2.dll from avidemux 2.5 folder or download it from here
http://avidemux.razorbyte.com.au/

JG Media

  • Newbie
  • *
  • Posts: 5
Re: How to get rid of "Malformed Header" warning when using command line
« Reply #9 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.