Closed CS-GangXu closed 3 years ago
Hi @CS-GangXu , Thanks for the enthusiastic comment! After obtaining the yuv file, you could use utils/load_yuv.m function that I provided to load the individual frames. LMK if you have any more questions!
Thank you for your prompt reply!!! @sooyekim
I still have two questions about the command: function YUV = load_yuv(file, frame, height, width, h_factor, w_factor, SDR_HDR)
.
frame
mean A) the frame rate, B) the number of total frames, C) the frame number that I want to extract from the video, D) the index of the single frame?h_factor
and w_factor
both 0.5 when the video has the format of YUV420?Sorry for the late reply @CS-GangXu .
LMK if you have any other questions :)
Thanks for your reply! This code is really useful! @sooyekim .
Thanks for your great work! I want to ask the solution of extracting frames and turning them into the data files with values (uint 0-1023). I first use
ffmpeg -i in.mp4 out.yuv
to convert the mp4 file into yuv file. What should I do to split the out.yuv into data files of every frame?