{"id":22132,"date":"2015-07-14T11:28:19","date_gmt":"2015-07-14T10:28:19","guid":{"rendered":"http:\/\/johnwarburton.net\/blog\/?p=22132"},"modified":"2015-07-14T11:44:21","modified_gmt":"2015-07-14T10:44:21","slug":"play-avid-meridien-mxf-with-ffplay","status":"publish","type":"post","link":"http:\/\/johnwarburton.net\/blog\/?p=22132","title":{"rendered":"Play Avid Meridien MXF or OMF with FFplay"},"content":{"rendered":"<p>You may have found an old Avid drive containing MXF or OMF files compressed with Meridien codecs. Sometimes these are known by their compression ratio, e.g. &#8220;2:1&#8221; or &#8220;14:1&#8221;.<\/p>\n<p><p>Because of the combination of the MXF\/OMF container and the Meridien codec, rarely found in modern software apart from Avid, these files can be difficult to play, even if your QuickTime installation contains the Avid-distributed codecs.<\/p>\n<p>So how can you view these files for free?<\/p>\n<p>Easy. Avid Meridien compression is actually MJPEG &#8211; Motion JPEG compression. The free and open-source utility FFmpeg has a sister player: FFplay. Even though it doesn&#8217;t know how to find an MJPEG codec inside an MXF OP1A wrapper, or an Avid OMF wrapper, you can tell it what to do with a simple command line. Then, you can view any Meridien-compressed MXF or OMF files on your drive.<\/p>\n<p>As a guide, MXF video files are named in the following way:<\/p>\n<p><code>CLIPnameVnn.&lt;ID&gt;_&lt;ID&gt;.mxf<\/code><\/p>\n<p>&#8220;<code>ID<\/code>&#8221; is a hexadecimal string that Avid uses to track the media. The pattern for OMF files is similar.<\/p>\n<p>When the letter &#8216;V&#8217; follows a clip name, and is succeeded by a pair of digits, you&#8217;ve found a video file. Then, the command to play it is:<\/p>\n<p><code>ffplay -f mjpeg CLIPV01.&lt;ID&gt;_&lt;ID&gt;.MXF<\/code><\/p>\n<p>The trick is the &#8220;<code>-f mjpeg<\/code>&#8221; in the command line. This forces FFplay to interpret the file as containing data encoded as Motion JPEG.<\/p>\n<p>And now you can see your pictures. They&#8217;ll play with the VBI data included, and the colour range may appear washed out because you&#8217;re displaying broadcast-level pictures on a computer-level display.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>You may have found an old Avid drive containing MXF or OMF files compressed with Meridien codecs. Sometimes these are known by their compression ratio, e.g. &#8220;2:1&#8221; or &#8220;14:1&#8221;. Because of the combination of the MXF\/OMF container and the Meridien codec, rarely found in modern software apart from Avid, these files can be difficult to &hellip; <a href=\"http:\/\/johnwarburton.net\/blog\/?p=22132\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Play Avid Meridien MXF or OMF with FFplay<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6,3],"tags":[],"class_list":["post-22132","post","type-post","status-publish","format-standard","hentry","category-encoding","category-film-making"],"_links":{"self":[{"href":"http:\/\/johnwarburton.net\/blog\/index.php?rest_route=\/wp\/v2\/posts\/22132","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/johnwarburton.net\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/johnwarburton.net\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/johnwarburton.net\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/johnwarburton.net\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=22132"}],"version-history":[{"count":3,"href":"http:\/\/johnwarburton.net\/blog\/index.php?rest_route=\/wp\/v2\/posts\/22132\/revisions"}],"predecessor-version":[{"id":22139,"href":"http:\/\/johnwarburton.net\/blog\/index.php?rest_route=\/wp\/v2\/posts\/22132\/revisions\/22139"}],"wp:attachment":[{"href":"http:\/\/johnwarburton.net\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=22132"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/johnwarburton.net\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=22132"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/johnwarburton.net\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=22132"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}