Capture HDCAM with Decklinkcard with 8 channels audio

To help out the broadcast people you can find here the correct settings to get a proper HDCAM 8 channel MXF file with CasperCG 2.1
You can use any Blackmagic Decklinkcard with SDI input

In the CasperCG config file I have only set the mediapad and put nothing with channel settings

So CasperCG starts without any format set.

then send this to set channel format and channel layout
SET 1 MODE 1080i5000
SET 1 CHANNEL_LAYOUT 8ch
ADD 1 SCREEN (to get a preview)

PLAY 1-1 Decklink 1 FORMAT 1080i5000 CHANNEL_LAYOUT 8ch

HDCAM 50
ADD 1 FILE myfile.mxf -b 50000000 -acodec pcm_s24le -vcodec mpeg2video -pix_fmt yuv422p -alternate_scan 1 -g 12 -bf 2 -minrate 50000k -maxrate 50000k -color_primaries bt709 -color_trc 1 -colorspace 1

or
HDCAMEX 35
ADD 1 FILE myfile.mxf -b 35000000 -acodec pcm_s24le -vcodec mpeg2video -pix_fmt yuv420p -alternate_scan 1 -g 12 -bf 2 -minrate 35000k -maxrate 35000k -color_primaries bt709 -color_trc 1 -colorspace 1

if you replace CHANNEL_LAYOUT 8ch
with CHANNEL_LAYOUT stereo
You get a 2 channel HDCAM MXF.

8 channel audio can only be done with HDcam mxf not with mp4.

3 Likes

Also for our Broadcast friends:

-flags +ildct+ilme -top 1 -dc 10 -lmin “1*QP2LAMBDA”

add the above parameter options to get correct interlaced top field first and EDIT While Ingest option(to be able to read the file while it is being writen - LIVE). :wink:

1 Like

Hi Mike, thanks for add on
If I paste all your text after my FFMPEG code it does not work.
But If I only use the last part, -dc 10 -lmin “1*QP2LAMBDA” it sure works better while recording!
( I use VLC player to jump in the file while recording)
If I don’t use your last part, I can open and play the recording mxf in vlc,but I can’t skip and rewind in VLC.

So my new code would be
HDCAM 50
ADD 1 FILE myfile.mxf -b 50000000 -acodec pcm_s24le -vcodec mpeg2video -pix_fmt yuv422p -alternate_scan 1 -g 12 -bf 2 -minrate 50000k -maxrate 50000k -color_primaries bt709 -color_trc 1 -colorspace 1 -dc 10 -lmin “1*QP2LAMBDA”

Note the suggested -flags and upper field settings is allready been done with -alternate scan 1
please see Media Info report