{"id":22737055,"url":"https://github.com/kibotu/fastexoplayerseeker","last_synced_at":"2025-04-14T04:33:11.748Z","repository":{"id":152024113,"uuid":"187189157","full_name":"kibotu/FastExoPlayerSeeker","owner":"kibotu","description":"Fast Seek for ExoPlayer","archived":false,"fork":false,"pushed_at":"2019-10-04T07:56:48.000Z","size":60679,"stargazers_count":45,"open_issues_count":0,"forks_count":7,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-27T18:21:38.993Z","etag":null,"topics":["android","exoplayer","hacktoberfest","scroll","seek"],"latest_commit_sha":null,"homepage":"","language":"Kotlin","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kibotu.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null},"funding":{"custom":"https://paypal.me/janrabe/5"}},"created_at":"2019-05-17T09:36:51.000Z","updated_at":"2024-12-26T07:18:43.000Z","dependencies_parsed_at":null,"dependency_job_id":"a565774a-166c-4293-b83f-37ee5389e77d","html_url":"https://github.com/kibotu/FastExoPlayerSeeker","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kibotu%2FFastExoPlayerSeeker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kibotu%2FFastExoPlayerSeeker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kibotu%2FFastExoPlayerSeeker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kibotu%2FFastExoPlayerSeeker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kibotu","download_url":"https://codeload.github.com/kibotu/FastExoPlayerSeeker/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248822084,"owners_count":21166997,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["android","exoplayer","hacktoberfest","scroll","seek"],"created_at":"2024-12-10T22:09:23.519Z","updated_at":"2025-04-14T04:33:06.738Z","avatar_url":"https://github.com/kibotu.png","language":"Kotlin","funding_links":["https://paypal.me/janrabe/5","https://www.paypal.me/janrabe/5"],"categories":[],"sub_categories":[],"readme":"[![Donation](https://img.shields.io/badge/buy%20me%20a%20beer-brightgreen.svg)](https://www.paypal.me/janrabe/5) [![About Jan Rabe](https://img.shields.io/badge/about-me-green.svg)](https://about.me/janrabe)\n# FastExoPlayerSeeker [![](https://jitpack.io/v/kibotu/FastExoPlayerSeeker.svg)](https://jitpack.io/#kibotu/FastExoPlayerSeeker) [![](https://jitpack.io/v/kibotu/FastExoPlayerSeeker/month.svg)](https://jitpack.io/#kibotu/FastExoPlayerSeeker) [![Javadoc](https://img.shields.io/badge/javadoc-SNAPSHOT-green.svg)](https://jitpack.io/com/github/kibotu/FastExoPlayerSeeker/master-SNAPSHOT/javadoc/index.html) [![Build Status](https://travis-ci.org/kibotu/FastExoPlayerSeeker.svg?branch=master)](https://travis-ci.org/kibotu/FastExoPlayerSeeker) [![API](https://img.shields.io/badge/API-16%2B-brightgreen.svg?style=flat)](https://android-arsenal.com/api?level=15)  [![Gradle Version](https://img.shields.io/badge/gradle-5.4.1-green.svg)](https://docs.gradle.org/current/release-notes) [![kotlin](https://img.shields.io/badge/kotlin-1.3.31-green.svg)](https://kotlinlang.org/) [![Licence](https://img.shields.io/badge/licence-Apache%202-blue.svg)](https://raw.githubusercontent.com/kibotu/FastExoPlayerSeeker/master/LICENSE) [![androidx](https://img.shields.io/badge/androidx-brightgreen.svg)](https://developer.android.com/topic/libraries/support-library/refactor)\n\n## Introduction\n\nAdds fast seeking for exoplayer. (Note: it also depends on the amount of video encoding, mainly IDR Frames)\n\n![demo](demo.gif)\n\n## How to install\n\n```groovy\nrepositories {\n    maven {\n        url \"https://jitpack.io\"\n    }\n}\n\ndependencies {\n    implementation 'com.github.kibotu:FastExoPlayerSeeker:-SNAPSHOT'\n}\n```\n\n## How to use\n\n### Create Emitter\n\n```kotlin\nval emitter = SeekPositionEmitter()\nemitter.seekFast(newSeekPosition)\n```\n\n### Create Observable\n\n```kotlin\nsimpleExoPlayer.seekWhenReady(emitter)\n    .subscribe({\n        logv(\"seekTo=${it.first} isSeeking=${it.second}\")\n    }, { loge(\"${it.message}\") })\n    .addTo(subscriptions) // don't forget to dispose when you're done!\n```\n\n### FFMpeg\n\nI've had good results increasing the amount if IDR frames using the following script which in term will help exoplayer snap to those sync frames and improve scrubbing.\n\n```bash\n#!/usr/bin/env bash\n# change iframe rate\n# https://gist.github.com/kibotu/27c5d665d19b9f782e6b4f26eff878b1\n#\n# https://ffmpeg.org/ffmpeg-formats.html#mov_002c-mp4_002c-ismv\n# -movflags faststart\n#  Run a second pass moving the index (moov atom) to the beginning of the file. This operation can take a while, and will not work in various situations such as fragmented output, thus it is not enabled by default.\n#\n# -movflags rtphint\n#  Add RTP hinting tracks to the output file.\n#\n# -c:v libx264\n# -c codec codec name\n#\n# -profile profile set profile\n# Another optional setting is -profile:v which will limit the output to a specific H.264 profile.\n# Omit this unless your target device only supports a certain profile (see Compatibility).\n# Current profiles include: baseline, main, high, high10, high422, high444. Note that usage of -profile:v is incompatible with lossless encoding.\n# https://trac.ffmpeg.org/wiki/Encode/H.264\n# https://trac.ffmpeg.org/wiki/Encode/H.264#Compatibility\n#\n#  -keyint_min E..V…. minimum interval between IDR-frames (from INT_MIN to INT_MAX) (default 25)\nffmpeg -i inputvide.mp4 -c:v libx264 -profile:v baseline -level 3.0 -x264opts keyint=10:min-keyint=10 -g 10 -movflags +faststart+rtphint -maxrate:v 4000k -bufsize:v 4500k outputvideo.mp4\n```\n\n## How to build\n\n    graldew clean build\n\n### CI\n\n    gradlew clean assembleRelease test javadoc\n\n#### Build Requirements\n\n- JDK8\n- Android Build Tools 29.0.2\n- Android SDK 29\n\n### Notes\n\nFollow me on Twitter: [@wolkenschauer](https://twitter.com/wolkenschauer)\n\nLet me know what you think: [jan.rabe@kibotu.net](mailto:jan.rabe@kibotu.net)\n\nContributions welcome!\n\n### License\n\n\u003cpre\u003e\nCopyright 2019 Jan Rabe\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n   http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n\u003c/pre\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkibotu%2Ffastexoplayerseeker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkibotu%2Ffastexoplayerseeker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkibotu%2Ffastexoplayerseeker/lists"}