av-integrity workflow
Posted: Fri Nov 23, 2018 4:12 pm
Hello Steinar,
I would like to create a workflow to check integrity of av-files using this ffmpeg-command in command-executor:
%comspec% /c ""T:\Transcoding\ffastrans\Applikation\Processors\ffmpeg\x64\ffmpeg.exe" -v error -i "%s_source%" -f null - >"%s_job_work%\%s_original_name%-%s_job_id%.txt" 2>&1"
It works and I get the expected file at the expected location with the expected name.
As far as I can see I always get a txt-file regardless whether outcome is successful (original av-file is damaged) or not.
When not successful (original av-file is ok) the txt-file is empty.
My goal is actually pretty simple.
If txt-file has any entry then report it (Generate text file).
If txt-file has no entry (blank) then do not report it.
Reporting is not the problem.
I've tried around with functions and populating and conditional etc. but I can't figure out how to check if txt-file has any entry or is blank.
I don't want to rely on the text itself if the outcome is successful because as far as I have seen it can differ from each other.
Checking filesize of txt-file was not possible too (successful txt-file has 1kb, unsuccessful txt-file has 0kb) because the available variable %i_original_size% checks the filesize of the original submitted file.
Maybe I can redirect this variable to txt-file?
I would appreciate if you could help me!
Taner
I would like to create a workflow to check integrity of av-files using this ffmpeg-command in command-executor:
%comspec% /c ""T:\Transcoding\ffastrans\Applikation\Processors\ffmpeg\x64\ffmpeg.exe" -v error -i "%s_source%" -f null - >"%s_job_work%\%s_original_name%-%s_job_id%.txt" 2>&1"
It works and I get the expected file at the expected location with the expected name.
As far as I can see I always get a txt-file regardless whether outcome is successful (original av-file is damaged) or not.
When not successful (original av-file is ok) the txt-file is empty.
My goal is actually pretty simple.
If txt-file has any entry then report it (Generate text file).
If txt-file has no entry (blank) then do not report it.
Reporting is not the problem.
I've tried around with functions and populating and conditional etc. but I can't figure out how to check if txt-file has any entry or is blank.
I don't want to rely on the text itself if the outcome is successful because as far as I have seen it can differ from each other.
Checking filesize of txt-file was not possible too (successful txt-file has 1kb, unsuccessful txt-file has 0kb) because the available variable %i_original_size% checks the filesize of the original submitted file.
Maybe I can redirect this variable to txt-file?
I would appreciate if you could help me!
Taner