<commit_before># dvsource-v4l2-other

A source for DVswitch which supports any Video4Linux 2 device.

## Quick Start

```
dvswitch --host=localhost --port=2000 &
./dvsource-v4l2-other --device=/dev/video0 --host=localhost --port=2000
```

## Dependencies

 * gstreamer-1.2.4 (including, base, good and libav plugins)
 * gst-plugins-dvswitch -- https://github.com/timvideos/gst-plugins-dvswitch

### Installing on Debian and Ubuntu

#### Dependencies
The following packages are needed;

 * gstreamer1.0-tools
 * gstreamer1.0-plugins-good
 * gstreamer1.0-plugins-base
 * gstreamer1.0-libav
 * libgstreamer1.0-0
 * gstreamer1.0-dvswitch
   * Download from https://github.com/timvideos/gst-plugins-dvswitch

##### Installing the dependencies
```
sudo apt-get install \
  gstreamer1.0-tools \
  gstreamer1.0-plugins-good \
  gstreamer1.0-plugins-base \
  gstreamer1.0-libav \
  libgstreamer1.0-0<commit_msg>Adding information about mjpeg based v4l2 devices<commit_after># dvsource-v4l2-other

A source for DVswitch which supports any Video4Linux 2 device.

## Quick Start

```
dvswitch --host=localhost --port=2000 &
./dvsource-v4l2-other --device=/dev/video0 --host=localhost --port=2000
```

#### Quick Start with MJPEG Devices (such as HDMI2USB.tv)

Due to limited USB2.0 bandwidth, many Video4Linux devices support both a low frame rate "raw mode" and a high frame rate "mjpeg mode". By default dvsource-v4l2-other will pick the raw mode, to force it to use the mjpeg mode you need to use the `--caps` command line as follows;

```
dvswitch --host=localhost --port=2000 &
./dvsource-v4l2-other --device=/dev/video0 --host=localhost --port=2000 --caps="image/jpeg,width=1280,height=720"
```

## Dependencies

 * gstreamer-1.2.4 (including, base, good and libav plugins)
 * gst-plugins-dvswitch -- https://github.com/timvideos/gst-plugins-dvswitch

### Installing on Debian and Ubuntu

#### Dependencies
The following packages are needed;

 * gstreamer1.0-tools
 * gstreamer1.0-plugins-good
 * gstreamer1.0-plugins-base
 * gstreamer1.0-libav
 * libgstreamer1.0-0
 * gstreamer1.0-dvswitch
   * Download from https://github.com/timvideos/gst-plugins-dvswitch

##### Installing the dependencies
```
sudo apt-get install \
  gstreamer1.0-tools \
  gstreamer1.0-plugins-good \
  gstreamer1.0-plugins-base \
  gstreamer1.0-libav \
  libgstreamer1.0-0
{'fraction_non_alphanumeric': 0.13071337035454933, 'fraction_numerical': 0.04698846646732166, 'mean_word_length': 3.8893528183716075, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5463858', 'n_tokens_mistral': 882, 'n_tokens_neox': 809, 'n_words': 194}