for workflow 4-3-1, remove at lines 7331-7343: if not "%encode_LL%"=="YES"
replace:
Code: Select all
for /L %%i in (1,1,%count%) do (
if "%encode_LL%"=="YES" if exist "%TEMP%audio_%%i_!T%%i.Lang!.thd" "%ffmpeg_path%" -i "%TEMP%audio_%%i_!T%%i.Lang!.thd" -map 0:0 -c %llcodec% "%TEMP%pcm%%i.%mcont%"& set AL%%i=-add "%TEMP%pcm%%i.%mcont%"#audio:lang=!T%%i.Lang!:name=%mname%!FORCED%%i!
)
for /L %%i in (1,1,%count%) do (
if exist "%TEMP%audio_%%i_!T%%i.Lang!.thd" if "%keep_lossless%"=="YES" if not "%encode_LL%"=="YES" "%ffmpeg_path%" -y -i "%TEMP%audio_%%i_!T%%i.Lang!.thd" -map 0:0 -c copy -strict -2 "%TEMP%lossless%%i.mp4" & set AL%%i=-add "%TEMP%lossless%%i.mp4"#audio:lang=!T%%i.Lang!:name=THD!FORCED%%i!
)
for /L %%i in (1,1,%count%) do (
if "%encode_LL%"=="YES" if exist "%TEMP%audio_%%i_!T%%i.Lang!.dts" "%ffmpeg_path%" -i "%TEMP%audio_%%i_!T%%i.Lang!.dts" -map 0:0 -c %llcodec% "%TEMP%pcm%%i.%mcont%"& set AL%%i=-add "%TEMP%pcm%%i.%mcont%"#audio:lang=!T%%i.Lang!:name=%mname%!FORCED%%i!
)
for /L %%i in (1,1,%count%) do (
if exist "%TEMP%audio_%%i_!T%%i.Lang!.dts" if "%keep_lossless%"=="YES" if not "%encode_LL%"=="YES" "%ffmpeg_path%" -y -i "%TEMP%audio_%%i_!T%%i.Lang!.dts" -map 0:0 -c copy "%TEMP%lossless%%i.mp4" & set AL%%i=-add "%TEMP%lossless%%i.mp4"#audio:lang=!T%%i.Lang!:name=DTS!FORCED%%i!
)