CodeFormer icon indicating copy to clipboard operation
CodeFormer copied to clipboard

视频修复出现UnicodeDecodeError

Open lp20010415 opened this issue 2 years ago • 4 comments
trafficstars

报错图片: image

命令为: 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

lp20010415 avatar Jan 31 '23 20:01 lp20010415

  1. 在issue里视频是全黑的,可能是视频格式问题,建议换一个视频试下;
  2. 检查Windows系统下ffmpeg是否安装成功(不是ffmpeg-python):
# For Windows/Mac users, please install ffmpeg first
conda install -c conda-forge ffmpeg

sczhou avatar Feb 01 '23 07:02 sczhou

后者是能确定的,我试试前者。

lp20010415 avatar Feb 02 '23 06:02 lp20010415

What a pity,换成手机出来的mp4格式也不行,我在想会不会下载的ffmpeg有问题?然后换成最新的ffmpeg还是不行,报错如下: image

lp20010415 avatar Feb 02 '23 06:02 lp20010415

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

yanhaoluo0 avatar Feb 04 '23 07:02 yanhaoluo0