Recording FFMPEG channel

Hello,

Congratulations on the CasparCG!!!. But it’s frustrating about Caspar’s documentation, I’m sorry. But a lot of versions a lot of evidence to get something.

I need to get clear with the recording in v2.3. I’m running 3 channels, 2 players in HD and the 3 input Decklink input in PAL only for NDI and recording. NDI its perfect. But i would need to record the PAL input, but I can’t find the right codec for an MPEG2 IBP MP@ML, close GOP, and PCM 16 audio.

For example if I use:

ADD 3 FILE "NVCE1.mp4"  -c:v mpeg2video -pix_fmt yuv422p -s 720x576 -aspect 16:9  -c:a pcm_s16le -f dvd

Receive:

#202 ADD OK
[2020-06-09 11:04:53.213] [info] ffmpeg[NVCE1.mp4] Initialized.
[2020-06-09 11:04:53.217] [info] [ffmpeg] [libx264 @ 000001D29B61DDC0] using SAR=64/45
[2020-06-09 11:04:53.217] [info]
[2020-06-09 11:04:53.218] [info] [ffmpeg] [libx264 @ 000001D29B61DDC0] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
[2020-06-09 11:04:53.218] [info]
[2020-06-09 11:04:53.220] [info] [ffmpeg] [libx264 @ 000001D29B61DDC0] profile High 4:2:2, level 3.1, 4:2:2, 8-bit
[2020-06-09 11:04:53.220] [info]
[2020-06-09 11:04:53.231] [warning] ffmpeg[NVCE1.mp4] Unused option aspect=16:9
[2020-06-09 11:04:53.231] [warning] ffmpeg[NVCE1.mp4] Unused option c=pcm_s16le:a
[2020-06-09 11:04:53.232] [warning] ffmpeg[NVCE1.mp4] Unused option f=dvd
[2020-06-09 11:04:53.232] [warning] ffmpeg[NVCE1.mp4] Unused option pix_fmt=yuv422p
[2020-06-09 11:04:53.232] [warning] ffmpeg[NVCE1.mp4] Unused option s=720x576

For PAL DVCAM dv the same:

ADD 3 FILE "test1.avi" -codec:v dvvideo -vf scale=720:576

In the case of H264 with NVENC it works wonderfully:
H264

How can I control the recording parameters for this version of CasparCg?

Thanks for your help

Try following command.

ADD 1 FILE "NVCE31.avi"  -codec:v mpeg2video -codec:a pcm_s16le -b:v 10M -filter:v format=pix_fmts=yuv422p,scale=720x576,fps=25,setdar=16/9 -filter:a pan=stereo|c0=c0|c1=c1

Ok!! Great


[2020-06-09 12:59:24.584] [info]    Received message from Console: ADD 3  FILE "NVCE31.avi"  -codec:v mpeg2video -codec:a pcm_s16le -b:v 10M -filter:v format=pix_fmts=yuv422p,scale=720x576,fps=25,setdar=16/9 -filter:a pan=stereo|c0=c0|c1=c1\r\n
[2020-06-09 12:59:24.585] [info]    ffmpeg[NVCE31.avi] Initialized.
[2020-06-09 12:59:24.591] [info]    [ffmpeg] [Parsed_pan_0 @ 000002F1823A65C0] Pure channel mapping detected:
[2020-06-09 12:59:24.591] [info]    [ffmpeg]  0
[2020-06-09 12:59:24.591] [info]    [ffmpeg]  1
[2020-06-09 12:59:24.591] [info]    [ffmpeg] 
[2020-06-09 12:59:24.591] [info]

Work Ok, but if the name is xxx.mpg not work!!! :frowning:

It would be great to have a list of broadcast recording formats.

In Spain the most poupular in formts in broadcast is:
¿How encoder correctly for this format?

VÍDEO ALTA DEFINICIÓN (HD)
-Format SONY XDCAM HD 422 @ 50 Mbps (wrapper MXF OP1A)
-Códec: MPEG HD422 for XDCAM HD
-Resolución1080/50i
-Bitrate: 50 Mbps
-Rate control: CBR (Constant Bit Rate)
-Level: 422P@HL
-Resolución: 8 bits, 48 Khz 24 Bits
Audio in 24 bits (formato Sony XD-CAM HD
-8 layers of audio

Thank you for your work, it’s impressive!!!