No video output for some files

I encounter a problem.
For some video files CasparCG says “ok”, for loading + playing, but it does nothing.

In the server console is no output that indicate a problem.

ffprobe output of the file:

Audio seems to be working, but the consumer/render windows does not show anything.
CasparCG Server v2.4.3, OS: Windows 10 x64

I thought that it may be the container/mkv format.
But thats not 100% true.

The problem video above, works when converted to a mp4 via ffmpeg: ffmpeg -i ...GERMAN.AC3D.DL.1080p.BluRay.x264-TVP.mkv -c:v copy -c:a copy output.mp4

Another mkv file is played wihtout any issues, ffprobe:

ffprobe version 6.0-6ubuntu1.1 Copyright (c) 2007-2023 the FFmpeg developers
  built with gcc 13 (Ubuntu 13.2.0-4ubuntu3)
  configuration: --prefix=/usr --extra-version=6ubuntu1.1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl --disable-stripping --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libdav1d --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libglslang --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librabbitmq --enable-librist --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-libsvtav1 --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzimg --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sdl2 --disable-sndio --enable-libjxl --enable-pocketsphinx --enable-librsvg --enable-libvpl --disable-libmfx --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --enable-libplacebo --enable-librav1e --enable-shared
  libavutil      58.  2.100 / 58.  2.100
  libavcodec     60.  3.100 / 60.  3.100
  libavformat    60.  3.100 / 60.  3.100
  libavdevice    60.  1.100 / 60.  1.100
  libavfilter     9.  3.100 /  9.  3.100
  libswscale      7.  1.100 /  7.  1.100
  libswresample   4. 10.100 /  4. 10.100
  libpostproc    57.  1.100 / 57.  1.100
Input #0, matroska,webm, from '...1080p.mkv':
  Metadata:
    encoder         : libebml v1.3.0 + libmatroska v1.4.1
  Duration: 01:56:12.25, start: 0.000000, bitrate: 8860 kb/s
  Chapters:
    Chapter #0:0: start 0.000000, end 718.625000
      Metadata:
        title           : 00:00:00.000
    Chapter #0:1: start 718.625000, end 1307.708000
      Metadata:
        title           : 00:11:58.625
    Chapter #0:2: start 1307.708000, end 1972.208000
      Metadata:
        title           : 00:21:47.708
    Chapter #0:3: start 1972.208000, end 2520.208000
      Metadata:
        title           : 00:32:52.208
    Chapter #0:4: start 2520.208000, end 3100.083000
      Metadata:
        title           : 00:42:00.208
    Chapter #0:5: start 3100.083000, end 3678.083000
      Metadata:
        title           : 00:51:40.083
    Chapter #0:6: start 3678.083000, end 4286.583000
      Metadata:
        title           : 01:01:18.083
    Chapter #0:7: start 4286.583000, end 4831.750000
      Metadata:
        title           : 01:11:26.583
    Chapter #0:8: start 4831.750000, end 5355.292000
      Metadata:
        title           : 01:20:31.750
    Chapter #0:9: start 5355.292000, end 5944.333000
      Metadata:
        title           : 01:29:15.292
    Chapter #0:10: start 5944.333000, end 6610.667000
      Metadata:
        title           : 01:39:04.333
    Chapter #0:11: start 6610.667000, end 6972.250000
      Metadata:
        title           : 01:50:10.667
  Stream #0:0(eng): Video: h264 (High), yuv420p(progressive), 1920x808 [SAR 1:1 DAR 240:101], 24 fps, 24 tbr, 1k tbn (default)
  Stream #0:1(ger): Audio: dts (DTS), 48000 Hz, 5.1(side), fltp, 1536 kb/s (default)

I would encourage you to figure out how to make a short sample video that exhibits the problem and open an issue on the github repository. Issues like this need to be catalogued there so that developers can have an opportunity to fix it.

1 Like

Your example file is 24 fps, what is your channel’s video-mode configured to run at?

If you have another problematic file you can losslessly clip (mkvtoolnix or losslesscut) which you’re able to share, it would be useful.

Channel is set to 720p5000
@Chris The working file is set to 24fps, the not working one is 23.98.

Frame rate conversion within casparCG does exist to some degree, but I don’t think it is officially supported, especially for that big of a frame rate change. I have had issues with 23.98 and 24fps playing with audio artifacting with a 1080i5994 channel. If you want to see this fixed, make a bug report on GitHub and put a bounty on it to compensate for the developers time. Without a bounty I am not sure there is much motivation to change from the current policy that encourages you to either test files ahead of time or standardize to at least match the frame rate of the channel.