Advertisement
thenadz

Get FFMPEG MIME Types

May 30th, 2015
3,808
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.39 KB | None | 0 0
  1. #!/bin/sh -e
  2.  
  3. # download the FFmpeg source code
  4. wget http://ffmpeg.org/releases/ffmpeg-snapshot.tar.bz2
  5. tar xjvf ffmpeg-snapshot.tar.bz2
  6.  
  7. cd ffmpeg
  8.  
  9. # 1. find all places where output formats are registered
  10. # 2. grab the MIME type
  11. # 3. handle multiple MIME types
  12. # 4. get rid of duplicates
  13. grep -r '\s\.mime_type\s*=\s*' . \
  14. | sed -re 's/.*=\s"(.*)".*/\1/g' \
  15. | tr ',' '\n' \
  16. | sort -u
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement