{"id":19348832,"url":"https://github.com/adrianbj/fieldtypevideo","last_synced_at":"2025-07-04T21:40:27.322Z","repository":{"id":10784403,"uuid":"13052978","full_name":"adrianbj/FieldtypeVideo","owner":"adrianbj","description":"Processwire field type for storing video files and automatically creating poster images","archived":false,"fork":false,"pushed_at":"2024-06-18T02:48:45.000Z","size":76,"stargazers_count":16,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-02T09:22:11.927Z","etag":null,"topics":["mediaelementjs","poster-images","processwire","processwire-field","video-fields"],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/adrianbj.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"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,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2013-09-24T02:43:11.000Z","updated_at":"2025-03-30T00:09:55.000Z","dependencies_parsed_at":"2024-06-18T04:28:20.722Z","dependency_job_id":"7841ae73-c2a9-4e8c-9fb7-c05342dd7090","html_url":"https://github.com/adrianbj/FieldtypeVideo","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adrianbj%2FFieldtypeVideo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adrianbj%2FFieldtypeVideo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adrianbj%2FFieldtypeVideo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adrianbj%2FFieldtypeVideo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/adrianbj","download_url":"https://codeload.github.com/adrianbj/FieldtypeVideo/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250384657,"owners_count":21421767,"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":["mediaelementjs","poster-images","processwire","processwire-field","video-fields"],"created_at":"2024-11-10T04:23:15.371Z","updated_at":"2025-04-23T06:30:41.954Z","avatar_url":"https://github.com/adrianbj.png","language":"PHP","readme":"# FieldtypeVideo\n\nProcesswire field type for storing video files and automatically creating poster images\n\n### This new video fieldtype extends FieldtypeFile.\n\n* Video is available via: $page-\u003evideo_field-\u003eurl\n* Module automatically creates a poster image of the video on upload and makes this available via: $page-\u003evideo_field-\u003eposter\n* Shows the duration of the video on the title bar, next to the filesize\n* Stores VTT files for subtitles accessed via: $page-\u003evideo_field-\u003esubtitles\n* Formats a transcript from the subtitles, accessed via: $page-\u003evideo_field-\u003etranscript\n\nThe video can be automatically rendered on the frontend with the `play()` method via the `\u003cvideo\u003e` tag. The exact settings used can be set in the module settings like this:\n\n```\n\u003cvideo src='{$page-\u003evideo_field-\u003eeq(1)-\u003eurl}' poster='{$page-\u003evideo_field-\u003eeq(1)-\u003eposter}' width='720' height='408' \u003e\u003ctrack kind='subtitles' src='{$page-\u003evideo_field-\u003eeq(1)-\u003esubtitles}' srclang='en' /\u003e\u003c/video\u003e\n```\n\n### Usage\n\nBasic usage only requires setting up a field with this new video fieldtype. Simply upload a video and if desired enter subtitles in VTT format.\n\n#### Additional settings\n\nYou can additionally set a few different options in the field's Input tab:\n* Number of poster images to generate - if you change from the default of 1, the editing user will be able to select which image they want to use for the poster image\n* Copy poster image to dedicated image field - not necessary but gives you more options of interacting with the poster image(s)\n* Field that you want poster images copied into - only relevant if the option above is checked\n\n### Requirements\n\nThe module requires ffmpeg and ffmpeg-php, although I can make the latter optional fairly easily. I don't have any requirement checking implemented yet, so if you don't have these, you'll get php errors.\n\n\n### Possible future enhancements\n\n* Multi language versions of subtitles\n* Support for uploading multiple formats of the same video (mp4, webm, etc) and/or automated video format conversion\n\n\n### Discussion\n\nhttp://processwire.com/talk/topic/4580-video-fieldtype/\n\n## License\n\nThis program is free software; you can redistribute it and/or\nmodify it under the terms of the GNU General Public License\nas published by the Free Software Foundation; either version 2\nof the License, or (at your option) any later version.\n\nThis program is distributed in the hope that it will be useful,\nbut WITHOUT ANY WARRANTY; without even the implied warranty of\nMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\nGNU General Public License for more details.\n\nYou should have received a copy of the GNU General Public License\nalong with this program; if not, write to the Free Software\nFoundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.\n\n(See included LICENSE file for full license text.)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadrianbj%2Ffieldtypevideo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fadrianbj%2Ffieldtypevideo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadrianbj%2Ffieldtypevideo/lists"}