Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Jul 30, 2025

This PR integrates TSReadEX, a sophisticated MPEG-TS processing tool, to enhance Tardsplaya's stream compatibility and quality. TSReadEX provides professional-grade transport stream filtering, stabilization, and enhancement capabilities that significantly improve media player compatibility.

What TSReadEX Provides

TSReadEX enhances Tardsplaya's streaming in several key ways:

  • Better Media Player Compatibility: Standardizes PID assignments and stream structure for more reliable playback across different players
  • Cleaner Streams: Removes unnecessary program guide data (EIT) and filters redundant packets to reduce bandwidth
  • Enhanced Audio Handling: Ensures consistent audio streams, handles missing audio, and provides format conversion (mono-to-stereo)
  • Stream Stabilization: Processes malformed or unusual stream formats gracefully, improving reliability

Implementation Details

The integration is designed to be optional and non-disruptive:

User Interface

  • Added TSReadEX settings group to Tools → Settings dialog
  • Options to enable/disable processing and configure specific features
  • Settings persist in Tardsplaya.ini configuration file

Technical Integration

  • Created TSReadEXProcessor wrapper class for clean integration
  • Integrated into Transport Stream pipeline as optional post-processing filter
  • Automatic mode switching: TX-Queue IPC (default) vs Transport Stream (with TSReadEX)
  • Fallback to original packets if TSReadEX processing fails

Files Added/Modified

  • tsreadex/ - Complete TSReadEX source code
  • tsreadex_wrapper.h/cpp - Integration wrapper and configuration
  • Enhanced settings dialog with TSReadEX controls
  • Updated transport stream router with optional TSReadEX processing
  • Comprehensive documentation and testing guides

Usage

Users can enable TSReadEX enhancement through:

  1. Tools → Settings
  2. Check "Enable TSReadEX processing" in the TSReadEX Stream Enhancement section
  3. Configure options like removing program guide data and stabilizing audio streams
  4. Streaming automatically switches to Transport Stream mode with enhanced processing

Benefits

This integration provides significant value by:

  • Improving compatibility with media players that are sensitive to stream format variations
  • Creating cleaner, more efficient streams with reduced unnecessary data
  • Handling edge cases in transport stream format that might cause playback issues
  • Offering professional-grade stream processing while maintaining backward compatibility

The implementation maintains full compatibility - disabling TSReadEX returns to the original high-performance TX-Queue streaming mode.

Fixes #129.


💬 Share your feedback on Copilot coding agent for the chance to win a $200 gift card! Click here to start the survey.

Copilot AI changed the title [WIP] Can TSReadEX be used for anything? Add TSReadEX integration for enhanced MPEG-TS stream processing Jul 30, 2025
Copilot AI requested a review from Zero3K July 30, 2025 06:03
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.

Can TSReadEX be used for anything?

2 participants