Update Ultimate Remote Operation

master
Elliott Liggett 2020-09-18 02:23:28 +00:00
rodzic ce6a154bc5
commit d1997baf4c
1 zmienionych plików z 50 dodań i 0 usunięć

@ -50,3 +50,53 @@ socat -v -x -d -d -d -d -t 4096 pty,link=/tmp/vmodem0,waitslave,ignoreeof tcp:10
```
3. Modify the wfview preferences to point to /tmp/vmodem0. Just change the `SerialPortRadio=auto` line to `SerialPortRadio=/tmp/vmodem0`
4. Open wfview and verify that you can control the radio and receive the waterfall.
### 2: Stream the Icom audio
Make sure you have already installed and configured icecast2 per the Audio Streaming wiki. Make sure to read about how to find the audio device number.
Run ffmpeg to stream the Icom audio to the icecast server:
```
ffmpeg -ac 1 -f alsa -i hw:1,0 -ar 22050 -acodec libmp3lame -ab 256k -ac 1 -content_type audio/mpeg -flags low_delay -fflags nobuffer -f mp3 icecast://source:letmein@10.0.0.130:8000/icom
```
### 3: Run ffmpeg on your client computer to stream to the icecast server.
From your client computer, review the list of audio devices and find the one corresponding to your microphone:
```
arecord -l
```
Here's what my thinkpad shows:
```
**** List of CAPTURE Hardware Devices ****
card 0: PCH [HDA Intel PCH], device 0: ALC269VC Analog [ALC269VC Analog]
Subdevices: 1/1
Subdevice #0: subdevice #0
```
In my case, the only input I have is `hw:0,0`. If I had a fancy USB headset it would probably be `hw:1,0`. In any case, now stream to the icecast server:
```
ffmpeg -ac 1 -f alsa -i hw:0,0 -ar 22050 -acodec libmp3lame -ab 256k -ac 1 -content_type audio/mpeg -flags low_delay -fflags nobuffer -f mp3 icecast://source:letmein@10.0.0.130:8000/mic
```
On my Mac laptop client, I had to do this to find the device:
```
ffmpeg -f avfoundation -list_devices true -i ""
```
Followed by this to start the stream:
```
ffmpeg -ac 1 -f avfoundation -i 1:0 -audio_device_index 0 -ar 22050 -acodec libmp3lame -ab 256k -ac 1 -content_type audio/mpeg -flags low_delay -fflags nobuffer -f mp3 icecast://source:letmein@10.0.0.130:8000/mic
```
Note that on a mac, you can (and probably should) adjust the mic gain in the system preferences under sound and further under the Input tab.
### 4: Play back the mic audio into the Icom
The easiest way is to walk over to the server, launch a GUI environment, and run VLC. From VLC, go into the preferences. Pres "All" or "Advanced" to show all the preferences. Now go to Streaming. Find the text box for "Stream output muxer caching (ms)" and set it to zero. You can experiment with higher values if your link has issues, but it will add to latency significantly.
Save the preferences. Now go to the Media menu and select "Open Network Stream". Type in the address of your stream: "http://10.0.0.130:8000/mic". You should be hearing the microphone audio on your server speakers. Now change the output device to the icom. Go to the Audio menu, select "Audio Device" and choose the Icom by selecting PCM2901. Your IC-7300 should then be set to take transmit audio from the USB port. Perhaps the easiest way to do this is to just put it into one of the -D modes ("DATA") which default to working this way.
### 5: Client stream
### 6: wfview preferences (already covered)
### 7: Launch wfview