Difference between revisions of "Streaming directly from MiniTiouner"

From BATC Wiki
Jump to navigation Jump to search
 
(12 intermediate revisions by one other user not shown)
Line 1: Line 1:
 
Using the UDP output and an ffmpeg batch file it is possible to stream directly from MiniTionuer to the BATC streamer.
 
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 processor overloading. It also requires some knowledge and is therefore not recommended for beginners!
+
Note: this requires a high spec PC and drop outs and audio problems on higher bit rates are likely to be due to processor overloading.
  
===Configuring MiniTionuer===
+
It also requires some knowledge of batch files etc and is therefore not recommended for beginners!
  
* configure MInTiouner to receive signals.
+
===Configuring MiniTionue software===
  
* 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:
+
* configure MiniTioune to receive signals.
 +
 
 +
* Edit your minitioune.ini file (found in the same directory as all MiniTioune programs) so that the UDP output is only on 127.0.0.1 and port 1234 - it should look like this:
  
 
  ;=====================================================================
 
  ;=====================================================================
Line 23: Line 25:
 
Now create the windows batch file which will control ffmpeg. Copy the following text in to a text editor (windows note pad etc):
 
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\Noel\Desktop\ffmpeg\ffmpeg-4.1-win32-static\bin\ffmpeg.exe"
+
  SET ffmpeg="'''C:\Users\fred\Desktop\ffmpeg\ffmpeg-4.1-win32-static\bin\ffmpeg.exe'''"
  SET stream=g8gtz-EmdljQ
+
  SET stream='''g8abc-derjky'''
 
 
 
  :loop
 
  :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%
 
   %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
 
  goto loop
  
  You will need to make some amendments to the file; do this by right-clicking and selecting edit. Near the top of the file replace the callsign G8GKQ with your callsign; then replace the IP address (192.168.2.111) with the IP address of your Portsdown TX RPi. This IP address is displayed when you change the Portsdown video source to IPTSIN (don't forget to press the space bar to change the selection!).
+
You '''MUST''' change the text highlighted in black:
You may want to adjust the aspect ratio of the output. This is done by editing the line...<br>
+
 
-pix_fmt yuv420p -r 25 -s 768x576 -aspect 4:3 -qmin 2 -qmax 35^<br>
+
''Set FFMPEG=''"" should have the path to the ffmpeg.exe file on your computer
by changing 768x576 to whatever you want. A common setting is 720x540<br>
+
 
Save the file.
+
''SET stream='' Enter your BATC "stream name-stream key" details found on your member's account summary - the 2 fields are separated by a hyphen.
 +
 
 +
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 MiniTioune 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.
 +
 
 +
== Streaming from VLC ==
 +
 
 +
You can also stream directly from VLC player and by using the VLC screen capture input to feed the MiniTioune display to the streamer.  
 +
 
 +
As it is capturing the full desktop display it will require MiniTioune being left in the foreground on one of the full screen modes but this also might be handy as it also captures the MiniTioune panels.
 +
 
 +
=== Running===
 +
 
 +
Alter the callsign-yourkey to match your settings. (Audio's not working though...)
 +
 
 +
"C:\Program Files\VideoLAN\VLC\vlc.exe" screen:// :screen-fps=25.000000 :live-caching=300 --sout="#transcode{vcodec=h264,acodec=mpga,ab=128,channels=2,sampl
 +
erate=44100}:std{access=rtmp,dst=rtmp://rtmp.batc.org.uk/live/gi7ugv-yourkey,port=1935,mux=flv}"

Latest revision as of 02:01, 29 July 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 high 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 of batch files etc and is therefore not recommended for beginners!

Configuring MiniTionue software

  • configure MiniTioune to receive signals.
  • Edit your minitioune.ini file (found in the same directory as all MiniTioune 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" details found on your member's account summary - the 2 fields are separated by a hyphen.

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 MiniTioune 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.

Streaming from VLC

You can also stream directly from VLC player and by using the VLC screen capture input to feed the MiniTioune display to the streamer.

As it is capturing the full desktop display it will require MiniTioune being left in the foreground on one of the full screen modes but this also might be handy as it also captures the MiniTioune panels.

Running

Alter the callsign-yourkey to match your settings. (Audio's not working though...)

"C:\Program Files\VideoLAN\VLC\vlc.exe" screen:// :screen-fps=25.000000 :live-caching=300 --sout="#transcode{vcodec=h264,acodec=mpga,ab=128,channels=2,sampl erate=44100}:std{access=rtmp,dst=rtmp://rtmp.batc.org.uk/live/gi7ugv-yourkey,port=1935,mux=flv}"