2014-12-01, 06:15 AM
the full filename of the recording is passed to postprocessing.bat (and parallelprocessing.bat for that matter) as %1, so instead of using the forfiles command, you could just do this:
ffmpeg -i %1 -acodec copy -vcodec copy "%~dpn1.mpg"
if not exist "%~dpn1.mpg" goto skipdelete
del %1
kipdelete
(the last bit is just to avoid deleting the .ts file if the ffmpeg process didn't produce an .mpg file for some reason)
ffmpeg -i %1 -acodec copy -vcodec copy "%~dpn1.mpg"
if not exist "%~dpn1.mpg" goto skipdelete
del %1
kipdelete
(the last bit is just to avoid deleting the .ts file if the ffmpeg process didn't produce an .mpg file for some reason)
server: NextPVR 5.0.7/Win10 2004/64-bit/AMD A6-7400k/hvr-2250 & hvr-1250/Winegard Flatwave antenna/Schedules Direct
main client: NextPVR 5.0.7 Desktop Client; LG 50UH5500 WebOS 3.0 TV
main client: NextPVR 5.0.7 Desktop Client; LG 50UH5500 WebOS 3.0 TV