PHPackages                             balrok/web\_video - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Image &amp; Media](/categories/media)
4. /
5. balrok/web\_video

ActiveLibrary[Image &amp; Media](/categories/media)

balrok/web\_video
=================

Gallery Converter in Python with PHP-viewer

0163Python

Since Aug 10Pushed 4y ago1 watchersCompare

[ Source](https://github.com/balrok/web_video)[ Packagist](https://packagist.org/packages/balrok/web_video)[ RSS](/packages/balrok-web-video/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (2)Used By (0)

web\_video
==========

[](#web_video)

Tool to encode videos inside a folder for the web, and small example how to display it

Installation
------------

[](#installation)

Software:

```
python2.7 # for bento4
python3.5 # for this script
bento4    # for converting the videos
ffmpeg    # bento4 depends on ffmpeg
	- libfdk_aac # ffmpeg must be compiled with this
		# (brew install ffmpeg --with-fdk-aac --with-libvpx --with-libvorbis)
	- x264
imagemagick # for converting the images

```

You need python 2.7 and python 3.5 `pip3.5 install --user -r requirements.txt`

When installing (bento4)\[\] add it to your PATH like this:

```
	export PATH="${PATH}:/xyz/Bento4-SDK-1-5-0-613.x86_64-unknown-linux/bin"
	export PATH="${PATH}:/xyz/Bento4-SDK-1-5-0-613.x86_64-unknown-linux/utils"

```

Usage
-----

[](#usage)

call `run.py folder http://callback-url`The folder should contain folders with video files inside

E.g.

```
folder/my_album1/vid.mp4
folder/my_album1/test.jpg
folder/another/abc.mp4

```

After running it looks like this:

```
folder/my_album1/vid/
                     master.m3u8
                     stream.mpd
                     video_00500.mp4
                     video_01250.mp4
                     video_02000.mp4
                     ...
folder/my_album1/test/
                      2048.jpg
                      1024.jpg
                      512.jpg
                      256.jpg
folder/another/abc/
                   master.m3u8
                   stream.mpd
                   video_00500.mp4
                   video_01250.mp4
                   video_02000.mp4
                   ...

```

It will call the `callback-url 2 times` (once per album).

Example
-------

[](#example)

Look into `web` there is a folder `galleries` which can be converted by: `./web_video/run.py web/galleries`. Then you can `cd web; php -S localhost:8000` and browse to .

Composer
========

[](#composer)

Maybe you want to use the classes Gallery and Element in your project - so you can composer require them.

```
composer require balrok/web_video dev-master

```

And use it with

```
use balrok\web_video\web\Gallery;
use balrok\web_video\web\Element;

```

###  Health Score

22

—

LowBetter than 21% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity43

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/29128?v=4)[Carl Mai](/maintainers/balrok)[@balrok](https://github.com/balrok)

---

Top Contributors

[![balrok](https://avatars.githubusercontent.com/u/29128?v=4)](https://github.com/balrok "balrok (33 commits)")

---

Tags

composer-packageencodinggalleryvideo

### Embed Badge

![Health badge](/badges/balrok-web-video/health.svg)

```
[![Health](https://phpackages.com/badges/balrok-web-video/health.svg)](https://phpackages.com/packages/balrok-web-video)
```

###  Alternatives

[goat1000/svggraph

Generates SVG graphs

133890.0k3](/packages/goat1000-svggraph)[imagekit/imagekit

PHP library for Imagekit

46877.3k10](/packages/imagekit-imagekit)[gravatarphp/gravatar

Gravatar URL builder which is most commonly called as a Gravatar library

12644.1k2](/packages/gravatarphp-gravatar)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
