Skip to content

Push to production #2591

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 24 commits into from
Jul 19, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -28,19 +28,27 @@ The `--list-cameras` will display the available cameras attached to the board th
----
Available cameras
-----------------
0 : imx219 [3280x2464] (/base/soc/i2c0mux/i2c@1/pca@70/i2c@0/imx219@10)
Modes: 'SRGGB10_CSI2P' : 640x480 1640x1232 1920x1080 3280x2464
'SRGGB8' : 640x480 1640x1232 1920x1080 3280x2464
1 : imx477 [4056x3040] (/base/soc/i2c0mux/i2c@1/pca@70/i2c@1/imx477@1a)
Modes: 'SRGGB10_CSI2P' : 1332x990
'SRGGB12_CSI2P' : 2028x1080 2028x1520 4056x3040
0 : imx219 [3280x2464] (/base/soc/i2c0mux/i2c@1/imx219@10)
Modes: 'SRGGB10_CSI2P' : 640x480 [206.65 fps - (1000, 752)/1280x960 crop]
1640x1232 [41.85 fps - (0, 0)/3280x2464 crop]
1920x1080 [47.57 fps - (680, 692)/1920x1080 crop]
3280x2464 [21.19 fps - (0, 0)/3280x2464 crop]
'SRGGB8' : 640x480 [206.65 fps - (1000, 752)/1280x960 crop]
1640x1232 [41.85 fps - (0, 0)/3280x2464 crop]
1920x1080 [47.57 fps - (680, 692)/1920x1080 crop]
3280x2464 [21.19 fps - (0, 0)/3280x2464 crop]
1 : imx477 [4056x3040] (/base/soc/i2c0mux/i2c@1/imx477@1a)
Modes: 'SRGGB10_CSI2P' : 1332x990 [120.05 fps - (696, 528)/2664x1980 crop]
'SRGGB12_CSI2P' : 2028x1080 [50.03 fps - (0, 440)/4056x2160 crop]
2028x1520 [40.01 fps - (0, 0)/4056x3040 crop]
4056x3040 [10.00 fps - (0, 0)/4056x3040 crop]
----

In the above example, the IMX219 sensor is available at index 0 and IMX477 at index 1. The sensor mode identifier takes the following form:
----
S<Bayer order><Bit-depth>_<Optional packing> : <Resolution list>
----
For the IMX219 in the above example, all modes have a `RGGB` Bayer ordering and provide either 8-bit or 10-bit CSI2 packed readout at the listed resolutions.
For the IMX219 in the above example, all modes have a `RGGB` Bayer ordering and provide either 8-bit or 10-bit CSI2 packed readout at the listed resolutions. The crop is specified as (<x>, <y>)/<Width>x<Height>, where (x, y) is the location of the crop window of size Width x Height in the sensor array. The units remain native sensor pixels, even if the sensor is being used in a binning or skipping mode.

----
--camera Selects which camera to use <index>
Expand Down
147 changes: 89 additions & 58 deletions documentation/asciidoc/computers/config_txt/video.adoc
Original file line number Diff line number Diff line change
@@ -1,62 +1,5 @@
== Video Options

=== Composite Video Mode

==== `sdtv_mode`

The `sdtv_mode` command defines the TV standard used for composite video output. On the original Raspberry Pi, composite video is output on the RCA socket. On other Raspberry Pis, except for Raspberry Pi Zero and Compute Module, composite video is output along with sound on the 4 pole TRRS ("headphone") socket. On the Raspberry Pi Zero, there is an unpopulated header labelled "TV" which outputs composite video. On the Compute Module, composite video is available via the TVDAC pin. The default value of `sdtv_mode` is `0`.

|===
| sdtv_mode | result

| 0
| Normal NTSC

| 1
| Japanese version of NTSC -- no pedestal

| 2
| Normal PAL

| 3
| Brazilian version of PAL -- 525/60 rather than 625/50, different subcarrier

| 16
| Progressive scan NTSC

| 18
| Progressive scan PAL
|===

==== `sdtv_aspect`

The `sdtv_aspect` command defines the aspect ratio for composite video output. The default value is `1`.

|===
| sdtv_aspect | result

| 1
| 4:3

| 2
| 14:9

| 3
| 16:9
|===

==== `sdtv_disable_colourburst`

Setting `sdtv_disable_colourburst` to `1` disables colourburst on composite video output. The picture will be displayed in monochrome, but it may appear sharper.

==== `enable_tvout` (Raspberry Pi 4 Model B Only)

On the Raspberry Pi 4, composite output is disabled by default, due to the way the internal clocks are interrelated and allocated. Because composite video requires a very specific clock, setting that clock to the required speed on the Raspberry Pi 4 means that other clocks connected to it are detrimentally affected, which slightly slows down the entire system. Since composite video is a less commonly used function, we decided to disable it by default to prevent this system slowdown.

To enable composite output, use the `enable_tvout=1` option. As described above, this will detrimentally affect performance to a small degree.

On older Raspberry Pi models, the composite behaviour remains the same.

=== HDMI Mode

NOTE: Because the Raspberry Pi 4 and Raspberry Pi 400 have two HDMI ports, some HDMI commands can be applied to either port. You can use the syntax `<command>:<port>`, where port is 0 or 1, to specify which port the setting should apply to. If no port is specified, the default is 0. If you specify a port number on a command that does not require a port number, the port is ignored. Further details on the syntax and alternatives mechanisms can be found in the HDMI sub-section of the xref:config_txt.adoc#conditional-filters[conditionals section] of the documentation.
Expand Down Expand Up @@ -1521,6 +1464,94 @@ hdmi_drive=2

This may not work if your monitor does not support standard CVT timings.

=== Composite Video Mode

The table below describes where composite video output can be found on each model of Raspberry Pi computer:

|===
| model | composite output

| Raspberry Pi 1 A and B
| RCA jack

| Raspberry Pi Zero
| Unpopulated `TV` header

| Raspberry Pi Zero 2 W
| Test pads on underside of board

| All other models
| 3.5mm AV jack
|===

NOTE: Composite video output is not available on the Raspberry Pi 400.

==== `sdtv_mode`

The `sdtv_mode` command defines the TV standard used for composite video output:

|===
| sdtv_mode | result

| 0 (default)
| Normal NTSC

| 1
| Japanese version of NTSC -- no pedestal

| 2
| Normal PAL

| 3
| Brazilian version of PAL -- 525/60 rather than 625/50, different subcarrier

| 16
| Progressive scan NTSC

| 18
| Progressive scan PAL
|===

==== `sdtv_aspect`

The `sdtv_aspect` command defines the aspect ratio for composite video output. The default value is `1`.

|===
| sdtv_aspect | result

| 1
| 4:3

| 2
| 14:9

| 3
| 16:9
|===

==== `sdtv_disable_colourburst`

Setting `sdtv_disable_colourburst` to `1` disables colourburst on composite video output. The picture will be displayed in monochrome, but it may appear sharper.

==== `enable_tvout`

Set to `1` to enable composite video output, or `0` to disable. On Raspberry Pi 4, composite output is only available if you set this to `1`. Composite output is not available on the Raspberry Pi 400.

On all models except Raspberry Pi 4 and Raspberry Pi 400, composite output will be enabled if HDMI output is disabled. HDMI output is disabled when no HDMI display is detected, or `hdmi_ignore_hotplug=1` is set. Set `enable_tvout=0` to prevent composite being enabled when HDMI is disabled.

[%header,cols="1,1"]

|===
|Model
|Default

|Pi 4 and 400
|0

|All other models
|1
|===

=== LCD Displays and Touchscreens

==== `ignore_lcd`
Expand Down Expand Up @@ -1608,7 +1639,7 @@ Setting `hdmi_force_hotplug` to `1` pretends that the HDMI hotplug signal is ass

==== `hdmi_ignore_hotplug`

Setting `hdmi_ignore_hotplug` to `1` pretends that the HDMI hotplug signal is not asserted, so it appears that a HDMI display is not attached. In other words, composite output mode will be used, even if an HDMI monitor is detected.
Setting `hdmi_ignore_hotplug` to `1` pretends that the HDMI hotplug signal is not asserted, so it appears that a HDMI display is not attached. HDMI output will therefore be disabled, even if a monitor is connected.

==== `overscan_left`

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ image:images/Blink-an-LED-640x360-v2.gif[]

You can blink this on and off by,

. Download the https://datasheets.raspberrypi.com/soft/blink.uf2[Blink UF2]
. Download the Blink UF2 https://datasheets.raspberrypi.com/soft/blink.uf2[for Raspberry Pi Pico], or https://datasheets.raspberrypi.com/soft/blink_picow.uf2[for Pico W].
. Push and hold the BOOTSEL button and plug your Pico into the USB port of your Raspberry Pi or other computer.
. It will mount as a Mass Storage Device called RPI-RP2.
. Drag and drop the Blink UF2 binary onto the RPI-RP2 volume. Pico will reboot.
Expand Down