I am trying to use python for ffprobe. but i am getting error.
i wish to create a file which will have all the data
videofile=raw_input('What is the file path?')
cmd = ['ffprobe', '-i', 'videofile', '>' 'file.txt']
response = subprocess.check_output(cmd,shell=True,stderr=subprocess.STDOUT)
but i am getting error
raise CalledProcessError(retcode, cmd, output=output)subprocess.CalledProcessError: Command '['ffprobe', '-i', 'videofile', '>file.txt']' returned non-zero exit status 1