That worked! Thanks!
Post Processing Script - Working Example - Powershell
Posted 31 August 2019 - 04:44 AM
NOTE - 11/9/2018
To be clearer the script above does not do any error checking to see if the ffmpeg process failed to convert the ts file and if you have the -DelFile option enabled it will just delete the ts file.
Error checking could be added by the user although from reading a few threads on ffmpeg - getting a valid exit code of 0 (zero) does not always mean the conversion worked! - sigh
So use the -DelFile with caution as recorded LiveTV is prone to errors in the ts stream - some of which may cause ffmpeg to abort.
Hi - Agree that ffmpeg errorlevel is not reliable - you more than likely know this, but if you dump the output via the report function and then parse for 'failed' to determine if it's safe to delete the source file...
ffmpeg.exe -report blah blah
Posted 31 August 2019 - 09:02 AM
yuk! bat files
the script is an example and not fully featured thats for people to work out for themselves
A Hint on how to do it
its actually a lot better to check the converted file for errors using ffprobe, capture the output and parse that to see if you have errors/warnings that you can then decide if the ts file can be deleted
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users