chaoyuaw / pytorch-coviar

Compressed Video Action Recognition
https://www.cs.utexas.edu/~cywu/projects/coviar/
GNU Lesser General Public License v2.1
500 stars 126 forks source link

About counting frames #49

Open sjtuxcx opened 5 years ago

sjtuxcx commented 5 years ago

I find the value of function get_num_frames is 1 less than actual video length. I use 100 frames to create a video but only get 99 decoded frames. I find the missing frame is the last one. Can you help me out? Thanks very much!

chaoyuaw commented 5 years ago

Hi, sorry I cannot quite see what's going on, and don't have a good explanation for this. Would it help if you add a dummy frame at the end to construct a 101-frame video as a temporary solution?

sjtuxcx commented 5 years ago

@chaoyuaw Yes, I did add a dummy frame as a temporary solution.Thank you for the advise. Here is an another little question about motion vector. Is the first channel and second channel of motion vector(shape is [h,w,2]) means pixel movement on X-axis and Y-axis(or Y-axis and X-axis)? Thanks!