I tried to use functions in "Generate text node" template without success. Maybe it's not implemented yet?
I need to replace (escape) "\" with "\\" in order to generate valid JSON. Here is the test template:
Code: Select all
{
"source_avs": "$replace(%s_original_full%, "\","\\")",
"target_video": "F:\\Pipeline\\U-$replace(%s_original_name%,"\","\\").mp4",
"frame_size": "%i_width%x%i_height%",
"duration": %f_duration%,
"error_message": "OK",
"error_code": 200
}
Code: Select all
{
"source_avs": "$replace(F:\Pipeline\In-AviSynth\UTV\TEST_203732370.avs, "\","\\")",
"target_video": "F:\\Pipeline\\U-$replace(TEST_203732370,"\","\\").mp4",
"frame_size": "768x576",
"duration": 119.36,
"error_message": "OK",
"error_code": 200
}