<commit_before># Flowplayer thumbnails plugin

This plugin displays preview thumbnail images on the timeline.

## Usage

Live demo at http://demos.flowplayer.org/api/thumbnails.html

### Create thumbnails from video

Simple [ffmpeg](http://www.ffmpeg.org/) command example:

```
$ ffmpeg -i bauhaus.mp4 -r 1 -filter:v scale=-1:160 bauhaus%d.jpg
```

The value for `-r` should be the one which is used for the `interval` [option](#options).

To cater for devices with retina display scale height should be 2 times the value of the desired
`height` [option](#options).

Especially for longer videos it is recommended to save as much on image file size as possible to
save on loading time.

Example command to batch create and optimize thumbnail images:

```
$ ffmpeg -i bauhaus.mp4 -r 1 -filter:v scale=-1:160 -q:v 5 %d-X.jpg
$ for j in *-X.jpg; do jpegtran -copy none -optimize -outfile ${j%-X.jpg}.jpg; done
$ rm *-X.jpg
```

### Configuration

#### include assets

```html
<script src="//releases.flowplayer.org/6.0.4/flowplayer.min.js"></script>
<script src="//releases.flowplayer.org/thumbnails/flowplayer.thumbnails.min.js"></script>
```
<commit_msg>Correct advice for ffmpeg -r option<commit_after># Flowplayer thumbnails plugin

This plugin displays preview thumbnail images on the timeline.

## Usage

Live demo at http://demos.flowplayer.org/api/thumbnails.html

### Create thumbnails from video

Simple [ffmpeg](http://www.ffmpeg.org/) command example:

```
$ ffmpeg -i bauhaus.mp4 -r 1/1 -filter:v scale=-1:160 bauhaus%d.jpg
```

The divisor given in `-r` should be the one which is used for the `interval` [option](#options).

To cater for devices with retina display scale height should be 2 times the value of the desired
`height` [option](#options).

Especially for longer videos it is recommended to save as much on image file size as possible to
save on loading time.

Example command to batch create and optimize thumbnail images:

```
$ ffmpeg -i bauhaus.mp4 -r 1/1 -filter:v scale=-1:160 -q:v 5 %d-X.jpg
$ for j in *-X.jpg; do jpegtran -copy none -optimize -outfile ${j%-X.jpg}.jpg $j; done
$ rm *-X.jpg
```

### Configuration

#### include assets

```html
<script src="//releases.flowplayer.org/6.0.4/flowplayer.min.js"></script>
<script src="//releases.flowplayer.org/thumbnails/flowplayer.thumbnails.min.js"></script>
```

{'fraction_non_alphanumeric': 0.13395904436860068, 'fraction_numerical': 0.015358361774744027, 'mean_word_length': 4.176600441501104, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2512030', 'n_tokens_mistral': 816, 'n_tokens_neox': 763, 'n_words': 271}