Difference between revisions of "Streaming directly from MiniTiouner"

From BATC Wiki
Jump to navigation Jump to search
Line 29: Line 29:
 
  goto loop
 
  goto loop
  
You MUST change the text highlighted in black:
+
You '''MUST''' change the text highlighted in black:
  
 
Set FFMPEG=" should have the path to the ffmpeg.exe file on your computer.
 
Set FFMPEG=" should have the path to the ffmpeg.exe file on your computer.

Revision as of 11:40, 18 February 2019

Using the UDP output and an ffmpeg batch file it is possible to stream directly from MiniTionuer to the BATC streamer.

Note: this requires a higher spec PC and drop outs and audio problems on higher bit rates are likely to be due to processor overloading. It also requires some knowledge and is therefore not recommended for beginners!

Configuring MiniTionuer

  • configure MInTiouner to receive signals.
  • Edit your minitioune.ini file (found in the same directory as all MiniTiouner programs) so that the UDP output is only on 127.0.0.1 and port 1234 - it should look like this:
;=====================================================================
; adresse UDP / UDP address
[UDP]	
;=====================================================================	
;AddrUDP=230.0.0.1
AddrUDP=127.0.0.1	
Port=1234

Install ffmpeg

The next step is to install ffmpeg on your PC. Download it from here: https://ffmpeg.zeranoe.com/builds/ Use the release build, 32-bit, static. Unzip the downloaded file and move the files to a folder called ffmpeg on your C:\ drive so that it has the folders bin, docs, licenses and presets inside it.

Now create the windows batch file which will control ffmpeg. Copy the following text in to a text editor (windows note pad etc):

SET ffmpeg="C:\Users\fred\Desktop\ffmpeg\ffmpeg-4.1-win32-static\bin\ffmpeg.exe"
SET stream=g8abc-derjky
:loop
 %ffmpeg% -i udp://127.0.0.1:1234?timeout=100000000 -c:a libmp3lame -b:a 64k -c:v libx264 -b:v 600k -preset fast -f flv rtmp://rtmp.batc.org.uk/live/%stream%
goto loop

You MUST change the text highlighted in black:

Set FFMPEG=" should have the path to the ffmpeg.exe file on your computer.

SET stream= Enter your BATC stream name-stream key

Save the file in the ffmpeg directory as a stream.bat (NOT.txt) and if needed create a shortcut to your desk top.

Run the program

Start MiniTiouner as normal and set it to receive a signal - then press the UDP button.

Now run the batch file you created. You will probably get a windows firewall message - click allow.

You should now see your received signal appear on your members channel on the BATC streamer.