[FFmpeg-devel] Request for help with decoding an mpeg2ts stream into a Unity app

Hanuma Teja Maddali teja.maddali at headwallvr.com
Tue Mar 4 01:08:43 EET 2025


Hello,

We're looking for someone who can help with creating a Unity package for
decoding streaming video into Unity with minimal lag. From some googling,
we've found a good set of ffmpeg and ffplay arguments to stream an mpeg2-ts
udp stream with low latency on a windows desktop.
ffplay -hwaccel cuda -fflags nobuffer -flags low_delay -probesize 32
-analyzeduration 0 -strict experimental -framedrop -f mpegts -vf setpts=0
-i udp://@255.255.255.255:xxxx . However, we weren't able to find a way to
decode, and render this stream to a texture on a gameobject in our Unity
project.
We couldn't find many helpful community links for this purpose. The ones
that we did find were focussing on screen recording and encoding Unity
scenes into video or streaming a unity scene rather than decoding a stream
into a Unity scene. We've also already tried the vlc csharp package for
Unity but are unable to get the same low-latency performance as with
ffplay. Any help on this would be great!

Thanks!


More information about the ffmpeg-devel mailing list