Page 1 of 1

file to transmit via Vmix IPTS IN ?

Posted: Tue Oct 24, 2017 9:33 am
by F5SWB Dimitri
Hi everybody,

Could you tell me how to proceed to transmit via Vmix to Porstdown ?

In fact I found a tutorial but i don't success :(

My question is : how to tell to Porstdown SOFTWARE that the file must go to 230.0.0.2 according to the RPI.bat file ?

Vmix2Rpi.bat :

rem vMix to Transport Stream for RpiDATV
rem by Alain Fort march 2016 and Chris mw0llk January 2015.
rem with thanks to Rob m0dts for the linux shell script on which this was based.
echo Enter the following values to start the Tx, Press Enter for default (previous) values.

if X%SR%==X set SR=1000
set defSR=%SR%
set /p SR=Enter SR in KS (%SR%):
if X%SR%==X set SR=%defSR%

if X%FEC%==X set FEC=5/6
set defFEC=%FEC%
set /p FEC=Enter FEC in KS (%FEC%):
if X%FEC%==X set FEC=%defFEC%

rem Save values for next time
rem If these lines cause errors your system may not support SETX
rem If so just comment them out
if not %SR%==%defSR% setx SR "%SR%"
if not %FEC%==%defFEC% setx FEC "%FEC%"

echo Symbol rate: %SR%, FEC: %FEC%. Calculating bitrates...

rem Calculate Video bit rate value for current SR/FEC
set /a DSR=2*%SR%
echo DSR is %DSR%

set /a DECFEC=1000*%FEC%
set /a RS=188000/204
set /a TS=%DSR% * %RS% / 1000 * %DECFEC% / 1000
set /a TSMAUD=%TS%-128
set /a VIDRATE=%TSMAUD% * 75 / 100
set /a BUFSIZE=%VIDRATE% * 7 /10

echo Transport Stream rate for current SR/FEC is: %TS%
echo Video bit-rate: %VIDRATE%

rem Show the parameters during 2 seconds (rem it if you don't need it)
@echo off
echo %time%
timeout 2 > NUL
echo %time%

start "Video feed to RpiDATV" /high c:\ffmpeg\bin\ffmpeg -f dshow -i video="vMix Video" -f dshow -i audio="vMix Audio" -vf "drawtext=fontfile='C\:\\Windows\\Fonts\\verdanab.ttf':text=Vmix2Rpi':x=60:y=34:fontsize=30:fontcolor=0xffffff7f:shadowcolor=0x003f007f:shadowx=2:shadowy=2" -f mpeg2video -pix_fmt yuv420p -r 25 -s 720x576 -aspect 4:3 -qmin 2 -qmax 35 -b:v %VIDRATE%k -minrate %VIDRATE%k -maxrate %VIDRATE%k -bufsize %BUFSIZE%k -acodec mp2 -ab 128k -ac 2 -f mpegts -mpegts_original_network_id 1 -mpegts_transport_stream_id 1 -mpegts_service_id 1 -mpegts_pmt_start_pid 4096 -streamid 0:33 -streamid 1:49 -metadata service_provider="Vmix2Rpi" -metadata service_name="F5SWB" -y udp://230.0.0.2:10000?pkt_size=1316


Thanks in advance.

Best regards from France near Strasbourg.

F5SWB/Dim.

Re: file to transmit via Vmix IPTS IN ?

Posted: Thu Oct 26, 2017 7:57 am
by F5SWB Dimitri
always read the wiki before asking something :oops:

https://wiki.batc.tv/Feeding_Video_to_P ... _from_vMix