TencentARC/AnimeSR

Question about ffmpeg compression degradation

wwbwang opened this issue · 1 comments

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?

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