# debian安装FFmpeg来合并youtube音频 URL: https://chengjinfang.com/posts/2017/install-ffmpeg/ Author: 程锦方 Date: 2017-11-05 Tags: #linux #note #install Summary: 在 Debian 安装 FFmpeg,将单独下载的视频和音频合并。 ------------------------------------------------------------------------ ## 安装 ``` sudo sh -c 'echo "deb http://www.deb-multimedia.org stretch main non-free" >> /etc/apt/sources.list' sudo apt-get update sudo apt-get install deb-multimedia-keyring sudo apt-get install ffmpeg ``` ## 使用 获取全部格式 ``` youtube-dl -F https://www.youtube.com/watch? ``` 输入视频ID+音频IDffmpeg自动合并 ``` youtube-dl -f 137+140 https://www.youtube.com/watch? ``` youtube-dl说明:https://chengjinfang.com/posts/2017/install-youtube-dl/ ## 卸载 ``` sudo apt-get remove ffmpeg sudo rm /opt/ffmpeg/bin/ffmpeg /usr/bin/ffmpeg ``` ffmpeg官网 https://www.ffmpeg.org ------------------------------------------------------------------------ Site: https://chengjinfang.com/ · All Index: https://chengjinfang.com/all/ · RSS: https://chengjinfang.com/rss.xml