![Conda 환경에서 libx264 ffmpeg를 사용하는 방법은 무엇입니까?](https://rvso.com/image/1586922/Conda%20%ED%99%98%EA%B2%BD%EC%97%90%EC%84%9C%20libx264%20ffmpeg%EB%A5%BC%20%EC%82%AC%EC%9A%A9%ED%95%98%EB%8A%94%20%EB%B0%A9%EB%B2%95%EC%9D%80%20%EB%AC%B4%EC%97%87%EC%9E%85%EB%8B%88%EA%B9%8C%3F.png)
avi 비디오 파일을 h264 처리된 mp4 파일로 변환하려고 시도했지만 다음 오류가 발생했습니다.
$ ffmpeg -i sa1-video-fram1.avi -c:v libx264 -crf 19 -c:a libfdk_aac -b:a 192k -ac 2 out.mp4
ffmpeg version 4.0 Copyright (c) 2000-2018 the FFmpeg developers
built with gcc 7.2.0 (crosstool-NG fa8859cb)
configuration: --prefix=/home/anaconda2_new/envs/faceswap-GAN --cc=/opt/conda/conda-bld/ffmpeg_1531088893642/_build_env/bin/x86_64-conda_cos6-linux-gnu-cc --disable-doc --enable-shared --enable-static --enable-zlib --enable-pic --enable-gpl --enable-version3 --disable-nonfree --enable-hardcoded-tables --enable-avresample --enable-libfreetype --disable-openssl --disable-gnutls --enable-libvpx --enable-pthreads --enable-libopus --enable-postproc --disable-libx264
libavutil 56. 14.100 / 56. 14.100
libavcodec 58. 18.100 / 58. 18.100
libavformat 58. 12.100 / 58. 12.100
libavdevice 58. 3.100 / 58. 3.100
libavfilter 7. 16.100 / 7. 16.100
libavresample 4. 0. 0 / 4. 0. 0
libswscale 5. 1.100 / 5. 1.100
libswresample 3. 1.100 / 3. 1.100
libpostproc 55. 1.100 / 55. 1.100
Input #0, avi, from 'sa1-video-fram1.avi':
Metadata:
encoder : Lavf57.83.100
Duration: 00:00:04.93, start: 0.000000, bitrate: 359 kb/s
Stream #0:0: Video: h264 (High) (avc1 / 0x31637661), yuv420p(progressive), 512x384, 280 kb/s, 25 fps, 25 tbr, 25 tbn, 50 tbc
Stream #0:1: Audio: aac (LC) ([255][0][0][0] / 0x00FF), 16000 Hz, mono, fltp, 69 kb/s
Unknown encoder 'libx264'
그래서 다음 명령을 실행하여 libx264를 설치했습니다.
conda install -c conda-forge x264
하지만 위의 오류는 해결되지 않습니다.
질문:
Conda 환경에서 libx264 ffmpeg를 사용하는 방법은 무엇입니까?