To-Slalom

ffmpeg video download linux

Apr 2nd, 2021 (edited)
359
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.66 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. # Start by setting up your file. Make it anywhere that you like.
  4. # $ touch ffmpeg-batch.sh
  5. # Then, make it executable.
  6. # $ chmod +x ffmpeg-batch.sh
  7. # https://linuxconfig.org/how-to-use-ffmpeg-to-convert-multiple-media-files-at-once-on-linux
  8.  
  9. # Defenir User Agent
  10. ua="Mozilla/5.0 (Windows NT 10.0; WOW64; rv:77.0) Gecko/20100101 Firefox/77.0"
  11.  
  12. # lista de videos a sacar
  13. vid_list=(
  14.     url_video_1.m3u8
  15.     url_video_2.m3u8
  16. )
  17. # fazer loop a cada video
  18. for key in "${!vid_list[@]}" ; do
  19.     ffmpeg -user-agent "${ua}" -i "${vid_list[$key]}" -seekable 0 -c copy -bsf:a aac_adtstoasc video_title_${key}.mp4
  20. done
  21. read -p "Press any key to continue"
  22.  
Add Comment
Please, Sign In to add comment