Closed CGMikeG closed 2 years ago
@CGMikeG
The bug seems to be caused by ffmpeg, which is used in composing rendered images into videos. An easy way to avoid this is to change the command to: python -m demo.demo_bodymocap --input_path ./sample_data/han_short.mp4 --out_dir ./mocap_output --no_video_out
. In this way, the ffmpeg will not be called (No videos will be generated either).
You're an absolute legend! That did the trick for me. Finally, I can finally start testing frankmocap. :D Thank you very much!
Sorry, it's me again. While running below command I keep getting error "Unrecognized option 'x264opts'" at the end. The video preview was running but for some reason I keep getting this error at the end. Also when I check the mocap_output folder I will have the rendered files but the mocap folder is empty.
Please note, I am getting this error when running frankmocap in Linux Mint. :D Unfortunately this is seperate issue when I run it on windows.
python -m demo.demo_bodymocap --input_path ./sample_data/han_short.mp4 --out_dir ./mocap_output
demo_utils.py ffmpeg_cmd = f'ffmpeg -y -f image2 -framerate 25 -pattern_type glob -i "{in_dir}/.jpg" -pix_fmt yuv420p -c:v libx264 -x264opts keyint=25:min-keyint=25:scenecut=-1 -vf "scale=trunc(iw/2)2:trunc(ih/2)*2" {out_path}'
Visualization saved: ./mocap_output/rendered/00181.jpg Time: 0.13 sec/frame, FPS 7.49 Processed : ./mocap_output/frames/00181.jpg
Visualization saved: ./mocap_output/rendered/00182.jpg Time: 0.13 sec/frame, FPS 7.50 Processed : ./mocap_output/frames/00182.jpg