Command Special

Questions and answers on how to get the most out of FFAStrans
Post Reply
fabrice
Posts: 21
Joined: Tue Dec 08, 2015 1:22 pm

Command Special

Post 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.
admin
Site Admin
Posts: 1687
Joined: Sat Feb 08, 2014 10:39 pm

Re: Command Special

Post 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
fabrice
Posts: 21
Joined: Tue Dec 08, 2015 1:22 pm

Re: Command Special

Post by fabrice »

Great !
Thank you very much !

Have a nice weekend
fabrice
Posts: 21
Joined: Tue Dec 08, 2015 1:22 pm

Re: Command Special

Post 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.
admin
Site Admin
Posts: 1687
Joined: Sat Feb 08, 2014 10:39 pm

Re: Command Special

Post by admin »

Can you please post your complete unaltered command? Or send me you workflow? I cannot help you blindfolded;-)

-steipal
fabrice
Posts: 21
Joined: Tue Dec 08, 2015 1:22 pm

Re: Command Special

Post 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"
admin
Site Admin
Posts: 1687
Joined: Sat Feb 08, 2014 10:39 pm

Re: Command Special

Post 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
Post Reply