• Welcome to Tux Reports: Where Penguins Fly. We hope you find the topics varied, interesting, and worthy of your time. Please become a member and join in the discussions.

Did WMCmd.vbs change recently to require correct input file extens

I

ilyaz

Flightless Bird
I have been using WMCmd.vbs to convert audio and video files as follows:

CScript.exe WMCmd.vbs -input inFN -output outFN

However, I noticed that it started failing on files of some input formats if
the extension of the input file does not match to the type. For instance, it
so happens that files that I need to convert all come with extension "tmp".
Before, it would properly convert all such files regardless of the format of
that file. Now, at least for two two input formats -- MPEG and 3GP -- if I do
not change the extension of the input to "mpg" or "3gp", respectively, then
conversion fails with the "codec not found" error message. If I rename the
same input file and change its extesnion to "3gp", conversion works fine. E.g.

CScript.exe WMCmd.vbs -input input3GP.3gp -output output.wmv

works,while

CScript.exe WMCmd.vbs -input input3GP.tmp -output output.wmv

does not.

Is this a recent change? In any case, is there an option that would allow me
to convert correctly without worrying abut file extensions?

Thanks!
 
N

Neil Smith [MVP Digital Media]

Flightless Bird
I don't think WMCMD has been maintained in years. So it's unlikely to
have changed, AFAIK.

However it sounds like your system was somehow reading the input file
type extension and passing it to the DirectShow decoders.

The only way I can think of that happening for .tmp files is if media
player itself was associated with the file extension and used to
report the file type to the command shell via windows / explorer.

I'd at least try switching to Alex Zambelli's much more up to date
rewrite of WMCMD http://www.citizeninsomniac.com/WMV/#WMCmd to see if
you get the same or better results.

Aso make sure you have the appropriate hotfixes for WMEnc installed to
make the best use of this aging (but still useful) application.

HTH
Cheers - Neil

On Tue, 27 Apr 2010 12:37:02 -0700, ilyaz
<ilyaz@discussions.microsoft.com> wrote:

>I have been using WMCmd.vbs to convert audio and video files as follows:
>
>CScript.exe WMCmd.vbs -input inFN -output outFN
>
>However, I noticed that it started failing on files of some input formats if
>the extension of the input file does not match to the type. For instance, it
>so happens that files that I need to convert all come with extension "tmp".
>Before, it would properly convert all such files regardless of the format of
>that file. Now, at least for two two input formats -- MPEG and 3GP -- if I do
>not change the extension of the input to "mpg" or "3gp", respectively, then
>conversion fails with the "codec not found" error message. If I rename the
>same input file and change its extesnion to "3gp", conversion works fine. E.g.
>
>CScript.exe WMCmd.vbs -input input3GP.3gp -output output.wmv
>
>works,while
>
>CScript.exe WMCmd.vbs -input input3GP.tmp -output output.wmv
>
>does not.
>
>Is this a recent change? In any case, is there an option that would allow me
>to convert correctly without worrying abut file extensions?
>
>Thanks!

------------------------------------------------
Digital Media MVP : 2004-2010
http://mvp.support.microsoft.com/mvpfaqs
 
Top