FFMPEG ~ m3u8轉mp4

ffmpeg -allowed_extensions ALL -protocol_whitelist "file,http,crypto,tcp,tls,https" -i "https://www.baidu.com/test.m3u8" -c copy test.mp4
#!/bin/bash

export targetDir="/Users/huibin/Downloads/VideoData/"

for fileName in $(ls /Users/huibin/Downloads/VideoData); do
  if [[ ${fileName:0-5} == '.m3u8' ]]; then # 查找擴展名爲 .py的文件
    echo $fileName
    `/Users/huibin/ffmpeg/ffmpeg -allowed_extensions ALL -protocol_whitelist "file,http,crypto,tcp" -i /Users/huibin/Downloads/VideoData/$fileName -c copy $fileName.mp4`

  fi  
done

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章