Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Recap Detection #136

Open
jumoog opened this issue Apr 29, 2024 · 5 comments
Open

Recap Detection #136

jumoog opened this issue Apr 29, 2024 · 5 comments
Labels
enhancement New feature or request feature feature wish

Comments

@jumoog
Copy link
Member

jumoog commented Apr 29, 2024

find a way thats not CPU/GPU heavy

@jumoog
Copy link
Member Author

jumoog commented May 1, 2024

Here are some approaches for recap detection in TV series:

  • Scene Classification with Machine Learning: This method involves training a machine learning model to classify video scenes based on features like fast cuts, flashbacks, and voiceovers, which are common in recaps. Tools like TensorFlow or PyTorch can be used for this purpose.

  • Audio Fingerprinting: Techniques like audio fingerprinting can be used to identify recurring music or sound effects that indicate recaps. This might involve generating fingerprints for the intros and outros of known recap segments and then comparing them to the episodes.

  • Leveraging Subtitles/Closed Captions: If available, subtitles or closed captions can offer clues about recaps. Look for phrases like "Previously on" or "Last time" that often precede recaps.

  • Pre-existing Recap Information: Some TV series might have information about recaps readily available online (e.g., fan forums, episode summaries). You can utilize this to identify recap segments.

@jumoog
Copy link
Member Author

jumoog commented May 5, 2024

Okay the english subtitle has <i>Previously on</i> and ends with a long blackframe

@jumoog
Copy link
Member Author

jumoog commented May 5, 2024

https://github.com/Hellowlol/bw_plex does this

previously on, last season, last episode

Jellyfin extracts subtitles on demand, not during indexing. So we have to extract the subtitles ourselves using ffprobe and ffmpeg.

@jumoog jumoog added enhancement New feature or request feature feature wish labels May 29, 2024
@jumoog jumoog linked a pull request Jul 31, 2024 that will close this issue
@AbandonedCart
Copy link
Member

AbandonedCart commented Aug 3, 2024

Don't forget checking chapters. As far as anime goes, they do label the recap (if they label chapters anyway).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request feature feature wish
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants