facebookresearch / frankmocap

A Strong and Easy-to-use Single View 3D Hand+Body Pose Estimator
Other
2.12k stars 373 forks source link

Unrecognized option 'x264opts' #160

Closed CGMikeG closed 2 years ago

CGMikeG commented 2 years ago

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

Generating video in ./mocap_output/han_short.mp4 ffmpeg version 4.3 Copyright (c) 2000-2020 the FFmpeg developers built with gcc 7.3.0 (crosstool-NG 1.23.0.449-a04d0) configuration: --prefix=/home/lalala/Downloads/yes/envs/frankmocap --cc=/opt/conda/conda-bld/ffmpeg_1597178665428/_build_env/bin/x86_64-conda_cos6-linux-gnu-cc --disable-doc --disable-openssl --enable-avresample --enable-gnutls --enable-hardcoded-tables --enable-libfreetype --enable-libopenh264 --enable-pic --enable-pthreads --enable-shared --disable-static --enable-version3 --enable-zlib --enable-libmp3lame libavutil 56. 51.100 / 56. 51.100 libavcodec 58. 91.100 / 58. 91.100 libavformat 58. 45.100 / 58. 45.100 libavdevice 58. 10.100 / 58. 10.100 libavfilter 7. 85.100 / 7. 85.100 libavresample 4. 0. 0 / 4. 0. 0 libswscale 5. 7.100 / 5. 7.100 libswresample 3. 7.100 / 3. 7.100 Unrecognized option 'x264opts'. Error splitting the argument list: Option not found

penincillin commented 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).

CGMikeG commented 2 years ago

You're an absolute legend! That did the trick for me. Finally, I can finally start testing frankmocap. :D Thank you very much!