ffmpeg 百度云盘

链接:https://pan.baidu.com/s/1PumPY7-M-oxEMf5EDAqNbw?pwd=0gw5
提取码:0gw5

 

AudioSegment.from_mp3方法错误提示:系统找不到指定的文件。 

把下面3个文件拷贝的项目运行目录就可以了;  运行目录,运行目录,运行目录。重要的事情说三遍

 

 

# 获取文件的常规信息
def get_file_properties(file_path):
    # 获取文件的创建时间
    creation_time = os.path.getctime(file_path)
    creation_time_dt = datetime.datetime.fromtimestamp(creation_time)

    # 获取文件的修改时间
    modification_time = os.path.getmtime(file_path)
    modification_time_dt = datetime.datetime.fromtimestamp(modification_time)

    # 获取文件的大小(以字节为单位)
    file_size = os.path.getsize(file_path)

    return {
        'creation_time': creation_time_dt,
        'modification_time': modification_time_dt,
        'file_size': file_size
    }

 

 

配置windows的环境变量没有用;ffmpeg -version

refer:

https://blog.csdn.net/nings666/article/details/134791109

posted @ 2024-04-28 14:37  Coding_Yong  阅读(502)  评论(0)    收藏  举报