0

I'm trying to run the following line in Python:

subprocess.call(['ffprobe','-i','bbb.mp4','-show_format','-show_streams','>','metadata.json'])

which shows the metadata of a video and saves it in a JSON file.

When I run it on the command line, it works perfectly:

enter image description here

However, when I run it on Python, it raises an error because of the '>' sign. It says: "Argument '>' provided as input filename, but 'bbb.mp4' was already specified."

Do you know how to solve this problem?

enter image description here

Arnau
  • 77
  • 7

0 Answers0