Capture SD PAL IMX50 what settings?

I’m trying to record a correct Sony D10 SD PAL MXF file with CasparCG 2.1
It should be with a aspect ratio of 4:3 iinterlaced

I have set CasparCG to PAL format and I capture with a Decklinkcard from a Betacam player.
When I use
ADD 1 FILE “myclip.MXF” -c:v mpeg2video -r 25 -pix_fmt yuv422p -minrate 50000k -maxrate 50000k -b:v 50000k -intra -flags +ildct+low_delay -intra_vlc 1 -non_linear_quant 1 -ps 1 -qmin 1 -qmax 3 -top 1 -dc 10 -bufsize 2000000 -rc_init_occupancy 2000000 -rc_max_vbv_use 1 -rc_min_vbv_use 1 -c:a pcm_s16le -ar 48000 -f mxf_d10
I get a PAL MXF file with aspect ratio of 16-9
When I add -aspect 4:3 I get an error in CasparCG, aspect ratio mismatch between muxer 64/45 and encode layer 4/3.

How can I fix this?

I use following command in server 2.1 beta2 for imx50.

ADD 1 FILE "/test.mxf" -b:v 50000000 -codec:a pcm_s16le -codec:v mpeg2video -pix_fmt yuv422p -alternate_scan 1  -g 1  -minrate 50000k -maxrate 50000k  -timecode 17:28:07:10 -metadata creation_time=now -color_primaries bt470bg -color_trc 1  -colorspace bt470bg -vf setdar=4:3 -f mxf_d10 -d10_channelcount 8

I think you need -vf setdar=4:3

Thank you Vimlesh, that works very nice!
It’s also accepted by Adobe Premiere as it should be with IMX50!
I can also set channelcount to 2 with stereo settings in CasparCG.

1 Like

How can we record 4 or 8 channel from a SDI feed with IMX 50 with CasparCG 2.1?
I have set my channel to 8ch
If I do this
ADD 1 FILE “/test.mxf” -b:v 50000000 -codec:a pcm_s16le -codec:v mpeg2video -pix_fmt yuv422p -alternate_scan 1 -g 1 -minrate 50000k -maxrate 50000k -timecode 17:28:07:10 -metadata creation_time=now -color_primaries bt470bg -color_trc 1 -colorspace bt470bg -vf setdar=4:3 -f mxf_d10 -d10_channelcount 8

I get a multichannel audio file with only audio on channel 1 and 2, the rest is silent.
(my SDI feed has 8 different audiochannels)

I have fixed this problem
So I Like to add following,

Before I start recording I send this to the server
SET 1 MODE PAL
SET 1 CHANNEL_LAYOUT 8ch

IF I now start playback of a multichannel MXF file I get al the embedded audio channels on the SDI out of the decklinkcard.
However if I start live recording with a Decklinkcard I only get 2 audiochannels
I used
PLAY 1-1 Decklink 1 FORMAT PAL
IF I use
PLAY 1-1 Decklink 1 FORMAT PAL CHANNEL_LAYOUT 8ch
It works!
If you now record a MXF this way you get IMX with 8 channels audio.

To get this post complete I use this to get a IMX 50 file (SD PAL) with 8 channels audio
(note -ac 2 will be ignored)

ADD 1 FILE “testclip SD imx 50 8ch.mxf” -c:v mpeg2video -pix_fmt yuv422p -vf setdar=16:9 -top 1 -flags +ildct+ilme+low_delay -dc 10 -intra_vlc 1 -non_linear_quant 1 -ps 1 -g 1 -qscale:v 1 -qmin 1 -qmax 12 -rc_min_vbv_use 1 -rc_max_vbv_use 1 -b:v 50000000 -minrate 50000000 -maxrate 50000000 -ac 2 -acodec pcm_s16le -ar 48000 -f mxf_D10

If you import this in Premiere Pro you can see the 8 channels (not in VLC)

to get everything in just stereo
Before I start recording I send this to the server
SET 1 MODE PAL
SET 1 CHANNEL_LAYOUT stereo
PLAY 1-1 Decklink 1 FORMAT PAL CHANNEL_LAYOUT stereo

ADD 1 FILE “testclip SD imx 50 stereo.mxf” -c:v mpeg2video -pix_fmt yuv422p -vf setdar=16:9 -top 1 -flags +ildct+ilme+low_delay -dc 10 -intra_vlc 1 -non_linear_quant 1 -ps 1 -g 1 -qscale:v 1 -qmin 1 -qmax 12 -rc_min_vbv_use 1 -rc_max_vbv_use 1 -b:v 50000000 -minrate 50000000 -maxrate 50000000 -ac 2 -acodec pcm_s16le -ar 48000 -f mxf_D10

(NOTE this is done with CasparCG 2.1, this version records MXF and stereo mp4 just fine
mp4 is still failing with higher CasparCG versions)