TencentARC / AnimeSR

Codes for "AnimeSR: Learning Real-World Super-Resolution Models for Animation Videos"
Other
327 stars 34 forks source link

Question about ffmpeg compression degradation #16

Open wwbwang opened 10 months ago

wwbwang commented 10 months ago

Hello, I followed your codes, but got error randomly in animesr.data.ffmpeg_anime_dataset.FFMPEGAnimeDataset.add_ffmpeg_conpression. I may get "[h264 @ 0x1d1df20] decode_slice_header error" in terminal, when the program runs to "ffmpeg_video2img.stdin.close()". In this case, 15 images are passed in to generate video, but decoding can result in 14 or fewer images, causing problems. I don't know why this problem occurs, and what's bothers me most is that it is arisen randomly. Do you have any suggestions or ideas?

wwbwang commented 9 months ago

I've fixed this problem. The reason is ffmpeg's baseline compression doesn't work in my platform.