FFPROBEUnsupportedFormatError Traceback (most recent call last)
/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/aeneas/audiofile.py in read_properties(self)
359 logger=self.logger
--> 360 ).read_properties(self.file_path)
361 self.log(u"Reading properties with FFPROBEWrapper... done")
/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/aeneas/ffprobewrapper.py in read_properties(self, audio_file_path)
283 if results[self.STDOUT_DURATION] is None:
--> 284 self.log_exc(u"No duration found in stdout or stderr. Unsupported audio file format?", None, True, FFPROBEUnsupportedFormatError)
285
from aeneas.executetask import ExecuteTask from aeneas.task import Task
create Task object
config_string = u"task_language=eng|is_text_type=plain|os_task_file_format=json" task = Task(config_string=config_string) task.audio_file_path_absolute =os.path.abspath("./a.mp3") task.text_file_path_absolute = os.path.abspath("./a.txt") task.sync_map_file_path_absolute = "syncmap.json"
process Task
ExecuteTask(task).execute()
output sync map to file
task.output_sync_map_file()
os : mac catalina python 3.8
got an error
FFPROBEUnsupportedFormatError Traceback (most recent call last) /Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/aeneas/audiofile.py in read_properties(self) 359 logger=self.logger --> 360 ).read_properties(self.file_path) 361 self.log(u"Reading properties with FFPROBEWrapper... done")
/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/aeneas/ffprobewrapper.py in read_properties(self, audio_file_path) 283 if results[self.STDOUT_DURATION] is None: --> 284 self.log_exc(u"No duration found in stdout or stderr. Unsupported audio file format?", None, True, FFPROBEUnsupportedFormatError) 285
/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/aeneas/logger.py in log_exc(self, message, exc, critical, raise_type) 350 raise_message = u"%s : %s" % (message, exc) --> 351 raise raise_type(raise_message) 352
FFPROBEUnsupportedFormatError: No duration found in stdout or stderr. Unsupported audio file format?
During handling of the above exception, another exception occurred:
AudioFileUnsupportedFormatError Traceback (most recent call last)