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

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

Open
PeterAkakpo opened this issue Jan 24, 2023 · 1 comment
Open

Comments

@PeterAkakpo
Copy link

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

@jpc0
Copy link
Contributor

jpc0 commented Mar 18, 2023

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 added a commit to jpc0/server that referenced this issue Mar 19, 2023
jpc0 added a commit to jpc0/server that referenced this issue Mar 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants