Difference between revisions of "IPTS Input to Portsdown with the LimeSDR"

From BATC Wiki
Jump to navigation Jump to search
Line 40: Line 40:
 
You need to tell the Portsdown to use the incoming IP Transport Stream, so first select Encoder, "IPTS in".  Make sure that you have Lime DVB selected as the output device (and that you have programmed the Lime with the custom firmware).
 
You need to tell the Portsdown to use the incoming IP Transport Stream, so first select Encoder, "IPTS in".  Make sure that you have Lime DVB selected as the output device (and that you have programmed the Lime with the custom firmware).
  
Select the same modulation type, symbol rate and FEC that you entered into the Batch script.
+
Select the same symbol rate and FEC that you entered into the Batch script.
  
 
From Portsdown Buster software 202002290 onwards, you can check the incoming transport stream by selecting Menu 2, IPTS Viewer, and the Portsdown will display the images that it is being sent.  It takes 15 seconds or so to start, so be patient.  Touch the screen to exit.
 
From Portsdown Buster software 202002290 onwards, you can check the incoming transport stream by selecting Menu 2, IPTS Viewer, and the Portsdown will display the images that it is being sent.  It takes 15 seconds or so to start, so be patient.  Touch the screen to exit.
  
Now you can select transmit and hopefully, after the Lime has started up, you will see a valid signal.  You only need to deselect transmit on the Portsdown, you can leave vMix and the batch file running all day.
+
Now you can select transmit and hopefully, after the Lime has started up, you will see a valid signal.  You only need to deselect or reselect transmit on the Portsdown, you can leave vMix and the batch file running all day.

Revision as of 10:53, 26 February 2020

You can feed pictures to your Portsdown from a PC-based video application such as vMix or OBS. For vMix the workflow is:

  1. Start vMix and enable the external output. The settings are described in detail here Feeding_Video_to_Portsdown_from_vMix.
  2. Use ffmpeg running on the PC (started by a batch file) to capture the "DirectShow" output from vMix and encode it into a transport stream to be sent to the Portsdown
  3. Set IPTS input (from the "Encoding" menu) on the Portsdown and select transmit.

The complex part of this process is the encoding on the PC.

Use of a Batch File For Video Encoding on a PC

First, make sure that you have ffmpeg installed on your PC as detailed here: Feeding_Video_to_Portsdown_from_vMix#ffmpeg

The notes here are based on this batch file File:vMix2PortsdownH264DVB-S2.zip, which you should download, unzip and store in a sensible place on your PC. You will need to run it every time you set up transmissions from vMix or OBS. You will also need to edit it before using it for the first time.

One-time Editing

Before first use, you need to edit the batch file and enter your Portsdown's IP address and your callsign. So right-click the file and select Edit.

  • Change the line "set ip=192.168.2.214" to the IP address of your Portsdown. You can look this up on Menu 2, Info on the touchscreen.
  • Change the line "set callsign=G8GKQ" with your callsign.
  • Near the end of the script, make sure that the line "C:\ffmpeg\bin\ffmpeg ^" actually points to where the ffmpeg program is on your PC. Don't forget to leave the ^ at the end of the line.

Save your changes

Running the Batch File

Before running the batch file, start the External Output on vMix. It should turn red.

Double-click the batch file and a Command Prompt window should open, giving details of your Portsdown's IP address and callsign.

  • Select the desired modulation type. 1 for DVB-S, 2 for DVB-S2. Press Enter.
  • Enter the symbol rate in kS and press enter.
  • Enter the FEC in the format shown, and press enter. The script will only cope with the FECs listed.
  • Enter the coding headroom in percent. The default 35 is about right, but if you have a low speed PC and fast-moving picture content, you may need to increase the figure to prevent break-up when the picture moves.

In all cases, just pressing enter will use the figure displayed in brackets. The script will then tell you what it is going to do, and you should start it by pressing any key. Once started, you can stop it by pressing Q.

You should see the ffmpeg status screen with the relevant parameters displayed at the bottom.

Portsdown Settings

You need to tell the Portsdown to use the incoming IP Transport Stream, so first select Encoder, "IPTS in". Make sure that you have Lime DVB selected as the output device (and that you have programmed the Lime with the custom firmware).

Select the same symbol rate and FEC that you entered into the Batch script.

From Portsdown Buster software 202002290 onwards, you can check the incoming transport stream by selecting Menu 2, IPTS Viewer, and the Portsdown will display the images that it is being sent. It takes 15 seconds or so to start, so be patient. Touch the screen to exit.

Now you can select transmit and hopefully, after the Lime has started up, you will see a valid signal. You only need to deselect or reselect transmit on the Portsdown, you can leave vMix and the batch file running all day.