ST2110 DEKTEC DTA-2110 ffmpeg – Following on from: —- Part 1
How to use our FFPMEG + Freetype build to create the following test pattern file or to stream over ST2110 using the DekTec DA-2110 smart NIC
From Part 1 you should already have MYSYS2 installed and now we use the Linux emulator to run FFMPEG scripts.
Open a windows terminal and launch Msys2 with the command:
"C:\msys64\msys2_shell.cmd" -full-path
Msys2 should open in a new window, this is a Linux shell so use Linux commands for navigation/execution etc.
In the Msys2 terminal, navigate to c/ffmpeg_build:
cd /c/ffmpeg_build/
Run ffmpeg:
./ffmpeg -I <input> -url:v <destination address> -url:a <destination address> -f dektec <serial number>
Example:
Video destination multicast address = 239.10.10.10:5000
Audio destination multicast address = 239.10.10.12:5000
Serial number of Dektec PCIe card being used = 2110000030 (can be found on your card)
./ffmpeg -i ../ffmpeg_examples/sample-30s.mp4 -url:v 239.10.10.10:5000 -url:a 239.10.10.12:5000 -f dektec 2110000030
Note:
You can also open /c/ffmpeg_build in powershell and run ./ffmpeg directly
Now we build the test pattern as shown above and save it to a file, and stream using ST2110:
Output to file:
./ffmpeg -f lavfi -i testsrc=duration=10:size=1920x1080:rate=30 -vf format=yuv420p,drawtext="text='L2tek Camera 1\ ':timecode='00\:00\:00\:00':rate=30:fontsize=48:fontcolor='white':\boxcolor=0x00000088:box=1:boxborderw=10:x=550:y=740" ../ffmpeg_examples/tpg.mp4
Stream over 2110 via DekTec NIC:
./ffmpeg -f lavfi -i testsrc=duration=10:size=1920x1080:rate=30 -vf loop=loop=-1:size=30*10:start=0,format=yuv420p,drawtext="text='L2tek Camera 1\ ':timecode='00\:00\:00\:00':rate=30:fontsize=48:fontcolor='white':\boxcolor=0x00000088:box=1:boxborderw=10:x=550:y=740" -url:v 239.10.10.10:5000 -url:a 239.10.10.10:5000 -f dektec 2110000030
ST2110 DEKTEC DTA-2110 ffmpeg
For more information on Dektec products click L2tek Dektec Products
References:
A special thank you to the team at Digitrol Limited https://digitrol.com for providing the basis for the test pattern script.

