Closed mke9m closed 4 years ago
Can you paste the value you have in your config for keep_subtitles?
sure thing.
keep_subtitles= true
What version of Powershell are you using? ($PSVersionTable.PSVersion)
I am using;
Major Minor Build Revision
----- ----- ----- --------
5 1 17134 228
On line 83 of conv2mp4-ps.ps1, can you add (as a single line)
Log "keep_subtitles: $($cfg.keep_subtitles), type: $($cfg.keep_subtitles.gettype().Name)"
and rerun the script, then paste the output (from your log) here?
Edited for formatting
After looking at the config file closely I noticed that I must have converted it to a txt file at some point. After deleting the file then creating a new one from the config template it is now working.
I am still receiving the error
cmd.exe : '-i' is not recognized as an internal or external command, At C:\Scripts\FFMPEG\conv2mp4-ps-master\files\func\GetAudioStreams.ps1:11 char:33
+ CategoryInfo : NotSpecified: ('-i' is not rec...ternal command,:String) [], Remote
Exception
+ FullyQualifiedErrorId : NativeCommandError
operable program or batch file. Cannot index into a null array. At C:\Scripts\FFMPEG\conv2mp4-ps-master\files\func\GetAudioStreams.ps1:14 char:9
+ CategoryInfo : InvalidOperation: (:) [], RuntimeException
+ FullyQualifiedErrorId : NullArray
The getaudiostreams file is unchanged
Found a bug after doing a little testing on my end, pushed a fix to the develop branch. Switch over to develop, run git pull, and let me know if the issue persists.
Assuming the issue is resolved. Feel free to reopen if that's not the case.
The below error's are presented when attempting to convert any files.
`ConvertFile : Cannot process argument transformation on parameter 'KeepSubs'. Cannot convert value "System.String" to type "System.Management.Automation.SwitchParameter". Boolean parameters accept only Boolean values and numbers, such as $True, $False, 1 or 0. At C:\Scripts\FFMPEG\conv2mp4-ps-master\conv2mp4-ps.ps1:104 char:54
cmd.exe : '-i' is not recognized as an internal or external command, At C:\Scripts\FFMPEG\conv2mp4-ps-master\files\func\GetAudioStreams.ps1:11 char:33
operable program or batch file. Cannot index into a null array. At C:\Scripts\FFMPEG\conv2mp4-ps-master\files\func\GetAudioStreams.ps1:14 char:9