neural-style-tf icon indicating copy to clipboard operation
neural-style-tf copied to clipboard

issue regarding stylizing video frames

Open kmeagle1515 opened this issue 5 years ago • 3 comments

I am trying to stylizing video frames which are in video_input folder and used advanced bash command on your github for the same but i don't know how to generate flow files using make-opt-flow.sh can you tell me the steps? Screenshot from 2019-10-17 14-47-11

i guess make-opt-flow.sh file is run using : ./make-opt-flow.sh "world_video_frames1/frame_{}.ppm" "video_output" my frames are in format frame_0001.ppm

kmeagle1515 avatar Oct 17 '19 09:10 kmeagle1515

Screenshot from 2019-10-17 17-11-00

kmeagle1515 avatar Oct 17 '19 11:10 kmeagle1515

just ran into the same issue, were you able to figure this out?

siegmattel avatar Jan 14 '20 03:01 siegmattel

It is working for me, you have to add the %04d so the parser recognize your frames:

bash make-opt-flow.sh my_folder/my_frames/frame_%04d.ppm my_folder/my_opticalflow_folder

If you want to manually extract the frames, you can run this:

ffmpeg -i video.mp4 my_folder/my_frames/frame_%04d.ppm

enric1994 avatar Jan 17 '20 12:01 enric1994