Jump to content

Command Crate ¿about?

Get the HTML 'codecs' attribute from an MP4 file (MP4Box, grep, awk, paste)

MP4Box -info $VIDEO.mp4 2>&1 | grep RFC6381 | awk '{print $4}' | paste -sd , -

Inspects an MP4 file to find all RFC 6381 codec identifiers and formats them into a single, comma-separated string suitable for the 'codecs' attribute in an HTML5 video tag.

multimedia [kb:317]