Skip to content

Conversation

@zach-grant-skydio
Copy link

This commit adds support for recording MPEG-TS streams that contain KLV metadata or other unsupported elementary streams. Previously, the recorder would fail when encountering such streams with the message "no supported tracks found, skipping recording".

Key changes:

  • Implement a passthrough recorder for MPEG-TS that writes raw stream data directly to disk without trying to process unsupported elementary streams
  • Modify the recorder to automatically use passthrough mode when unsupported codecs are detected
  • Update the MPEG-TS reader to properly extract and forward raw MPEG-TS data using Generic units with RTP packets

This allows MediaMTX to gracefully handle MPEG-TS streams with KLV metadata by preserving the original stream structure and writing it directly to disk.

@zach-grant-skydio zach-grant-skydio marked this pull request as draft June 24, 2025 22:32
@zach-grant-skydio
Copy link
Author

Working through the existing tests, and also will add ones for this feature.

I wanted to go ahead and tender the feature idea though and get feedback, please let me know if this is feasible!

@zach-grant-skydio zach-grant-skydio force-pushed the zach/AddRecordingSupportForMPEGTSwKLV branch 2 times, most recently from 1ab1c0a to 3f663ef Compare June 25, 2025 13:04
This commit adds support for recording MPEG-TS streams that contain KLV metadata
or other unsupported elementary streams. Previously, the recorder would fail when
encountering such streams with the message "no supported tracks found, skipping recording".

Key changes:
- Implement a passthrough recorder for MPEG-TS that writes raw stream data directly
  to disk without trying to process unsupported elementary streams
- Modify the recorder to automatically use passthrough mode when unsupported codecs
  are detected
- Update the MPEG-TS reader to properly extract and forward raw MPEG-TS data using
  Generic units with RTP packets

This allows MediaMTX to gracefully handle MPEG-TS streams with KLV metadata
by preserving the original stream structure and writing it directly to disk.
@zach-grant-skydio zach-grant-skydio force-pushed the zach/AddRecordingSupportForMPEGTSwKLV branch from 3f663ef to 1cc527a Compare June 25, 2025 13:08
@zach-grant-skydio
Copy link
Author

Closing in favor of a simpler approach: #4669

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