{"id":23802561,"url":"https://github.com/agx/livi","last_synced_at":"2025-09-06T15:33:11.390Z","repository":{"id":150122312,"uuid":"383839823","full_name":"agx/livi","owner":"agx","description":"Minimalistic video player for mobile devices using GTK4, libadwaita and gstreamer","archived":false,"fork":false,"pushed_at":"2024-12-11T21:47:28.000Z","size":1543,"stargazers_count":6,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"main","last_synced_at":"2024-12-24T02:53:13.055Z","etag":null,"topics":["gstreamer","gtk4","hantro","librem5","video-player"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/agx.png","metadata":{"files":{"readme":"README.md","changelog":"NEWS","contributing":null,"funding":null,"license":"COPYING","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-07-07T15:11:56.000Z","updated_at":"2024-12-11T21:47:33.000Z","dependencies_parsed_at":"2024-06-24T11:29:37.918Z","dependency_job_id":"3eb84247-d91f-42fd-8515-edec73f79f29","html_url":"https://github.com/agx/livi","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agx%2Flivi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agx%2Flivi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agx%2Flivi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agx%2Flivi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/agx","download_url":"https://codeload.github.com/agx/livi/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":232131803,"owners_count":18477028,"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":["gstreamer","gtk4","hantro","librem5","video-player"],"created_at":"2025-01-01T22:27:03.172Z","updated_at":"2025-09-06T15:33:11.378Z","avatar_url":"https://github.com/agx.png","language":"C","funding_links":[],"categories":["Video"],"sub_categories":["Video Players"],"readme":"# Light Video\n\nMinimalist video player using GTK4, libadwaita and GStreamer. The main\npurpose is to make playing hardware accelerated videos with e.g. hantro and\nOpenGL simple.\n\nIt supports:\n\n- Inhibiting suspend/idle when playing video\n- Stopping video playback on (i.e. power button toggled) blank\n- Registering as default video player in GNOME control center\n- A [MPRIS interface][] to control the playback\n- Resuming position on previously played videos\n- Playing videos from popular online sites using [yt-dlp][] as \"preprocessor\".\n\n![Playing video in landscape fullscreen mode](screenshots/landscape-fullscreen.png)\n\n## Building\n\nFlatpak build:\n\n```sh\n# Intial setup\nflatpak install --user org.gnome.Sdk//master\nflatpak install --user org.gnome.Platform//master\n# Build\nflatpak-builder --force-clean  --install --user _build/ org.sigxcpu.Livi.json\n```\n\nRegular build:\n\n```sh\n# Intial setup\napt build-dep .\n# Build\nmeson setup . _build\nmeson compile -C _build\n```\n\n## Using\n\nTo play a video using the preprocessor use `-Y`:\n\n```sh\nlivi -Y \u003curl\u003e\n```\n\nFor this to work `yt-dlp` needs to be able to fetch a combined audio and\nvideo stream. If this is possible for a given URL with the current `yt-dlp`\nconfiguration can be checked with:\n\n```sh\nyt-dlp --list-formats \u003curl\u003e\n```\n\nAt least one of the listed format there needs to contain a video *and*\naudio stream as you'd otherwise get video playback without audio when\nplaying the URL in livi.\n\nYou can wiggle `yt-dlp` option to see if you can find a combined\nformat. Common options there are `--format-sort` and\n`--extractor-args`. Once you've found suitable options you can put\nthem into `~/.config/yt-dlp.conf. E.g.\n\n```sh\ncat \u003c\u003cEOF \u003e ~/.config/yt-dlp.conf\n--format-sort=codec:h264,codec:vp8\n--extractor-args=youtube:player-client=android\nEOF\n```\n\n[MPRIS interface]: https://specifications.freedesktop.org/mpris-spec/\n[yt-dlp]: https://github.com/yt-dlp/yt-dlp\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fagx%2Flivi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fagx%2Flivi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fagx%2Flivi/lists"}