Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: [ Casparcg File Recording Issue ] #1585

Open
rakibhossensweet opened this issue Nov 5, 2024 · 3 comments
Open

Bug: [ Casparcg File Recording Issue ] #1585

rakibhossensweet opened this issue Nov 5, 2024 · 3 comments
Labels

Comments

@rakibhossensweet
Copy link

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

  • 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)]
@rakibhossensweet rakibhossensweet changed the title Bug: [Short description of the bug] Bug: [ Casparcg File Recording Issue ] Nov 5, 2024
@rakibhossensweet
Copy link
Author

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.

@TKooijmans
Copy link

Did you noticed that you have vertical resolution drop with MXF?
TESTBEELD1080
If you play this file in CasparCG and record it, you get a softer result with MXF interlaced format

@JorgeCruz19
Copy link

JorgeCruz19 commented Dec 6, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants