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.
129 stars 23 forks source link

ERROR: The regular expression pattern ) is not valid. #68

Closed alekdavis closed 4 years ago

alekdavis commented 4 years ago

When the script tries to process a file, it generates this error:

05/10/20 14:09:23 Processing - \\MYNAS\DIR\PATH\Video (2012)\Video (2012).mkv
05/10/20 14:09:23 File 4 of 14 - Total queue 28.57%
05/10/20 14:09:24 Video: H264, Audio: AC3. Encoding audio to AAC
The regular expression pattern ) is not valid.
At C:\conv2mp4\files\func\ConvertFile.ps1:76 char:13
+             $title = $title -replace "$remove",''
+             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: ():String) [], RuntimeException
    + FullyQualifiedErrorId : InvalidRegularExpression

Using v4.1.2 of the script.

BrianDMG commented 4 years ago

Will push out a fix for this shortly. In the meantime, you can set use_set_metadata_title=false in the config

BrianDMG commented 4 years ago

Just pushed a fix for this issue to develop branch. Give it a shot and see if that clears your issue up. If it does, I'll merge to master.

alekdavis commented 4 years ago

Looking good.