java - Read Ydata from video frame -
i want read y(luminance data consecutive frames of .mp4 file) in java code. how can able that.it if don't have use media library ffmpeg/opencv.actually applying following simple blockiness algorithm on .mp4 file.
1.luminance gradient image first segmented blocks of 32×32 pixels. 2.each block fast fourier transformed frequency domain. 3.following this, measure ratio of sum of harmonics sum of ac components,in both horizontal , vertical orientations. ratios serve indication of severity of blocking artefacts.
any pointers on code samples(fft,measuring sum of harmonics of fft)
regards, mayank
"it if don't have use media library ffmpeg/opencv" good, impossible. video highly compressed, zip file way more complex. , zip files, can not see inside without decompressing it. decompress, recommend using libavformat/libavcodec ffmpeg library. use libswscale (also ffmpeg) convert frame yuv (if codec uses different color space). , fftw analysis.
good luck, big project.
Comments
Post a Comment