I am using the code below as a batch file. The issue i am currently having is only one video in the folder keeps looping. How can i make all the videos play and loop?
@echo off
set FFMPEGDIR=E:\ffmpeg\bin
set BARKERDIR=E:\slatewithsound
:start
for /F %%x in ('dir /b /d %BARKERDIR%\*.ts') do (
@echo %BARKERDIR%\%%x
%FFMPEGDIR%\ffmpeg.exe -re -fflags +genpts -stream_loop -1 -i %BARKERDIR%\%%x -acodec ac3 -ac 2 -ar 48000 -b:a 192K -vcodec mpeg2video -s 1920x1080 -b:v 4.5M -mpegts_start_pid 0x101 -mpegts_pmt_start_pid 0x100 -f mpegts udp://239.203.1.61:4000?pkt_size=1316
)
goto start