安装you-get和ffmpeg for Mac
1.安装you-get 和 ffmpeg
# brew install you-get
# brew install ffmpeg
# brew install pkg-config
报错解决:# brew reinstall pkg-config
2.使用
# you-get ‘https://www.youtube.com/watch?v=JC82Il2cjqA’
3.ffmpeg字幕合成视频
字幕直接显示出来                                                                                                                                                                                              
# ffmpeg -i subtitle.srt subtitle.ass  #把.srt格式转换为.ass                                                                                                                                           
# ffmpeg -i input.mp4 -vf ass=subtitle.ass output.mp4  #注意:由于ffmpeg默认是不支持libass的,所以这条命令会失败;添加–enable-libass编译选项                                                                                                                                                                                                                                                                    
解决方法:在ffmpeg官网下载ffmpeg源码,重新编译:                                                                                                                                                                  
# ./configure –enable-libass –disable-yasm –disable-static –enable-shared                                                                                                                                   
# make -j8                                                                                                                                                                                                      
# sudo make install