DTMediaRead Pipe Utility

dt logo 1.5inchThe DTMediaRead SDK now includes a utility called dtmrpipe. This utility allows the user to 'pipe' out uncompressed YUV2 or BGRA video data to another application. It can also be used to pipe an uncompressed stereo audio stream in 16 or 32 bit little endian. This is useful for feeding other applications, such as ffmpeg, with the output of file formats, types or codecs it doesn't support.

 

DTMRPipe

 

DTMRPipe is a command line utility.  The available parameters are:

 

dtmrpipe - pipe raw audio or video out of a media file, by Drastic Technologies (www.drastic.tv)
Build: 358
(c)opyright 1995-2014 Drastic Technologies Ltd. All rights reserved.
Usage: ./dtmrpipe -q -i <sourcefile> -t <type>
    -i <sourcefile> File to decode
    -q Quiet, minimal print outs
    -t <type> Type of raw video or audio:
      Video
         0 BGRA 8 bit
         1 UYUV 8 bit YCbCr 4:2:2
      Audio
         10 16 bit stereo le
         11 32 bit stereo le

 

The basic usage would be

someapp 'parameters for that app' < dtmrpipe cine.cine -q -t 0

The result would be each frame of the cine file would be read and decoded to 8 bit BGRA, and then fed to the secondary encoder.

Examples (using FFMPEG)

 

Convert a cine to a MP4/h.264 (via RGB)

dtmrpipe -i cine.cine -t 0 | ffmpeg -s 1920x1080 -pix_fmt rgb32 -f rawvideo -i pipe:0 -c:v mpeg4 -s 1920x1080 -aspect 16:9 cine.mp4

Convert an MXF (XDcam in this case) to a MP4/h.264 (via YCbCr)

dtmrpipe -i xdcam.mxf -t 1 | ffmpeg -i pipe:0 -pix_fmt yuyv422 -c:v mpeg4 -s 1920x1080 -aspect 16:9 xd.mp4

Convert a DNG Sequence to an MP4/h.264 (via RGB) at 6 megabits

dtmrpipe -i First0000.dng -t 0 | ffmpeg -s 1920x1080 -pix_fmt rgb32 -f rawvideo -i pipe:0 -c:v mpeg4 -s 1920x1080 -aspect 16:9 -vb 6M cine.mp4

More great products from Drastic

Running videoQC, 4KScope & Apps Remotely
Running videoQC, 4KScope & Apps Remotely 4KScope, videoQC, DrasticPreview, DrasticPreview Pro, and other OpenGL based apps can have trouble displaying the video in an OpenGL plane when connected via Re... Tips, Tricks and Technical Information
Drastic Metadata Elements
Drastic Metadata Elements Drastic software supports a wide range of metadata elements.  These elements are stored within the actual media files when available, and also stored in a ... Tips, Tricks and Technical Information
SMPTE2NET SDI2NET Command Line
SMPTE2NET SDI2NET Command Line SMPTE2NET/SDI2NET is part of the Net-X-Code server software. These tools convert from SDI, SMPTE2110 or NDI to NDI, UDP, RTP, or SRT.  The include&n... Tips, Tricks and Technical Information
HDR 10 Bit / 12 Bit Support For HDRScope
HDR 10 Bit / 12 Bit Support For HDRScope HDRScope supports 8, 10, and 12 bit SDI inputs.  This article maintains a list of compatible hardware for 10 and 12 bit 4:4:4 RGB signals.  Please not... Tips, Tricks and Technical Information
Adding New Languages To QuickClipXO
Adding New Languages To QuickClipXO The QuickClipXO interface is written in the Java programming language. It supports custom message strings which can be used to display alternate text for most o... Tips, Tricks and Technical Information