Thank you
I've amended my code per your instructions. It is now
cheers Peter
Oops - I've just seen an error
There doesn't appear to be path_out coded anywhere in your example in order to get the files into the output directory ?
I've amended my code per your instructions. It is now
import subprocess import os path_in = 'C:/upload' path_out = 'C:/upload/completed' for file in os.scandir(path_in): if file.name.endswith('mts'): #print(file.name) file_path = os.path.join(path_in, file.name) subprocess.run(['ffmpeg', '-i', f'{file_path}', '-c:v', 'copy', f'{os.path.splitext(file.name)[0]}.mp4'])but it still gives the same output
Output:>>>
= RESTART: C:/Users/Peter/AppData/Local/Programs/Python/Python36-32/test2.py =
>>>
There are no rendered files in the c:/output/completed folder. cheers Peter
Oops - I've just seen an error
There doesn't appear to be path_out coded anywhere in your example in order to get the files into the output directory ?