# Ingest UDP mpeg-ts from ffmpeg

**URL:** <https://community.wowza.com/t/ingest-udp-mpeg-ts-from-ffmpeg/94269>\
**Category:** Wowza Streaming Engine\
**Created:** [December 6, 2021, 9:39am UTC](https://community.wowza.com/t/ingest-udp-mpeg-ts-from-ffmpeg/94269 "2021-12-06T09:39:07Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Samson\_Sham](https://avatars.discourse-cdn.com/v4/letter/s/8797f3/32.png) [@Samson\_Sham](https://community.wowza.com/u/Samson_Sham)\
**Post date:** [December 6, 2021, 9:39am UTC](https://community.wowza.com/t/ingest-udp-mpeg-ts-from-ffmpeg/94269/1 "2021-12-06T09:39:07Z")

</div>

Hi there,

I have followed the instructions from [https://www.wowza.com/docs/how-to-publish-and-play-a-live-stream-mpeg-ts-based-encoder](https://www.wowza.com/docs/how-to-publish-and-play-a-live-stream-mpeg-ts-based-encoder)

with my stream file pointing to udp://0.0.0.0:10000

and my FFMPEG commands are as follow:

ffmpeg -re -f lavfi -i testsrc=size=1280x720:rate=30 -c:v libx264 -b:v 1M -preset ultrafast -b:a 128k -c:a libfdk\_aac -s 1280x720 -g 30 -pix\_fmt yuv420p -bsf:v h264\_mp4toannexb -f mpegts udp://127.0.0.1:10000

I have verified the UDP stream output from FFMPEG using

mpv udp://127.0.0.1:10000

we know that FFMPEG is indeed outputting the stream.

However, I have 2 issues:

First being even though I can see the ‘live’ Application I have setup to load the stream file, and saw an incoming stream with udp://0.0.0.0:10000, and further confirmed the traffic Network has 1Mbps “Bits In”, I do not see any “Bits Out”, and I cannot see any streams output, say

curl -i [http://127.0.0.1:1935/live/myStream/playlist.m3u8](http://127.0.0.1:1935/live/myStream/playlist.m3u8)

returns HTTP 404 not found.

Second being I cannot apply a stream file to a custom Application, after I connect the stream file to the custom Application, it said Connect Successful, but I do not see an incoming stream. Maybe the UDP issue aforementioned hindered the addition of stream file perhaps?

Thank you!

---

<div class="post-metadata">

**Author:** ![Connessione](https://avatars.discourse-cdn.com/v4/letter/c/43a26b/32.png) [@Connessione](https://community.wowza.com/u/Connessione)\
**Post date:** [December 7, 2021, 8:29pm UTC](https://community.wowza.com/t/ingest-udp-mpeg-ts-from-ffmpeg/94269/2 "2021-12-07T20:29:54Z")

</div>

Have you tested with other protocols - rtmp/rtsp outputs for publishing to wowza with your ffmpeg command.

---

<div class="post-metadata">

**Author:** ![Samson\_Sham](https://avatars.discourse-cdn.com/v4/letter/s/8797f3/32.png) [@Samson\_Sham](https://community.wowza.com/u/Samson_Sham)\
**Post date:** [December 8, 2021, 4:50am UTC](https://community.wowza.com/t/ingest-udp-mpeg-ts-from-ffmpeg/94269/3 "2021-12-08T04:50:25Z")

</div>

Yes, I have tested with RTMP, and it worked fine with the ffmpeg command with the same setup publishing to wowza. But our target is to use UDP/MPEGTS.

---

<div class="post-metadata">

**Author:** ![Connessione](https://avatars.discourse-cdn.com/v4/letter/c/43a26b/32.png) [@Connessione](https://community.wowza.com/u/Connessione)\
**Post date:** [December 8, 2021, 6:42am UTC](https://community.wowza.com/t/ingest-udp-mpeg-ts-from-ffmpeg/94269/4 "2021-12-08T06:42:06Z")

</div>

There seems to be a [similar post](http://community.wowza.com/t/udp-streaming-to-wowza-with-ffmpeg/39419) in the forum on same topic. Try to see if using your ffmpeg command that way helps.

---

<div class="post-metadata">

**Author:** ![Samson\_Sham](https://avatars.discourse-cdn.com/v4/letter/s/8797f3/32.png) [@Samson\_Sham](https://community.wowza.com/u/Samson_Sham)\
**Post date:** [December 22, 2021, 9:11am UTC](https://community.wowza.com/t/ingest-udp-mpeg-ts-from-ffmpeg/94269/5 "2021-12-22T09:11:47Z")

</div>

Hi @Connessione, thank you for answering. Unfortunately that post doesn’t seem to reconcile my situation.  
I have tried different combinations of framerates & bitrates & resolutions, including his config, all have failed to establish an output stream.

**comment**  
server (200) HTTPStreamerAdapterCupertinoStreamer.onPlaylist: Stream not found [udp/myStream/playlist.m3u8]: myStream **x-vhost:** _defaultVHost_, **x-app:** udp, **x-appinst:** _definst_, **x-duration:** 1838.21

logs stated the stream cannot be found, when we attempted to request a stream (HLS/DASH).  
logs are in following sequence:  
**connect** cupertino (200)  
**create** stream (200)  
**comment** server (200) : Stream not found  
**destroy** stream (200)  
**disconnect** cupertino (200)

However we do see the server continues to add chunks & segments despite of no output stream exists.  
**comment**  
server (200) LiveStreamPacketizerCupertino.endChunkTS[udp/_definst_/mpegts.stream]: Add chunk: id:11 mode:TS[H264,AAC] a/v/k:432/250/10 duration:10000 **x-duration:** 1829740.355

It seems to me that Wowza Streaming Engine doesn’t know how to create a manifest (HLS/DASH) despite having the MPEG-TS segments received.  
Are there any custom settings inside Application/Server we need to enable perhaps?

Thank you in advanced.

---

<div class="post-metadata">

**Author:** ![Connessione](https://avatars.discourse-cdn.com/v4/letter/c/43a26b/32.png) [@Connessione](https://community.wowza.com/u/Connessione)\
**Post date:** [January 13, 2022, 9:51am UTC](https://community.wowza.com/t/ingest-udp-mpeg-ts-from-ffmpeg/94269/6 "2022-01-13T09:51:25Z")

</div>

Hey man I hope you found a lead on your issue. I haven’t had time to go deeper into your issue so far personally.
