Skip to content

Conversation

eliteprox
Copy link
Collaborator

@eliteprox eliteprox commented Aug 20, 2025

This pull request introduces a new audio effects processing example and enhances the pytrickle client to provide robust fallback behavior for audio and video frame processing. It also updates dependencies and improves the handling of audio processing failures to ensure that frames are never skipped.

Key changes:

New Example and Dependencies

  • Added a new example process_audio_example.py showcasing real-time audio effects (volume, echo, low-pass filter) with PyTrickle, including parameter updates and logging.
  • Updated requirements.txt to include scipy for audio processing in examples.

Client Fallback and Robustness Improvements

  • Enhanced pytrickle/client.py to cache the last successfully processed audio and video frames, and to provide smart fallback frames when processing fails or returns None. This ensures continuity in streaming applications. [1] [2]
  • In the audio ingress loop, now always sends an audio frame (original frame as fallback) even if processing fails, preventing dropped frames.

Code Quality and Typing

  • Improved typing in pytrickle/client.py by importing and using List for audio frame lists.

Cleanup

  • Removed unused comments and code sections from pytrickle/frames.py for clarity.

@eliteprox eliteprox force-pushed the feat/audio-processing-with-examples branch from b28a373 to ff3a31a Compare August 20, 2025 00:25
@eliteprox eliteprox force-pushed the feat/audio-processing-with-examples branch from ff3a31a to 8fa6797 Compare August 20, 2025 00:53
@eliteprox eliteprox marked this pull request as draft August 21, 2025 05:04
@eliteprox eliteprox force-pushed the feat/audio-processing-with-examples branch from 8fa6797 to 8cbbbf9 Compare August 26, 2025 01:45
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