Page 1 of 1

Using FFMPEG live stream

PostPosted: Tue Oct 28, 2014 9:28 am
by ppetrov
Hello,

I'm working on an application generating live stream, which hast to be rendered on a Smart TV.

As FFMPEG cannoct act as DLNA server, the solution as I see it is to setup a FFSERVER stream, and use a link to it as Source URL when configuring SERVIIO Live stream. In my case, the FFSERVER stream configuration is:
  Code:
<Stream rtmp1.webm>
   Format rtp
   Feed rtmp1.ffm
   MulticastAddress 225.1.1.12
   MulticastPort 5000
   MulticastTTL 16
   NoLoop

   VideoCodec libvpx
   VideoFrameRate 25
   VideoBitRate 400
   VideoSize 384x224
   AVOptionVideo default
   AVOptionVideo main
   AVOptionVideo flags +global_header

   AudioCodec vorbis
   AudioBitRate 48
   AudioChannels 1
   AudioSampleRate 44100
   AVOptionAudio flags +global_header
</Stream>


And the path set as SERVIIO Source URL is:
  Code:
rtsp://225.1.1.12:5000/rtmp1.webm


Unfortunatelly, pressing <Check stream URL> causes the red cross to appear --- error. The FFSERVER reacts, it dums the next line to its console:
  Code:
Tue Oct 28 10:59:51 2014 192.168.2.16 - - [OPTIONS] " " 200 0

This means at least, that both systems communicate - but obviously something is wrong: the SERVIIO source URL or the FFMPEG configuration.

Has someone already succeeded to use FFMPEG stream as source for SEVIIO?

Regards,
Plamen

Re: Using FFMPEG live stream

PostPosted: Tue Oct 28, 2014 1:04 pm
by jhb50
try ffplay -i rtsp://225.1.1.12:5000/rtmp1.webm to ensure the stream exists.

Re: Using FFMPEG live stream

PostPosted: Wed Oct 29, 2014 7:25 pm
by ppetrov
jhb50 wrote:try ffplay -i rtsp://225.1.1.12:5000/rtmp1.webm to ensure the stream exists.


The stream doesn't work, the error message is:
  Code:
rtsp://192.168.2.16:8090/rtmp1.webm: Invalid data found when processing input


I have posted to the FFMPEG forum too, no answer so far. The topick is interesting, I believe that someone uses FFMPEG with DLNA server, SERVIIO too, for streaming directly to TV. Hope that someone answers!

Regards,
Plamen

Re: Using FFMPEG live stream

PostPosted: Sat Nov 01, 2014 5:36 pm
by zip
Serviio might reject /ignore the OPTION request.

Re: Using FFMPEG live stream

PostPosted: Sat Nov 01, 2014 6:23 pm
by ppetrov
zip wrote:Serviio might reject /ignore the OPTION request.

In this case, it won't work at all. Isn't FFMPEG tested as stream source for SERVIIO yet?

Re: Using FFMPEG live stream

PostPosted: Sat Nov 01, 2014 9:42 pm
by jhb50
rtsp://192.168.2.16:8090/rtmp1.webm: Invalid data found when processing input

That tells me your stream does not exist or is an invalid format.

Re: Using FFMPEG live stream

PostPosted: Mon Nov 03, 2014 9:48 am
by ppetrov
jhb50 wrote:
rtsp://192.168.2.16:8090/rtmp1.webm: Invalid data found when processing input

That tells me your stream does not exist or is an invalid format.


This is what I've posted to the FFMPEG forum. My last post there describes the tests by a RTMP ffserver stream. FFPLAY connects to it, but it hangs.

By now I'm a little bit desperated about this idea - since the FFMPEG experts cannot help, it could be that this case isn#t tested by now. I can't believe it, but since I can't find any info into the Internet...

Regards,