jmbannon / ytdl-sub

Lightweight tool to automate downloading and metadata generation with yt-dlp
https://ytdl-sub.readthedocs.io
GNU General Public License v3.0
1.76k stars 70 forks source link

Audio sync when cutting out sponsorblock segments #831

Open rjbutler opened 10 months ago

rjbutler commented 10 months ago

Audio gets out of sync when cutting out sponsorblock segments. I can get it back in sync by skipping forward and then back in the player. It doesn't seem to be player specific though, it happens in Plex, Jellyfin and Infuse.

I'm guessing this is a yt-dlp thing? But do you have any suggestions? Is it something you've seen?

jmbannon commented 10 months ago

Which preset are you using? Maybe it has to do with merging best audio, best video, then slicing based on a different format. You are right that it's moreso a yt-dlp issue though

rjbutler commented 10 months ago

I don’t think I’m doing anything unusual

subtitles are not embedded in the video

I’ll try commenting out best_video_quality

Thanks

jmbannon commented 10 months ago

Plex presets will still merge vid/audio into MP4 which may be a root-cause. You could try enabling the key frames option in chapters (though it's very cpu intensive )

rjbutler commented 10 months ago

Ah, OK. It looks like Jellyfin presets don't? I'll try that.

Serph91P commented 10 months ago

Plex presets will still merge vid/audio into MP4 which may be a root-cause. You could try enabling the key frames option in chapters (though it's very cpu intensive )

Have the same but with the jellyfin preset, using the advanced example subscription and config.

AnyColorIWant commented 3 weeks ago

Any resolution to this, OP? I’m currently having this issue as well.