Net-X-Copy - Create, Convert & Proxy

verifycc icon

Net-X-Copy is part of the Net-X-Code server and Net-X-Convert/Proxy workstation software. It is designed to convert audio/video/media files to proxy or broadcast/post files, mix audio, extract metadata, and create one or more jpeg preview images.  It can also embed captions into output files like MXF and MOV, and replace the audio or video tracks of a source file during conversion. This article contains the Linux/OS-X/Windows command line API for this tool.

Net-X-Copy (Convert/Proxy)

Net-X-Copy is a command line interface to the copy engine used in Net-X-Code, Net-X-Convert, Net-X-Proxy and videoQC's export feature.  It can be used for a number of file extraction and conversion functions including clipping, proxy generation, metadata extraction and partial file restore.  All these conversions are also available for our REST API.  Some examples of typical command lines follow:

Basic conversion

NetXCopy -s <sourcefile> -t <targetfile> [-a <ackfile>] -p <profile>

Proxy Conversion

NetXCopy -s <sourcefile> -t <targetfile> -p mp4-h264

Proxy Conversion With Parameters

NetXCopy -s <sourcefile> -t <targetfile> -p mp4-h264 -width 640 -height 288 -h26xprofile high -h26xlevel 51 -gopsize 30 -kilobitrate 4000

HLS ABR Proxy Conversion

NetXCopy -s <sourcefile> -p <targetfile> -p HLS-TS-Multibitrate

DASH ABR Proxy Conversion

NetXCopy -s <sourcefile> -p <targetfile> -p HLS-TS-Multibitrate

Export XDCam With Embedded Captions

NetXCopy -s <sourcefile> -t <targetfile>.mxf -p mxf-sonyhd -cc <alternatecaptions>.mcc

Metadata Extraction

NetXCopy -s <sourcefile> -t <sourcefile>.xmp -m

Single JPG Frame Extraction

NetXCopy -pisrc <sourcefile> -pidst <targetfile>.jpg -piframe 100

Mulitple JPG Frame Extraction (every 30 frames)

NetXCopy -pisrc <sourcefile> -pidst <targetfile>.jpg -piskip 30

Extract Captions And Send Result To eMAM

NetXCopy -s <sourcefile> -t <targetfile>.vtt -p caption-144 -flags emamassetid-<assetid>,notifyemam

Extract All Audio Pairs To MP3 And Send Result To eMAM

NetXCopy -s <sourcefile> -t <targetfile>.mp3 -p mp3-128kbs -flags allsubaudiotracks,emamassetid=<assetid>,notifyemam



Command Line Parameters


netxcopy: Setup DrasticDDR for specific configurations (v7.1.0.230)
netxcopy -s -t [-a ] -p [-in <00:01:00:00> -out <00:02:00:00> -fg]

-s - The source file name and path
-t - The target file name and path
-a - The ACK file name and path. This is the XML acknowledgement file made after a copy
-p metadata - Return XMP metadata for a media file
-p cardinfo - Return XML/JSON info on clips on a camera card
-p dir - Return XML/JSON directory listing
-p clipfiles - Return all the files associated with a media clip
-p md5 - Calculate or check the MD5 value source, send compare string as target
-p - Profile to use. Current profiles include:
  > copy - copy the whole file
  > wrap - re wrap file or part of a file
  > index - create an RTIndex for a file
  > getCopyInOut - get the extents required for a pfr, or use them with a temp file
  > mp3-128kbps - Audio MP3 file
  > wave - Audio wave file
  > caption-# - Extract captions from a file (see types below)
  > mov-YCbCr8Bit - QuickTime MOV 8 bit uncompressed YcbCr file
  > mov-dvcprohd - QuicktTime MOV DVCPro HD (1080/720)
  > mp4-h264 - MPEG-4 h264 AAC Audio
  > mxf-xdcam-720p - True XDCam MXF 8 channel audio
  > mxf-dvcprohd-720p - MXF DVCPro HD 720p
  > mxf-xdcam-1080i - True XDCam MXF 1080i 8 channel audio
  > mxf-dvcprohd-1080i - MXF DVCPro HD 1080i 29/25 fps
  > mxf-OP1a-MPEG - OpenMXF XDCam MPEG-2 16 channel audio
  > mxf-OP1a-h264 - MXF h.264
  > mxf-OP1a-HDF - MXF MPEG-2 HDF Standard
  > mxf-as-11-sd-pal-dpp - MXF AS-11 SD PAL DPP
  > mxf-as-11-sd-ntsc-dpp - MXF AS-11 SD NTSC DPP
  > mxf-as-11-hd-dpp - MXF DPP AS-11 AVCi HD
  > mxf-OP1a-JPEG2K - Samma style JPEG2000 YCbCr
  > mxf-AS-02-h264-10 - 10 bit 50 Mbs h.264 in AS-02 MXF
  > OP1a_HBR_50 - OP1a MXF h264 4:2:2 10 bit
  > mov-proreshq - QuickTime MOV ProRes HQ
  > mov-proreslt - QuickTime MOV ProRes LT
  > mov-prores422 - QuickTime MOV ProRes 422
  > mov-prores444 - QuickTime MOV ProRes 444(4)
  > scaledown2000k - MP4 264 960x540, 2mbs, AAC
  > scaledown500k - MP4 264 480x272, 0.5mbs, AAC
  > hd1080-5000kbs - MP4 HD 1080 with a target bitrate of 5 mbs
  > hd720-2500kbs - MP4 HD 720p with a target bitrate of 2.5 mbs
  > hd360-1250kbs - MP4 HD 360p with a target bitrate of 1.25 mbs
  > h264-7500kbs - MP4 Any resolution with a target bitrate of 7.5 mbs
  > Proxy-h264-5000kbs - MP4 high quality proxy for web
  > LBR-h264-10000kbs - Low bit rate, high quality local MP4
  > HEVC-h265-10000kbs - Low bit rate, high quality HEVC MP4
  > DASH-MP4-Multibitrate - Multi bitrate MP4s with DASH files
  > HLS-TS-Multibitrate - Multi bitrate TS streams with M3U8 files
  > MP4-MultiOutput - Multi MP4 with optional burn in files
  > TS-TR-01-JPEG-2000 - TR-01 JPEG-2000 transport stream
  > TS-MPEG2 - MPEG-2 4:2:0/passthrough transport stream
  > TS-h264 - h.264 4:2:0/passthrough transport stream
  > mp4-XAVC-S_4_2_0 - MP4 Sony XAVC-S 4:2:0
  > mp4-XAVC-S_4_2_2 - MP4 Sony XAVC-S 4:2:2
  > aces - ACES image files
  > MXF-RDD-25 - MXF RDD-25 Proxy
  > dnxhd-mxf-720p - DNxHD 720p 50, 59, 60
  > dnxhd-mxf-1080p - DNxHD 1080p 25, 29
  > dnxhd-mxf-1080i - DNxHD 1080i 25, 29
  > dnxhr-mxf-10-hq - DNxHR High Quality 10 bit
  > dnxhr-mxf-8-hq - DNxHR High Quality 8 bit
  > dnxhr-mxf-sq - DNxHR Standard Quality
  > dnxhr-mxf-lq - DNxHR Low Quality
  > amt3-HQX_10 - AMT 3 DNx HQX 10 Bit
  > amt3-HiQuality - AMT 3 DNx High Quality
  > amt3-StandardQuality - AMT 3 DNx Standard Quality
  > amt3-LowQuality - AMT 3 DNx Low Quality
  > amt3-DNxHD36 - AMT 3 1080 DNxHD 36
  > amt3-Consolidate - AMT 3 Any Avid Supported Codec
-type mxf-op1a -- the exact file type to write, otherwise auto
  > mxf-op1a - standard OP1a
  > mxf-sonyhd - Sony XDCam compatible
  > mxf-as02 - AS - 02 spec MXF
  > mxf-avid - Avid OP-Atom (Drastic->bin)
  > mxf-amt = Avid OP-Atom (Avid->aaf)
  > mp4-fmp4 - Fragmented MP4(normal MP4 if not set)
  > mp4 - MPEG-4
  > mov - QuickTime MOV
  > ts - Transport stream
-in <00:01:00:00> - the starting point for the output file in time code or absolute position
-out <00:02:00:00> - the ending point for the output file in time code or absolute position
-absin <200> - the absolute (zero based) start time for the output file (overrides -in)
-tcoffset <00:01:00:00> - Offset the timecode by this amount
-tc <01:00:00:00> - Replace the output timecode starting with this timecode
-ub - Replace the output userbits with these userbits
-absout <400> - the absolute (zero based) end time, exclusive, for the output file (overrides -out)
-width - output width of the video (only for arbitrary codecs like h264, hevc and prores)
-height - output height of the video (in not set, the input size or codec size will be used)
-copy - make a copy of the file section we need, instead of reading directly
-dest - folder or folder and file name for the temp file when using copy
-dest - folder or folder and file name for the temp file when using copy
-cc - replacement closed caption file>
-afile - replacement source audio track
-v - replacement source video track
-stereo - force a stereo pair (mix down) output
-aroute <12345678/auto> - route channels to specific outputs
-uuid - override the UUID of the file with this one
-kilobitrate - override the kilo bit rate
-h26xprofile - override the profile type
-h26xlevel <51> - override the level
-encodemode <0 / 1> - 0 normal, 1 fastest
-gopsize <15> - size of encoded gop
-tempfolder - Temporary folder to store partial file
-alignment - Alignment value for any temporary partial files, for GetCopyInOut profile
-flags flag - Extra flags for special operations
-m - Save the metadata in an XMP file
-fg - force the GUI on
-fc - force command line
NOTE: the parameters in [square brackets] are optional.

For JPEG picons/thumbnails
-pisrc - source for the image
-pidst - target folder and name
-pisize - size of picon, 100%
-piframe - frame to use to make the picon
-piskip - if set, make a picon of each frame at this distance for the whole file
-width - output width of the picon image

For Caption Extraction, these are the numbers to use with -p caption-#
> caption-# - eg caption-0=mcc, caption-6=SCCAUTO, etc
  0=MCC, 1=AAF, 2=TEXT, 3=SCC, 4=SCCDF, 5=N0, 6=SCCAUTO,
  100=Avid Caption, 101=Belle Nuit Subtitler,
  102=CapMaker Plus, 103=Cheetah Caption, 104=Csv, 105=Csv2, 106=Csv3,
  107=D-Cine SMPTE 2007, 108=D-Cine SMPTE 2010,
  109=EBU STL, 110=Final Cut Pro Xml,
  111=Final Cut Xml Gap, 112=Final Cut Pro X Xml,
  113=Final Cut Pro XCM, 114=Flash Xml,
  115=iTunes Timed Text, 116=JSON, 117=JSON Type 2,
  118=JSON Type 3, 119=JSON Type 4, 120=QuickTime text,
  121=SAMI, 122=SAMI modern, 123=Scenarist, 124=DVD_SCC,
  125=DVD_SCCDF, 126=SoftNi sub, 127=Sony DVDArchitect,
  128=Sony DVD Exp dur, 129=Sony DVD line/dur,
  130=Sony DVD Tabs, 131=SubRip, 132=Sub Station Alpha,
  133=Swift V2, 134=Timed Text 1.0, 135=TT 2006-04 .dfxp,
  136=TT 2006-04 .ttml, 137=TT 2006-04 .xml, 138=WebVTT,
  139=YT Annotations, 140=YouTube sbv,
  141=YouTube Transcript, 142=D-Cinema interop,
  143=WebVTT-webvtt, 144=SMPTE-TT 2052,
  145=Netflix Timed Text,
-q Quiet mode.
-l Loud mode.
-r 01:00:00:00 Override timecode start
-R -00:30:00:00 Ofset timecodes (eg. subtract half an hour)
-0 Zero based timecode output
-1 Mark this first timecode in file
-h # eMAM source clip ID
-s Force CC in video stream
-X Extract CC from line 21 (SD only)
-M # CC channel to extract (def: 1)
-C Use 608 compatibility bytes (not 708)
-c # Convert closed captioning to
-f # Force output frame rate (23, 24, 25, 29, 30)
-g # Compensate conversion (2324, 2423, 2930, 3029)
-o CC output directory
-a # Interpret input file using encoding
0=Auto, 1=UTF-8, 2=UTF-16, 3=IBM-850, 4=IBM-860, 5=Windows-1252


More great products from Drastic

Color Space and HDR/HLG in 4KScope
Color Space and HDR/HLG in 4KScope 4KScope, HDRScope, and Network Video Analyzer support 8, 10, and 12 bit color in both YCbCr 4:2:2 and RGB 4:4:4 modes.  Correct measurement of signals requ... Tips, Tricks and Technical Information
VTR Control Setup
VTR Control Setup In QuickClip, QuickClipXO, MediaNXS, DTouch, VVW Series DDRs and Titan Series DDRs, VTRs appear as EXT (external) channels. External channels can be set up in e... Tips, Tricks and Technical Information
QuickClipXO Flags
QuickClipXO Flags   There are some flags that can be used to modify QuickClipXO.   QuickClipXO.exe [-nsthqrvd] [targetaddress[:port]] n ... Tips, Tricks and Technical Information
Controlling 4KScope
Controlling 4KScope 4KScope supports both command line parameters and keyboard control.  This command line parameters can be used to allow 4KScope to open automatically on sta... Tips, Tricks and Technical Information
Web Server Setup for DrasticDDR
Web Server Setup for DrasticDDR All Drastic server digital disk recorder (DDR) products have a built in web server for local use. If you have a VVW Series, Titan Series, ClipRecorder, or Inges... Tips, Tricks and Technical Information