videoreader doesn't accurately take frames from wmv file

94 views (last 30 days)
sdfjkskjfs
sdfjkskjfs on 10 Dec 2024 at 23:12
Edited: sdfjkskjfs on 12 Dec 2024 at 20:47
I'm using videoreader to get a .wmv file in matlab, then I use readframes.
Opening my wmv video in VLC or any other video player, it shows it in high quality. The edges of objects are smooth and there are no big pixels visible.
On the other hand in matlab, the frames taken from the video - although having the same pixel resolution size as the video - are in worse quality. It looks pixelated.
I want to keep the quality of the frames as best as possible. What do I do? So far my guess is to maybe convert wmv to avi, or use opencv or anything else than "videoreader".
  10 Comments
DGM
DGM on 12 Dec 2024 at 20:24
Edited: DGM on 12 Dec 2024 at 20:24
The interactive zoom does some sort of interpolated upscaling. It's not the actual resolution of the information in the file.
sdfjkskjfs
sdfjkskjfs on 12 Dec 2024 at 20:42
Edited: sdfjkskjfs on 12 Dec 2024 at 20:47
@DGM Thank you! That was the key information. Checking out all frames from the video saved via matlab, it seems that only the first few frames (~10) are of bad quality. I think it has nothing to do with the vlc zoom feature.
Solved

Sign in to comment.

Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!