I am iterating through a directory and running ffprobe
against each file to get it's duration. However, the only output I get is
b''
b''
Below is the part of the code I am using,
for y in filename:
p1 = subprocess.Popen (['ffprobe', '-i', y, '-show_entries', 'format=duration', '-sexagesimal', '-v', 'quiet', '-of', 'csv=%s' % ("p=0")], stdout=subprocess.PIPE).communicate()[0]
print (p1)
Currently, the directory I am iterating through has two files in it.
Any ideas how to get the actual duration printed please?
Thanks.