anxdpanic / plugin.video.youtube

Watch your favorite YouTube content on Kodi
https://ytaddon.panicked.xyz/forum
711 stars 113 forks source link

OPUS causing Video frame getting stuck when seeking #537

Open XxAcielxX opened 1 year ago

XxAcielxX commented 1 year ago

Context

Please provide any relevant information about your setup


Expected Behavior

Seeking video back or forward should keep the video & audio in sync. Video should not get stuck on first frame after seeing for few seconds.


Current Behavior

When seeking the video back or forward, video gets stuck on first frame after seeking, while the audio keeps playing. Then after few seconds, video starts to play in sync.


Steps to Reproduce

Please provide detailed steps for reproducing the issue.

  1. Play any video
  2. Seek back or forward, like 10secs

Additional Information

I have found the culprit here, when the video is played using OPUS, this issue occurs. If AAC is selected, it doesn't happen at all.

I have to unselect OPUS in Stream Selection. Though my SBC (NanoPC-T4) is able to play OPUS fine, so this must be a bug.


MoojMidge commented 1 year ago

I have found the culprit here, when the video is played using OPUS, this issue occurs. If AAC is selected, it doesn't happen at all.

I have to unselect OPUS in Stream Selection. Though my SBC (NanoPC-T4) is able to play OPUS fine, so this must be a bug.

The problem is not exclusive to playing Opus audio, but it does seem to be more noticeable.

Unfortunately not a bug with the plugin, but try with a LE12 build and latest available version of InputStream.Adaptive 21, should be a lot better.

XxAcielxX commented 1 year ago

I don't feel like using non-stable LibreELEC build just for testing here, as downgrading will be impossible then.

I'll keep using AAC, and see if any changes are made from upstream regarding this issue on Nexus. I'll keep you updated.

MoojMidge commented 12 months ago

I don't feel like using non-stable LibreELEC build just for testing here, as downgrading will be impossible then.

Fair enough. It is possible to create a backup, upgrade using a clean install for testing, and then re-install an older version with your backup. Or if you have different installation media that can be swapped out, it is even easier. But it can be a bit of a hassle.

Only some of the related changes to AudioEngine were backported to Nexus, so you probably won't see any major improvement until you install LE12.

Having said that, I think I spoke too soon regarding it being "a lot better". It does seem improved, but still noticably worse when playing Opus audio.

MoojMidge commented 11 months ago

Going to disable Opus audio by default in Stream features in the next release as a temporary workaround.

Kellett commented 11 months ago

For anyone else having this problem but struggling to find the settings...

  1. YouTube Addon settings
  2. MPEG-DASH from the side menu
  3. Click "Stream Features"
  4. Untick "Enable Opus Audio" from the popup

After doing this I had no more problems with skipping in videos. All videos I tested worked fine.

onlytanmoy commented 11 months ago

@Kellett working like a charm now, many thanks mate, happy holidays :)

XxAcielxX commented 6 months ago

Retested with Kodi 21 release, and the issue is still present.

MoojMidge commented 4 months ago

Yes, I reverted the change to default settings in the plugin, but the changes in Kodi that I thought would resolve this don't directly address this specific issue.