D
D
drew2013-07-12 06:25:09
fmpeg
drew, 2013-07-12 06:25:09

Ffserver - broadcasting a multicast stream to the Network (Android, iOS, Flash)?

I create a live broadcast of IPTV channels to the Web in various .webm, .flv, .m3u8 formats at once using FFServer and FFMpeg.
ffserver.conf is located at pastebin.com/hUky5Jsh
I stream to FFServer like this:

ffmpeg -i udp://239.192.192.1:1234 -s 560x320 http://localhost:8090/feed.ffm

The FFServer logs show this:
Fri Jul 12 11:39:50 2013 127.0.0.1 - - New connection: GET /feed.ffm
Fri Jul 12 11:39:50 2013 127.0.0.1 - - [GET] "/feed.ffm HTTP/1.1" 200 4175
Fri Jul 12 11:39:50 2013 127.0.0.1 - - New connection: POST /feed.ffm
Fri Jul 12 11:39:50 2013 Feed '/tmp/feed.ffm' stream number does not match registered feed
Fri Jul 12 11:39:50 2013 127.0.0.1 - - [POST] "/feed.ffm HTTP/1.1" 200 4096

Hours of googling came up with nothing. If you disable <Stream test.mp4>, then the broadcast goes to both Flash and WebM. But now the task is to send feed.ffm to iOS in HLS as well.
There are pieces of solutions for certain formats on the Web, but nowhere is there a single one.
FFServer version:
ffserver version N-37738-g15cee5e Copyright © 2000-2013 the FFmpeg developers
built on Jul 11 ​​2013 17:01:41 with gcc 4.7 (Ubuntu/Linaro 4.7.3-1ubuntu1)
configuration: --prefix=/root/ ffmpeg_build --extra-cflags=-I/root/ffmpeg_build/include --extra-ldflags=-L/root/ffmpeg_build/lib --bindir=/root/bin --extra-libs=-ldl --enable-gpl --enable-libass --enable-libfdk-aac --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-nonfree
FFMpeg version:
ffmpeg version N-37738-g15cee5e Copyright © 2000-2013 the FFmpeg developers
built on Jul 11 ​​2013 17:01:41 with gcc 4.7 (Ubuntu/Linaro 4.7.3-1ubuntu1)
configuration: --prefix=/root/ ffmpeg_build --extra-cflags=-I/root/ffmpeg_build/include --extra-ldflags=-L/root/ffmpeg_build/lib --bindir=/root/bin --extra-libs=-ldl --enable-gpl --enable-libass --enable-libfdk-aac --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-nonfree
Stream options- source:
Input #0, mpegts, from 'udp://239.192.192.1:1234':
Duration: N/A, start: 80091.027433, bitrate: 192 kb/s
Program 702
Stream #0:0[0x322]: Video: mpeg2video (Main) ([2][0][0][0] / 0x0002), yuv420p, 544x576 [SAR 32:17 DAR 16:9], 25 fps, 25 tbr, 90k tbn, 50 tbc
Stream #0:1[0x386](rus): Audio: mp2 ([4][0][0][0] / 0x0004), 48000 Hz, stereo, s16p, 192 kb/s

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
ptQa, 2013-11-29
@ptQa

Firstly, the m3u8 format is not even specified in the config for ffserver. Secondly, where does the information come from that ffserver can divide the stream into HLS segments? In my opinion, you need to cut it into segments with ffmpeg, and give the m3u8 file to the web server. Here is a command how to do it with ffmpeg.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question