Search code examples
ffmpegmime-typesffprobe

Can ffprobe return the mime type?


I want to get the mime type (e.g. video/mp4) of a media file using ffprobe. Is that possible or do I need another program for that?


Solution

  • I have just found out, while working on another project, if you do ffmpeg -h muxer=mp4, it also shows the mime type. This has made it a lot easier for me. I can run ffprobe testvid.mp4, find the file type and then use the -h muxer= method to get the mime type.