-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Questions about according to the frame of video #17
Comments
Excuse me, have you solved this problem? Can you leave a mailbox to communicate with me? I also met you with this problem. Thank you very much. |
Did you have frames of datasets? |
if you have extracted video frame ,you could try to modify 'MP4V' to 'mp4v' in code ,it shoud be work |
@harvestlamb
I think that this code convert images to video(30fps). |
I have the same problem, did you resolved it? can you help me? Thank you. |
Hi, @lllllmaster-lulllll.
you can create a summarized video. |
!python ./pytorch-vsumm-reinforce/summary2video.py -p log/summe-split0/result.h5 -d vsummary/video_frames -i 0 --fps 30 --save-dir log --save-name summary.mp4
Still getting the same errors as listed, downloaded the video files converted to .jpg |
Hi, @VinACE. please check file name. As you know, Error message is that image was not read. so, assertion failed. empty(). |
!python ./pytorch-vsumm-reinforce/summary2video.py -p log/summe-split0/result.h5 -d vsummary/video_frames -i 0 --fps 30 --save-dir log --save-name summary.mp4
Still getting the same errors as listed, downloaded the video files converted to .jpg frm = cv2.resize(frm, (args.width, args.height)) |
Hi, @VinACE. |
Thank you for the response, can I get a mapping of the VSUMM dataset to the dataset summary that is being trained or for video 1 should I also convert the other 2 video part of the 3 segments mentioned in the VSUMM dataset. |
ok. After converting the 3 video v21-v23, I did get the empty frame assertion error, checking further.. got the summary for the video 1-3 |
I don't under stand this solution. |
when I run the command:
python summary2video.py -p log/summe-split0/result.h5 -d video_frames/ -i 0 --fps 30 --save-dir log --save-name summary.mp4
this occured:
OpenCV: FFMPEG: tag 0x5634504d/'MP4V' is not supported with codec id 12 and format 'mp4 / MP4 (MPEG-4 Part 14)'
OpenCV: FFMPEG: fallback to use tag 0x7634706d/'mp4v'
Traceback (most recent call last):
File "summary2video.py", line 43, in
frm2video(args.frm_dir, summary, vid_writer)
File "summary2video.py", line 27, in frm2video
frm = cv2.resize(frm, (args.width, args.height))
cv2.error: OpenCV(3.4.3) /io/opencv/modules/imgproc/src/resize.cpp:4044: error: (-215:Assertion failed) !ssize.empty() in function 'resize'
My generation is to use ffepeg operation video frame,One of my format is generated according to the requirements of the code format, why such a mistake?Can you help me?
The text was updated successfully, but these errors were encountered: