Skip to content

Instantly share code, notes, and snippets.

@mondain
Last active October 9, 2017 15:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mondain/cc2c3cac30a9e957fc3c6ad4b6ec1956 to your computer and use it in GitHub Desktop.
Save mondain/cc2c3cac30a9e957fc3c6ad4b6ec1956 to your computer and use it in GitHub Desktop.
ffmpeg-mpeg-ts
#!/bin/bash
for f in `find . -name '*.flv'`;
do ffmpeg -y -re -i ${f} -vcodec copy -acodec copy -f segment -segment_list ${f}.m3u8 ${f}%03d.ts;
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment