CodeFormer
CodeFormer copied to clipboard
视频修复出现UnicodeDecodeError
trafficstars
报错图片:

命令为: python39 inference_codeformer.py --bg_upsampler realesrgan --face_upsample -w 1.0 --input_path 4.mp4
python版本为:3.9
视频为:
https://user-images.githubusercontent.com/56969920/215874005-34f1ff61-9927-48cb-9d6d-52b08fe38f8c.mp4
emmm, 这个视频的格式原本是ts的,然后转换成了mp4
- 在issue里视频是全黑的,可能是视频格式问题,建议换一个视频试下;
- 检查Windows系统下ffmpeg是否安装成功(不是ffmpeg-python):
# For Windows/Mac users, please install ffmpeg first
conda install -c conda-forge ffmpeg
后者是能确定的,我试试前者。
What a pity,换成手机出来的mp4格式也不行,我在想会不会下载的ffmpeg有问题?然后换成最新的ffmpeg还是不行,报错如下:

I seem to have the same issue, Python version 3.9.13.