Skip to content

Instantly share code, notes, and snippets.

@a-sync
Created November 19, 2017 10:14
Show Gist options
  • Save a-sync/e0729d147fcb4cd1b806edaac7fc850c to your computer and use it in GitHub Desktop.
Save a-sync/e0729d147fcb4cd1b806edaac7fc850c to your computer and use it in GitHub Desktop.
Rip and concat MPEG2 playlists with ffmpeg
#!/bin/bash
# Rip and concat MPEG2 playlists with ffmpeg
read -p 'URL: ' urlvar
read -p 'File name: ' filenamevar
ffmpeg -i ${urlvar} -c copy -bsf:a aac_adtstoasc ${filenamevar}.mp4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment