Bug: [ Casparcg File Recording Issue ]
Observed Behavior
When I record a file XDCAMHD422, DNXHD, or h264, The file records successfully. After recording the file, while checking the file with VLC, the duration of the file is almost half. and its play like 2x speed I try different player but result is same. I try with server version 2.07 it works fine only DNXHD. But DNXHD record file bitrate is too high 185 Mbps also unable to set bitrate with DNXHD.
Expected behaviour
It should Record files normally like any other ingest system. should record files with any codec like Adobe Premiere Pro, OBS, Vmix, and other recording software. Should record file without any issue and able to set bitrate or set recording profile
Steps to reproduce
- Play Any clip from clip list "PLAY 1-1 Filename_in_mediadirectory"
- Record the file using the command "ADD 1 FILE "Output.mov" -vcodec dnxhd45 -preset ultrafast -tune fastdecode\r\n"
- I use this command to record XDCAM "ADD 1 FILE "Test 422.mxf" -b:v 50000000 -codec:a pcm_s24le -codec:v mpeg2video -filter:v format=yuv422p,tinterlace=4 -alternate_scan:v 1 -g:v 12 -bf:v 2 -minrate:v 50000k -maxrate:v 50000k -color_primaries:v bt709 -color_trc:v 1 -colorspace:v 1"
- Check the file using vlc or any other player or editing software
Environment
- Commit: I tried two different pc with fresh downloaded all casparcg server & client But the issue remains the same.
- Server version: . v2.0.7, v2.2.0, v2.3.3 LTS, v2.4.1 stable]
- Operating system: [Windows 10 (22H2)]
I finally found the solution. Today, I tried using another machine. I recorded the file using this command
ADD 1 FILE “Test stereo feed.mxf” -b:v 35000000 -codec:a pcm_s24le -codec:v mpeg2video -filter:v interlace,zscale=rangein=full:range=limited:primaries=709:transfer=709:matrix=709,format=yuv420p -alternate_scan:v 1 -g:v 12 -bf:v 2 -minrate:v 35000k -maxrate:v 35000k -color_primaries:v bt709 -color_trc:v 1 -colorspace:v 1 -filter:a pan=stereo|c0=c0|c1=c1
& surprisingly the recorded file was no issue it was perfect. I tried to identify the issue finally I found that it was GPU, My previous systems did not have GPU, I disabled the GPU and tried to record the file the issue happened again & I confirmed that the issue was GPU.
Thanks everyone for helping me.
Did you noticed that you have vertical resolution drop with MXF?
If you play this file in CasparCG and record it, you get a softer result with MXF interlaced format
I finally found the solution. Today, I tried using another machine. I recorded the file using this command
ADD 1 FILE “Test stereo feed.mxf” -b:v 35000000 -codec:a pcm_s24le -codec:v mpeg2video -filter:v interlace,zscale=rangein=full:range=limited:primaries=709:transfer=709:matrix=709,format=yuv420p -alternate_scan:v 1 -g:v 12 -bf:v 2 -minrate:v 35000k -maxrate:v 35000k -color_primaries:v bt709 -color_trc:v 1 -colorspace:v 1 -filter:a pan=stereo|c0=c0|c1=c1
& surprisingly the recorded file was no issue it was perfect. I tried to identify the issue finally I found that it was GPU, My previous systems did not have GPU, I disabled the GPU and tried to record the file the issue happened again & I confirmed that the issue was GPU.
Thanks everyone for helping me.
Hi @rakibhossensweet, I have the same problem you had, I have tried many things but they have not worked for me, I still have the same problem. my computer has a GeForce GX 1050 TI nvdia graphics card, but when recording always uses the CPU and not the GPU, I would like you to help me either by sending me your casparcg settings, commands, etc.. beforehand, thank you very much.