mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-12-23 01:55:48 -05:00
ATV Modulator: updated documentation
This commit is contained in:
parent
48ab965f36
commit
b1c2f59a87
Binary file not shown.
Before Width: | Height: | Size: 44 KiB After Width: | Height: | Size: 48 KiB |
BIN
doc/img/ATVMod_pluginA.png
Normal file
BIN
doc/img/ATVMod_pluginA.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 19 KiB |
@ -1,75 +1,120 @@
|
||||
<h1>ATV modulator plugin</h1>
|
||||
##ATV modulator plugin
|
||||
|
||||
<h2>Introduction</h2>
|
||||
<h1>Introduction</h1>
|
||||
|
||||
This plugin can be used to generate an analog TV signal mostly used in amateur radio. It is limited to black and white images as only the luminance (256 levels) is supported.
|
||||
|
||||
There is no sound either. You coud imagine using any of the plugins supporting audio to create a mixed signal. This is not working well however for various reasons. It is better to use two physical transmitters and two physical receivers.
|
||||
|
||||
In practice 4 MS/s is the lowest sample rate that produces a standard image quality. Lower sample rates down to 1 MS/s produce low quality images that may still be acceptable for experiments.
|
||||
In practice 4 MS/s with about 300 points per line is the lowest sample rate that produces a standard image quality. Lower sample rates and line definition produce low quality images that may still be acceptable for experiments.
|
||||
|
||||
<h2>Interface</h2>
|
||||
<h1>Interface</h1>
|
||||
|
||||
![ATV Modulator plugin GUI](../../../doc/img/ATVMod_plugin.png)
|
||||
|
||||
<h3>1: Frequency shift from center frequency of reception direction</h3>
|
||||
<h2>1: Frequency shift from center frequency of reception direction</h2>
|
||||
|
||||
The "+/-" button on the left side of the dial toggles between positive and negative shift.
|
||||
|
||||
<h3>2: Frequency shift from center frequency of reception value</h3>
|
||||
<h2>2: Frequency shift from center frequency of reception value</h2>
|
||||
|
||||
Use the wheels to adjust the frequency shift in Hz from the center frequency of reception. Left click on a digit sets the cursor position at this digit. Right click on a digit sets all digits on the right to zero. This effectively floors value at the digit position.
|
||||
|
||||
<h3>3: Channel power</h3>
|
||||
<h2>3: Sample rate data</h2>
|
||||
|
||||
The left button can be used to force the rational decimator even when the source and channel samople rates agree. This allows to use the FIR filter of the decimator in any case.
|
||||
|
||||
The middle figure is the sample rate in kS/s used in the channel which may differ of the source plugin output sample rate if the rational decimator is engaged. This sample rate is calculated as the multiple of a base rate the closest lower to the source plugin output sample rate.
|
||||
|
||||
The right figure is the corresponding number of points and therefore also samples per full line including line synchronization pattern.
|
||||
|
||||
The base sample rate is calculated based on the line frquency as the closest multiple of 1 kHz that represents an integer number of points per line greater or equal to 100.
|
||||
|
||||
Let's take an example with a 405 lines and 25 FPS video signal and a 2400 kS/s source output sample rate:
|
||||
|
||||
- the line frequency is 405 × 25 = 10125 Hz
|
||||
- 100 points require a sample rate of at least 100 × 10125 = 1012500 S/s to fit one point per sample. This is not a multiple of 1 kS/s so we look for the next number of points that will yield a multiple of 1 kS/s
|
||||
- 104 points yield a sample rate of 104 × 10125 = 1053000 S/s which is a multiple of 1 kS/s and is the closest to 1012500 S/s. So we take 1053 kS/s as the base rate
|
||||
- the channel sample rate at the output of the rational decimator will be 1053 × 2 = 2106 kS/s and will fit 104 × 2 = 208 points per line which produces a fairly good image
|
||||
|
||||
The example taken in the screenshot is from a 405 lines × 20 FPS video signal:
|
||||
|
||||
- line frequency is 8100 Hz
|
||||
- 100 points fit exactly into a 810 kS/s sample rate
|
||||
- the nearest sample rate to 2400 kS/s is 1620 kS/s for 200 points per line
|
||||
|
||||
<h2>4: Channel power</h2>
|
||||
|
||||
Average total power in dB relative to a ±1.0 amplitude signal generated in the pass band.
|
||||
|
||||
<h3>4: Channel mute</h3>
|
||||
<h2>5: Channel mute</h2>
|
||||
|
||||
Use this button to toggle mute for this channel. The radio waves on the icon are toggled on (active) and off (muted) accordingly. Default is channel active.
|
||||
|
||||
<h3>5: Modulation type</h3>
|
||||
<h2>A: Signal settings</h2>
|
||||
|
||||
![ATV Modulator plugin GUI signal](../../../doc/img/ATVMod_pluginA.png)
|
||||
|
||||
<h3>A.1: Modulation type</h2>
|
||||
|
||||
The video signal can modulate the carrier in the following modes:
|
||||
|
||||
- AM: Amplitude modulation. Modulation index is 90%.
|
||||
- FM: Frequency modulation. Excursion is half the bandwidth available given the channel sample rate. e.g. for 4 MS/s sample rate this is ±1 MHz (2 MHz total)
|
||||
- FM: Frequency modulation. Excursion is a percentage of the bandwidth available given the channel sample rate. This percentage is controlled by button (2). e.g. at 50% for 4 MS/s sample rate this is ±1 MHz (2 MHz total)
|
||||
- USB: SSB upper side band: video signal is transposed only in positive frequencies including DC component
|
||||
- LSB: SSB lower side band: video signal is transposed only in megative frequencies excluding DC component
|
||||
- VUSB: SSB upper sideband with vestigial lower sideband. The cutoff frequency of the lower sideband is controlled by the left slider of (6)
|
||||
- VLSB: SSB lower sideband with vestigial upper sideband. The cutoff frequency of the upper sideband is controlled by the left slider of (6)
|
||||
- VUSB: SSB upper sideband with vestigial lower sideband. The cutoff frequency of the lower sideband is controlled by slider (3)
|
||||
- VLSB: SSB lower sideband with vestigial upper sideband. The cutoff frequency of the upper sideband is controlled by slider (3)
|
||||
|
||||
<h3>6: RF bandwidth</h3>
|
||||
<h3>A.2: FM deviation percentage of total bandwidth</h3>
|
||||
|
||||
This control has now a couple of sliders that do not appear on the screenshot.
|
||||
Use this button to control FM deviation in FM modulation mode. This is a percentage of total available channel bandwidth. e.g for the sample rate of 1620 kS/s of the screenshot and a percentage of 40% this yields a full deviation of 1620 × 0.4 = 648 kHz that is ±324 kHz
|
||||
|
||||
<h3>A.3: Opposite sideband FFT filter cutoff</h3>
|
||||
|
||||
In all but SSB modulations the right slider is is the bandwidth in MHz of the channel filter when the interpolator is engaged. If the sink sample rate is an integer multiple of the base rate that depends on the standard then there is no interpolation else the channel rate is set to the closest integer multiple of the base rate below the sink sample rate.
|
||||
This slider is effective only on SSB and vestigial modes (USB, LSB, VUSB, VLSB). This slider controls the cutoff frequency of the FFT filter in the opposite sideband to the main in band sideband. That is:
|
||||
|
||||
The base rate depending on the standard is:
|
||||
- for LSB and VLSB: this is the upper sideband
|
||||
- for USB and VUSB: this is the lower sideband
|
||||
|
||||
The cutoff frequency in kHz is displayed on the left of the slider
|
||||
|
||||
<h3>A.4: In band filter cutoff</h3>
|
||||
|
||||
- PAL625L: 1 MS/s
|
||||
- PAL525L: 1.008 MS/s
|
||||
This slider acts on both the FFT filter in SSB modes and the rational decimator FIR filter in other modes.
|
||||
|
||||
The modulating video signal sample rate is the same as the channel sample rate hence for example with a channel sample rate of 4 MS/s a video sample will last 1/4 = 0.25 μs. In PAL625L a complete horizontal line lasts 64 μs hence it will be composed of 64 × 4 = 256 samples while the useful image line that lasts about 52 μs will be composed of 52 × 4 = 204 samples or points.
|
||||
- AM, FM: this controls the cutoff frequency of the decimator FIR filter.
|
||||
- USB, LSB, VUSB, VLSB: this controls the cutoff frequency of the FIR filter on the in band side that is:
|
||||
- upper sideband for USB, VUSB
|
||||
- lower sideband for LSB, VLSB
|
||||
|
||||
When no interpolation and hence no soft RF filtering in the channel takes place then filtering relies on the hardware. The hardware filter bandwidth can be set in the sink plugin.
|
||||
The cutoff frequency in kHz is displayed on the right of the slider
|
||||
|
||||
In USB and LSB modulations the right slider controls the sideband FFT filter cutoff. This filter includes DC to avoid the distorsion of the video signal that has a significant DC component.
|
||||
<h3>A.5: Modulated signal level before filtering stages</h3>
|
||||
|
||||
This button controls the scaling from the +1/-1 modulated signal level to the -32768/+32768 2 bytes samples. This is useful to control the saturation of the FFT or FIR filters. Looking at the output spectrum you can precisely control the limit above which distorsion appears.
|
||||
|
||||
In VUSB and VLSB modulations in addition the left slider controls the opposite sideband FFT filter cutoff.
|
||||
|
||||
<h3>7: Video signal level meter</h3>
|
||||
<h3>A.6: Video signal level meter</h3>
|
||||
|
||||
This is the level meter fed with the video signal. Units are the percentage of the 0.0 to 1.0 modulating video signal.
|
||||
|
||||
<h3>8: TV Standard</h3>
|
||||
<h3>A.7: Nuber of lines</h3>
|
||||
|
||||
This is the analog TV standard in use. Use the checkbox to choose between:
|
||||
This controls the number of lines per full frame. Choice is between 625, 525 or 405 lines.
|
||||
|
||||
<h3>A.8: Number of frames per second</h3>
|
||||
|
||||
This controls the number of full frames per second. Choice is between 30, 25, 20 or 16 frames per second.
|
||||
|
||||
<h3>A.9: TV Standard</h2>
|
||||
|
||||
This controls the frame synchronization schem and number of black lines:
|
||||
|
||||
- PAL625L: this is the PAL 625 lines standard with 25 FPS. Since only black and white (luminance) is supported this corresponds to any of the B,G,I or L PAL standards
|
||||
- PAL525L: this is the PAL 525 lines standard with 30 FPS. This corresponds to the PAL M standard.
|
||||
- 405L: this loosely corresponds to the British 405 lines system and is similar to PAL for synchronization. This mode has only 7 black lines.
|
||||
|
||||
<h3>9: Input source</h3>
|
||||
<h2>A.10: Input source</h2>
|
||||
|
||||
This combo box lets you choose between various inputs for the video signal:
|
||||
|
||||
@ -83,70 +128,66 @@ This combo box lets you choose between various inputs for the video signal:
|
||||
- Video: video file read from the file selected with button (14). If no image is selected an uniform image is sent with the luminance adjusted with button (10). Buttons (15) and (16) control the play.
|
||||
- Camera: video signal from a webcam or supported video source connected to the system. If no source is selected an uniform image is sent with the luminance adjusted with button (10). Button (21) selects the camera source. Button (20) plays or stops the camera on a still image.
|
||||
|
||||
<h3>9A: Video inversion toggle</h3>
|
||||
|
||||
This checkbox is not on the screenshot and is on the right of (9) between (9) and (10).
|
||||
<h2>A.11: Video inversion toggle</h2>
|
||||
|
||||
Use this checkbox to toggle video signal inversion before modulation.
|
||||
|
||||
<h3>10. Luminance level</h3>
|
||||
<h2>A.12. Luminance level</h2>
|
||||
|
||||
This button lets you adjust the luminance level of the "blank" screens displays, the lighter squares on the chessboard and the overlay text.
|
||||
|
||||
<h3>11. Show overlay text toggle</h3>
|
||||
<h2>A.13. Overlay text toggle</h2>
|
||||
|
||||
This button toggles the display of an overlay text on a still image, or a video signal from a file or a camera. Note that for still images you will have to toggle off/on this button to take any change of text or text brightness into account.
|
||||
The button toggles the display of an overlay text on a still image, or a video signal from a file or a camera. Note that for still images you will have to toggle off/on this button to take any change of text or text brightness into account. The brightness level of the text is selected with the luminance adjust button (10). The number of characters is limited to 12.
|
||||
|
||||
<h3>12. Overlay text</h3>
|
||||
The text area lers you type a text up to 12 characters.
|
||||
|
||||
In this textbox you can type the text that will be displayed as overlay when button (11) is engaged. The brightness level of the text is selected with the luminance adjust button (10). The number of characters is limited to 12.
|
||||
|
||||
<h3>13. Still picture file select</h3>
|
||||
<h2>6. Still picture file select</h2>
|
||||
|
||||
Clicking on this button will open a file dialog to let you choose an image file for still image display. When the dialog is closed and the choice is validated the name of the file will appear on the space at the right of the button.
|
||||
|
||||
<h3>14. Video file select</h3>
|
||||
<h2>7. Video file select</h2>
|
||||
|
||||
Clicking on this button will open a file dialog to let you choose a video file for video play. When the dialog is closed and the choice is validated the name of the file will appear on the space at the right of the button.
|
||||
|
||||
<h3>15. Play loop video</h3>
|
||||
<h2>8. Play loop video</h2>
|
||||
|
||||
Use this button to toggle on/off playing the video file in a loop
|
||||
|
||||
<h3>16. Play/Pause video</h3>
|
||||
<h2>9. Play/Pause video</h2>
|
||||
|
||||
Use this button to toggle on/off the video file play. When play stops the current image is displayed as a still image. When video is stopped the button is dark and a play (►) icon is displayed on the button. When video runs the button is lit and a pause (▋▋) icon is displayed on the button.
|
||||
|
||||
<h3>17. Current video position</h3>
|
||||
<h2>10. Current video position</h2>
|
||||
|
||||
This is the current video file play position in time units relative to the start
|
||||
|
||||
<h3>18. Video file length</h3>
|
||||
<h2>11. Video file length</h2>
|
||||
|
||||
This is the video file play length in time units
|
||||
|
||||
<h3>19. Video file position slider</h3>
|
||||
<h2>12. Video file position slider</h2>
|
||||
|
||||
This slider can be used to randomly set the currennt position in the file when file play is in pause state (button 16). When video plays the slider moves according to the current position.
|
||||
|
||||
<h3>20. Play/Pause camera</h3>
|
||||
<h2>23. Play/Pause camera</h2>
|
||||
|
||||
Use this button to toggle on/off the camera play. When play stops the current image is displayed as a still image. When camera is stopped the button is dark and a play (►) icon is displayed on the button. When camera runs the button is lit and a pause (▋▋) icon is displayed on the button.
|
||||
|
||||
On Linux systems when the play button is engaged for the first time the FPS of the camera is scanned which can take some time (100 frames are read). A message box appears while the operation is running.
|
||||
|
||||
<h3>21. Camera select</h3>
|
||||
<h2>14. Camera select</h2>
|
||||
|
||||
Use this combo to select the camera source when more than one is available. the number corresponds to the index of the camera during the camera scan at the startup of the plugin instance. A maximum of 4 cameras are scanned in whichever order presented by the system.
|
||||
|
||||
<h3>22. Camera device number</h3>
|
||||
<h2>15. Camera device number</h2>
|
||||
|
||||
This is the device number used by OpenCV which on Linux systems correspond to the /dev/video device number. i.e. "#0" for /dev/video0.
|
||||
|
||||
<h3>23. Camera FPS</h3>
|
||||
<h2>16. Camera FPS</h2>
|
||||
|
||||
This is the camera FPS. On Windows there is no dynamic FPS check and a fixed 5 FPS is set for each camera. On Linux 90% of the calculated FPS is divided by the number of scanned cameras to give the final FPS. This is an attempt to avoid congestion when multiple cameras are available however this was only tested with two cameras.
|
||||
|
||||
<h3>24. Camera image size</h3>
|
||||
<h2>17. Camera image size</h2>
|
||||
|
||||
This is the width x height camera iamge size in pixels
|
Loading…
Reference in New Issue
Block a user