レポジトリ追加
[root@localhost ~]# rpm -Uvh http://li.nux.ro/download/nux/dextop/el6/x86_64/nux-dextop-release-0-2.el6.nux.noarch.rpm
インストール
[root@localhost ~]# yum install ffmpeg ffmpeg-devel
動作確認
youtube-dlを使って動作確認する例
[root@localhost ~]# pip install youtube-dl
[root@localhost ~]# youtube-dl https://twitter.com/kanett3/status/1097903124637859845 -o test.mp4
[twitter] 1097637712230789123: Downloading webpage
[twitter:card] 1097637712230789123: Downloading webpage
[twitter:card] 1097637712230789123: Downloading guest token
[twitter:card] 1097637712230789123: Downloading JSON metadata
[twitter:card] 1097637712230789123: Downloading m3u8 information
[hlsnative] Downloading m3u8 manifest
[hlsnative] Total fragments: 47
[download] Destination: test.mp4
[download] 100% of 4.37MiB in 00:09
[ffmpeg] Fixing malformed AAC bitstream in "test.mp4"
ちゃんとffmpegを使って変換してることが確認できる。
ffmpegが使えないとこんなエラーが出る。
WARNING: 1097637712230789123: malformed AAC bitstream detected. Install ffmpeg or avconv to fix this automatically.
ガラケーの頃はこんな風にして使ってた
PHPで行う動画変換
https://codezine.jp/article/detail/5173
https://codezine.jp/article/detail/5289