Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 165ce341 authored by DIB Elian's avatar DIB Elian
Browse files

Merge branch 'fixSpaceInPathMikael' into develop

parents c23099d3 ba531090
Branches
No related tags found
No related merge requests found
...@@ -99,15 +99,15 @@ HEVCArgList = paramToArgList(HEVCParams); ...@@ -99,15 +99,15 @@ HEVCArgList = paramToArgList(HEVCParams);
extraHEVCArgList = paramToArgList(extraHEVCParams); extraHEVCArgList = paramToArgList(extraHEVCParams);
if ispc if ispc
redirect = @(logfile) ['> ',logfile,' | type ' logfile]; redirect = @(logfile) ['> "',logfile,'" | type "' logfile, '"'];
elseif isunix elseif isunix
redirect = @(logfile) ['| tee ' ,LogFile]; redirect = @(logfile) ['| tee ' ,LogFile];
end end
if encode if encode
command = [TApp,' ',HEVCArgList,' ',extraHEVCArgList,' ',redirect(LogFileEnc)]; command = ['"' TApp,'" ',HEVCArgList,' ',extraHEVCArgList,' ',redirect(LogFileEnc)];
elseif decode elseif decode
command = [TApp,' ',HEVCArgList,' ',extraHEVCArgList,' ',redirect(LogFileDec)]; command = ['"' TApp,'" ',HEVCArgList,' ',extraHEVCArgList,' ',redirect(LogFileDec)];
end end
disp(command) disp(command)
...@@ -115,9 +115,9 @@ status = system(command); ...@@ -115,9 +115,9 @@ status = system(command);
if status if status
if encode if encode
command = [TApp,' ',HEVCArgList,' ',redirect(LogFileEnc)]; command = ['"' TApp,'" ',HEVCArgList,' ',redirect(LogFileEnc)];
elseif decode elseif decode
command = [TApp,' ',HEVCArgList,' ',redirect(LogFileDec)]; command = ['"' TApp,'" ',HEVCArgList,' ',redirect(LogFileDec)];
end end
disp(command) disp(command)
...@@ -140,7 +140,7 @@ function argList = paramToArgList(Params) ...@@ -140,7 +140,7 @@ function argList = paramToArgList(Params)
parameters = fieldnames (Params); parameters = fieldnames (Params);
values = struct2cell(Params); values = struct2cell(Params);
argList = cellfun(@(param,val) ['--',param,'=',val],parameters,values,'UniformOutput',false); argList = cellfun(@(param,val) ['--',param,'="',val,'"'],parameters,values,'UniformOutput',false);
argList = strjoin(argList(:)); argList = strjoin(argList(:));
end end
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment