Mentions légales du service

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

Simplified piping, removed unnecessary fallback option

parent 990d3bc9
Branches
No related tags found
No related merge requests found
......@@ -78,7 +78,7 @@ LogFileEnc = fullfile(LogFolder,[LogName,'_enc.rtf']);
LogFileDec = fullfile(LogFolder,[LogName,'_dec.rtf']);
%% Execute command
HEVCArgList = paramToArgList(HEVCParams);
HEVCArgList = paramToArgList(HEVCParams);
extraHEVCArgList = paramToArgList(extraHEVCParams);
% Prompt in terminal and write in log file
......@@ -88,28 +88,20 @@ elseif isunix
redirect = @(logfile) ['| tee "' ,logfile, '"'];
end
% Execute command
if encode
command = ['"' TApp,'" ',HEVCArgList,' ',extraHEVCArgList,' ',redirect(LogFileEnc)];
redirectLog = redirect(LogFileEnc);
elseif decode
command = ['"' TApp,'" ',HEVCArgList, redirect(LogFileDec)];
redirectLog = redirect(LogFileDec);
end
command = ['"' TApp,'" ',HEVCArgList,' ',extraHEVCArgList,' ',redirectLog];
% Execute command
disp(command)
status = system(command);
% Try without extra HEVC parameters if HEVC error
if status
if encode
command = ['"' TApp,'" ',HEVCArgList,' ',redirect(LogFileEnc)];
end
disp(command)
status = system(command);
if status
error('HEVC Error');
end
error('HEVC Error');
end
% Read compression statistics from log file
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment