Skip to content

Instantly share code, notes, and snippets.

@windyinsc
Created March 19, 2017 00:12
Show Gist options
  • Star 13 You must be signed in to star a gist
  • Fork 3 You must be signed in to fork a gist
  • Save windyinsc/71b10a7f6b0f9b603af913ad01474539 to your computer and use it in GitHub Desktop.
Save windyinsc/71b10a7f6b0f9b603af913ad01474539 to your computer and use it in GitHub Desktop.
Fix for VLC: ts error: libdvbpsi error (PSI decoder): TS duplicate

FIX FOR VLC ERROR BELOW

The following changes to VLC were successful in fixing all playback issues.

  • VLC Version 2.2.4 Weatherwax (Intel 64bit) on OS X 10.9

ISSUE:

ts error: libdvbpsi error (PSI decoder): TS duplicate (received 0, expected 1) for PID 0 ts error: libdvbpsi error (PSI decoder): TS duplicate (received 0, expected 1) for PID 4095

THE FIX:

Tools > Preferences > Input/Codecs > Demuxers > MPEG-TS:

  • Disable 'Trust in-stream PCR'
  • Check Seek based on percent not time

After making changes to both options above, all files (both sound and video) now play successfully.

@Gormezoglu
Copy link

This options is not valid for m3u users. Demux is not comply with m3u playlists. At least I have faced that problem. fyi

@scrappyG
Copy link

scrappyG commented Apr 16, 2023

Running the following: VLC Version 3.0.18 (Intel 64bit) on macOS Ventura 13.5.2.
I was streaming a m3u8 file from the internet made of 3 second media clips.

But, oh my god. After literally spending hours combing forums across multiple search terms, I've finally found the fix for me. Now I don't know 100% of the roots of OP's problem, so my fix may or may not be a solution for everyone reading, but OP's fix failed to address the ts error's in the VLC logs for me (in addition to the audio cutting out every 3 seconds), so I was pretty disappointed...until I happened to disable the "Check packets continuity counter" option under

VLC Media Player > Settings > Click the "Show All" button (at bottom) > Input/Codecs > Demuxers > MPEG-TS:

Results: The "libdvbpsi error"'s didn't go away (which btw, are the same 3 PIDs in my case), but the video stuttering and choppy playback DID :)

Hopefully this works for you all too!
Screenshot 2023-09-26 at 1 32 09 AM

@MATPOCKIH
Copy link

Check packets continuity counter

Thank you so much. My HLS via https doesn't stuck now.
I've added --no-ts-cc-check option in LibVLC initialization

@scrappyG
Copy link

Check packets continuity counter

Thank you so much. My HLS via https doesn't stuck now. I've added --no-ts-cc-check option in LibVLC initialization

Alright! :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment