Hakkin / twitchpipe

Pipe your favorite Twitch streams to the media player of your choice, or a file to save them for later. Supports low-latency playback.
MIT License
35 stars 5 forks source link

Ensure twitchpipe only writes valid TS packets #9

Open Hakkin opened 4 years ago

Hakkin commented 4 years ago

Right now in certain cases twitchpipe can write truncated TS packets, most media players handle this fine, but not all. Reading/Writing in 188 byte chunks should probably be enough to ensure we're writing on TS packet boundaries, this could be further ensured by checking for packet sync bytes.