<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-0.10 (including, base, good and ffmpeg plugins)
 * gst-plugins-dvswitch -- https://github.com/timvideos/gst-plugins-dvswitch

### Installing on Debian and Ubuntu

#### Dependencies
The following packages are needed;

 * gstreamer0.10-tools
 * gstreamer0.10-plugins-good
 * gstreamer0.10-plugins-base
 * gstreamer0.10-ffmpeg
 * libgstreamer0.10-0
 * gstreamer0.10-dvswitch
   * Download from https://github.com/timvideos/gst-plugins-dvswitch

##### Installing the dependencies
```
sudo apt-get install \
  gstreamer0.10-tools \
  gstreamer0.10-plugins-good \
  gstreamer0.10-plugins-base \
  gstreamer0.10-ffmpeg \
  libgstreamer0.10-0
```

##### Installing the gstreamer dvswitch plugin

If your distro has gstreamer0.10-dvswitch
```
sudo apt-get install \
  gstreamer0.10-dvswitch
```

Else, build the gstreamer0.10-dvswitch package yourself
```
git clone git://github.com/timvideos/gst-plugins-dvswitch.git
cd gst-plugins-dvswitch
dpkg-checkbuilddeps
# Install any missing build dependencies
dpkg-buildpackage -b
dpkg --install ../gstreamer0.10-dvswitch*.deb
```

# Usage

```
usage: dvsource-v4l2-other [-d DEVICE] [-c CAPS] [-f {ntsc,pal}]
                           [-a {4:3,16:9}] [-t TIMEOUT]
                           [-n {...}]
                           [-v] [-x] [-h HOST] [-p PORT] [--help]

optional arguments:
  -d DEVICE, --device DEVICE
                        Video4Linux device to read the input from.
  -c CAPS, --caps CAPS  gstreamer caps to force v4l2src device to use.
  -f {ntsc,pal}, --format {ntsc,pal}
                        Choose DV output format.
  -a {4:3,16:9}, --aspect {4:3,16:9}
                        Choose DV output aspect ratio.
  -t TIMEOUT, --timeout TIMEOUT
                        How long to wait when terminating subprocess before
                        killing.
  -n {blue,checkers-1,checkers-2,bar,checkers-4,chroma-zone-plate,checkers-8,ball,snow,solid-color,blink,smpte,gamut,black,green,zone-plate,white,red,circular}, --fake {blue,checkers-1,checkers-2,bar,checkers-4,chroma-zone-plate,checkers-8,ball,snow,solid-color,blink,smpte,gamut,black,green,zone-plate,white,red,circular}
                        Use a fake source rather then a real V4L2 device.
  -v, --verbose         Increase output verbosity
  -x, --display         Display the incoming video locally.
  -h HOST, --host HOST  Specify the network address on which DVswitch is
                        listening. The host address may be specified by name
                        or as an IPv4 or IPv6 literal.
  -p PORT, --port PORT  Specify the network address on which DVswitch is
                        listening. The host address may be specified by name
                        or as an IPv4 or IPv6 literal.
  --help                show this help message and exit
```<commit_msg>Update the --help section of the README.md<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
```

## Dependencies

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

### Installing on Debian and Ubuntu

#### Dependencies
The following packages are needed;

 * gstreamer0.10-tools
 * gstreamer0.10-plugins-good
 * gstreamer0.10-plugins-base
 * gstreamer0.10-ffmpeg
 * libgstreamer0.10-0
 * gstreamer0.10-dvswitch
   * Download from https://github.com/timvideos/gst-plugins-dvswitch

##### Installing the dependencies
```
sudo apt-get install \
  gstreamer0.10-tools \
  gstreamer0.10-plugins-good \
  gstreamer0.10-plugins-base \
  gstreamer0.10-ffmpeg \
  libgstreamer0.10-0
```

##### Installing the gstreamer dvswitch plugin

If your distro has gstreamer0.10-dvswitch
```
sudo apt-get install \
  gstreamer0.10-dvswitch
```

Else, build the gstreamer0.10-dvswitch package yourself
```
git clone git://github.com/timvideos/gst-plugins-dvswitch.git
cd gst-plugins-dvswitch
dpkg-checkbuilddeps
# Install any missing build dependencies
dpkg-buildpackage -b
dpkg --install ../gstreamer0.10-dvswitch*.deb
```

# Usage

```
usage: dvsource-v4l2-other [-d DEVICE] [-c CAPS] [-s {ntsc,pal}]
                           [-a {4:3,16:9}] [-t TIMEOUT]
                           [-r {48000,44100,32000}]
                           [-n TYPE]
                           [-v] [-x] [-h HOST] [-p PORT] [--help]

optional arguments:
  -d DEVICE, --device DEVICE
                        Video4Linux device to read the input from.
  -c CAPS, --caps CAPS  gstreamer caps to force v4l2src device to use.
  -s {ntsc,pal}, --system {ntsc,pal}
                        Specify the video system to use.This must match the
                        system used by DVswitch.
  -a {4:3,16:9}, --aspect {4:3,16:9}
                        Choose DV output aspect ratio.
  -t TIMEOUT, --timeout TIMEOUT
                        How long to wait when terminating subprocess before
                        killing.
  -r {48000,44100,32000}, --rate {48000,44100,32000}
                        Specify the sample rate, in Hz. **Only 48000kHz is
                        supported.**
  -n TYPE, --fake TYPE
                        Use a fake source rather then a real V4L2 device.
  -v, --verbose         Increase output verbosity
  -x, --display         Display the incoming video locally.
  -h HOST, --host HOST  Specify the network address on which DVswitch is
                        listening. The host address may be specified by name
                        or as an IPv4 or IPv6 literal.
  -p PORT, --port PORT  Specify the network address on which DVswitch is
                        listening. The host address may be specified by name
                        or as an IPv4 or IPv6 literal.
  --help                show this help message and exit
```
{'fraction_non_alphanumeric': 0.11125548156569758, 'fraction_numerical': 0.038980022738346595, 'mean_word_length': 2.237644584647739, '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': '2780186', 'n_tokens_mistral': 2118, 'n_tokens_neox': 1916, 'n_words': 558}