server icon indicating copy to clipboard operation
server copied to clipboard

CASPARCG CRASHES WHEN PLAYING SOME FILE THAT FFPLAY IS ABLE TO PLAY

Open PeterAkakpo opened this issue 2 years ago • 1 comments

Expected behaviour

Casparcg should be able to play all file that FFplay is capable of playing

Current behaviour

Casparcg crashes while playing some files.


Steps to reproduce

  1. play the attached file PLAY 1-0 KEYS-008
  2. ...

Environment

  • Commit: LATEST
  • Server version: 2.3.3
  • Operating system: WINDOWS 11

Screenshots

If applicable, add screenshots as complementary information. KEYS-008.zip

PeterAkakpo avatar Jan 24 '23 20:01 PeterAkakpo

There is an error thrown in FFPLAY as well, it then get's stuck in an infinite loop.

[mov,mp4,m4a,3gp,3g2,mj2 @ 000001c31ffac4c0] Packet corrupt (stream = 0, dts = 299000).
[NULL @ 000001c31ffbde00] Invalid NAL unit size (397226 > 43604).
[NULL @ 000001c31ffbde00] missing picture in access unit with size 43652

I get the same error in CasparCG

[2023-03-18 17:38:08.232] [error]   [ffmpeg] [h264 @ 000001E3FF410200] Invalid NAL unit size (397226 > 43604).
[2023-03-18 17:38:08.232] [error]
[2023-03-18 17:38:08.232] [error]   [ffmpeg] [h264 @ 000001E3FF410200] Error splitting the input into NAL units.

Which then causes the thread to throw, casparCG however does not crash.

The error thrown by ffmpeg av_read_frame in av_input.cpp is AVERROR_INVALIDDATA.

Not sure this is a bug since the input file is corrupted.

jpc0 avatar Mar 18 '23 16:03 jpc0