Page 1 of 1

Command Special

Posted: Sat Dec 12, 2015 11:25 am
by fabrice
Hi Steipal

I'm trying to execute a ffprobe command with the "command special" processor...

I checked the ffprobe command and it is working well. So no question about the syntax of the command itself, but I don't know why it is not executed...
%comspec% /c "ffprobe -show_streams -print_format xml "%original_full%" > E:\MediaMove\%original_name%.xml"

Did I make something wrong ?
Thank you for your help.

Re: Command Special

Posted: Sat Dec 12, 2015 11:50 am
by admin
Make sure you ALWAYS supply the full path to whatever command you're executing. Also, ALWAYS encapsulate the ALL paths with quote (") to be on the safe side, like this:

%comspec% /c "D:\FFmpeg\ffprobe.exe -show_streams -print_format xml "%original_full%" > "E:\MediaMove\%original_name%.xml""

I've tried this particular example and it works like a charm ;-)

-steipal

Re: Command Special

Posted: Sat Dec 12, 2015 4:35 pm
by fabrice
Great !
Thank you very much !

Have a nice weekend

Re: Command Special

Posted: Sun Dec 13, 2015 10:42 am
by fabrice
Hi Steipal

I tried many times even in replicate your paths but I always have a resulting XML completely empty.
The file is written on the drive but there is even not the xml header.
Could you please take a look ?
Tank you very much.

Re: Command Special

Posted: Sun Dec 13, 2015 2:40 pm
by admin
Can you please post your complete unaltered command? Or send me you workflow? I cannot help you blindfolded;-)

-steipal

Re: Command Special

Posted: Sun Dec 13, 2015 3:35 pm
by fabrice
Hi Steipal,

I finally succeeded but with NO quotes for the paths...
%comspec% /c "C:\FFAStrans_61\Processors\FFMpeg\ffprobe.exe -show_streams -print_format xml %original_full% > C:\meta\%original_name%.xml"

Re: Command Special

Posted: Sun Dec 13, 2015 7:08 pm
by admin
Ok, but then you're basically doing it wrong. If you submit a file with a space in it, your command ought to fail. Can you please try that and let me know how it works out.
And if/when it fails, replace your command with the one below:

%comspec% /c "C:\FFAStrans_61\Processors\FFMpeg\ffprobe.exe -show_streams -print_format xml "%original_full%" > "C:\meta\%original_name%.xml""

-steipal