CasparCG / server

CasparCG Server is a Windows and Linux software used to play out professional graphics, audio and video to multiple outputs. It has been in 24/7 broadcast production since 2006. Ready-to-use downloads are available under the Releases tab https://casparcg.com.
GNU General Public License v3.0
914 stars 269 forks source link

Bug: [ Casparcg File Recording Issue ] #1585

Open rakibhossensweet opened 2 weeks ago

rakibhossensweet commented 2 weeks ago

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

  1. Play Any clip from clip list "PLAY 1-1 Filename_in_mediadirectory"
  2. Record the file using the command "ADD 1 FILE "Output.mov" -vcodec dnxhd45 -preset ultrafast -tune fastdecode\r\n"
  3. 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"
  4. Check the file using vlc or any other player or editing software

Environment

rakibhossensweet commented 2 days ago

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.