BrianDMG / conv2mp4

This Powershell script will recursively search through a user-defined file path and convert all videos of user-specified file types to MP4 with H264 video and AAC audio using ffmpeg. The purpose of this script is to reduce transcoding CPU load on a media server like Plex or Emby and increase video compatibility across platforms.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

No files to convert found, log file still written?

hwwilliams opened this issue · comments

So the new option to continue to write to the same log file instead of overwriting it is awesome so thank you for that quick implementation.

But I noticed that when nothing is found for conversion a section is still added to the log file and if your like me and have this running automatically every hour, half the file is literally just the script saying there was no files found for conversion.

For someone who just runs this manually I can see where the script saying it found nothing is very helpful, but in an automatic setup it doesn't really serve a purpose as far as I can tell.

commented

Hey, thanks for the suggestion. I completely agree that the log clutter needs some pruning. I just made some changes that should address your issue specifically, and cut down on other assorted log clutter. If you have any other suggestions or see something not working quite right, please feel free to bring it to my attention.