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

cmaf-ingest: fix generated segment is not sent at once #248

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

nvkhoi112358
Copy link
Contributor

If segment is generated, e.g. timesubsstpp,
its each box is sent one by one

{..., "level":"WARN","msg":"Content-Length mismatch","ingester":4,"length":24,"contentLength":1797}
{..., "level":"WARN","msg":"Content-Length mismatch","ingester":4,"length":8,"contentLength":1797}
{..., "level":"WARN","msg":"Content-Length mismatch","ingester":4,"length":16,"contentLength":1797}
{..., "level":"WARN","msg":"Content-Length mismatch","ingester":4,"length":8,"contentLength":1797}
{..., "level":"WARN","msg":"Content-Length mismatch","ingester":4,"length":16,"contentLength":1797}
{..., "level":"WARN","msg":"Content-Length mismatch","ingester":4,"length":20,"contentLength":1797}
{..., "level":"WARN","msg":"Content-Length mismatch","ingester":4,"length":36,"contentLength":1797}
{..., "level":"WARN","msg":"Content-Length mismatch","ingester":4,"length":8,"contentLength":1797}
{..., "level":"WARN","msg":"Content-Length mismatch","ingester":4,"length":1661,"contentLength":1797},

However, only the last is actually sent to receiver and that incomplete segment cause trouble.

{"level":"error","chName":"testpic_2s","trName":"timestpp-se",
 "error":"failed to decode chunk 0: decode box \"l ve\", size 1010792557 too big (max 1661)",
 "time":"2025-03-14T04:30:11Z","message":"Failed to parse MP4 chunk"}

If segment is generated, e.g. `timesubsstpp`,
its each box is sent one by one

```
{..., "level":"WARN","msg":"Content-Length mismatch","ingester":4,"length":24,"contentLength":1797}
{..., "level":"WARN","msg":"Content-Length mismatch","ingester":4,"length":8,"contentLength":1797}
{..., "level":"WARN","msg":"Content-Length mismatch","ingester":4,"length":16,"contentLength":1797}
{..., "level":"WARN","msg":"Content-Length mismatch","ingester":4,"length":8,"contentLength":1797}
{..., "level":"WARN","msg":"Content-Length mismatch","ingester":4,"length":16,"contentLength":1797}
{..., "level":"WARN","msg":"Content-Length mismatch","ingester":4,"length":20,"contentLength":1797}
{..., "level":"WARN","msg":"Content-Length mismatch","ingester":4,"length":36,"contentLength":1797}
{..., "level":"WARN","msg":"Content-Length mismatch","ingester":4,"length":8,"contentLength":1797}
{..., "level":"WARN","msg":"Content-Length mismatch","ingester":4,"length":1661,"contentLength":1797},
```

However, only the last is actually sent to receiver and that incomplete segment cause trouble.

```
{"level":"error","chName":"testpic_2s","trName":"timestpp-se",
 "error":"failed to decode chunk 0: decode box \"l ve\", size 1010792557 too big (max 1661)",
 "time":"2025-03-14T04:30:11Z","message":"Failed to parse MP4 chunk"}
```
@nvkhoi112358 nvkhoi112358 force-pushed the send_gen_sub_at_once branch from 8c9def9 to f74027a Compare March 17, 2025 01:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant