Ich sende eine Datei an eine Funktion in Python und versuche, die Ergebnisse in eine Variable zu speichern, aber ich bekomme diesen Fehler immer wieder.Python + ffmpeg TypeError: nicht alle Argumente während der Formatierung von Zeichenfolgen konvertiert
Ich habe über die anderen Antworten geschaut, aber nichts scheint zu passen. Jede Hilfe ist willkommen:
def ffmpegLUFS(fileName):
subprocess.Popen("ffmpeg -i %s -filter_complex ebur128 -f null - 2>&1 | grep -n '.*' | grep -A 5 'size' | grep 'I:' | cut -d ':' -f3-" % tuple(map(pipes.quote, sys.argv[1])),stdout=subprocess.PIPE,shell=True).communicate()[0]
return
Traceback (most recent call last):
File "/Volumes/videos/videos/DROP_BIN/CHRIS/POD_Workflow_Files/WebContent_Audio.py", line 30, in <module>
sourceLUFS = ffmpegLUFS(sys.argv[1])
File "/Volumes/videos/videos/DROP_BIN/CHRIS/POD_Workflow_Files/WebContent_Audio.py", line 18, in ffmpegLUFS
subprocess.Popen("ffmpeg -i %s -filter_complex ebur128 -f null - 2>&1 | grep -n '.*' | grep -A 5 'size' | grep 'I:' | cut -d ':' -f3-" % tuple(map(pipes.quote, fileName)),stdout=subprocess.PIPE,shell=True).communicate()[0]
TypeError: not all arguments converted during string formatting
Bitte schließen Sie die vollständige Fehlerrückverfolgung ein. – Mikael