Open youngboy52 opened 2 years ago
Hi @youngboy52,
I have not encountered this problem, but it looks like the issue is stemming from ffmpeg, not the StyleSDF code base.
I encountered the same problem. And then I run the command reported in the error message:
~/Environment/anaconda3/envs/pytorch3d/bin/ffmpeg -y -f rawvideo -pix_fmt rgb24 -s 1024x1024 -i - -pix_fmt yuv420p -crf 10 ~/Work/Avatar/StyleSDF/evaluations/ffhq1024x1024/final_model/videos/sample_video_0_elipsoid.mp4
And then I encountered the error:
fmpeg 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=/opt/conda/conda-bld/ffmpeg_1597178665428/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placeh --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 'crf'.
Error splitting the argument list: Option not found
The related topic about this error can be seen on the link: https://github.com/scikit-video/scikit-video/issues/111 and https://superuser.com/questions/1302753/ffmpeg-unrecognized-option-crf-error-splitting-the-argument-list-option-not.
And my solution is to replace the ffmpeg
file under the ~/Environment/anaconda3/envs/pytorch3d/bin/
with the file ffmpeg
downloaded from https://johnvansickle.com/ffmpeg/builds/ffmpeg-git-amd64-static.tar.xz.
Then the code works :)
I encountered the same problem. And then I run the command reported in the error message:
~/Environment/anaconda3/envs/pytorch3d/bin/ffmpeg -y -f rawvideo -pix_fmt rgb24 -s 1024x1024 -i - -pix_fmt yuv420p -crf 10 ~/Work/Avatar/StyleSDF/evaluations/ffhq1024x1024/final_model/videos/sample_video_0_elipsoid.mp4
And then I encountered the error:
fmpeg 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=/opt/conda/conda-bld/ffmpeg_1597178665428/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placeh --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 'crf'. Error splitting the argument list: Option not found
The related topic about this error can be seen on the link: scikit-video/scikit-video#111 and https://superuser.com/questions/1302753/ffmpeg-unrecognized-option-crf-error-splitting-the-argument-list-option-not. And my solution is to replace the
ffmpeg
file under the~/Environment/anaconda3/envs/pytorch3d/bin/
with the fileffmpeg
downloaded from https://johnvansickle.com/ffmpeg/builds/ffmpeg-git-amd64-static.tar.xz.Then the code works :)
The solution works for me. Thx!
Hi, I followed your Pre-Requisits to build my own environment, but when I tried to generate videos using the following script: python render_video.py --expname NAME_OF_TRAINED_MODEL --size MODEL_OUTPUT_SIZE --identities NUMBER_OF_FACES, it reported errors in video writer: Have you met the same problem? looking forward to your reply~