I'm trying to transcode mp4 to webm format in a lossless way. I tried two ways to do that.
For that purpose, I extracted mp4 video to image sequences (png). Then, I converted image sequence(without changing any frame) to webm video with a lossless flag. But, when i extract webm video to image sequences and compared with the images that i extracted from mp4 video, i realized that PSNR values were not infinity. It changes from between around 53-55 dB.
On the other hand, I directly transcoded mp4 to webm with a lossless flag. Then, I extracted image sequences from mp4 and webm format and compared PSNR values. This time i realized that PSNR values are infinity.
Encoding image sequences to webm video with lossless flag is not actually lossless. Is this true or am i doing something wrong?