FAQ  •  Register  •  Login

Using FFMPEG live stream

<<

ppetrov

Serviio newbie

Posts: 4

Joined: Tue Oct 28, 2014 9:14 am

Post Tue Oct 28, 2014 9:28 am

Using FFMPEG live stream

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
<<

jhb50

DLNA master

Posts: 2843

Joined: Thu Jun 30, 2011 9:32 pm

Post Tue Oct 28, 2014 1:04 pm

Re: Using FFMPEG live stream

try ffplay -i rtsp://225.1.1.12:5000/rtmp1.webm to ensure the stream exists.
<<

ppetrov

Serviio newbie

Posts: 4

Joined: Tue Oct 28, 2014 9:14 am

Post Wed Oct 29, 2014 7:25 pm

Re: Using FFMPEG live stream

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
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17215

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Sat Nov 01, 2014 5:36 pm

Re: Using FFMPEG live stream

Serviio might reject /ignore the OPTION request.
<<

ppetrov

Serviio newbie

Posts: 4

Joined: Tue Oct 28, 2014 9:14 am

Post Sat Nov 01, 2014 6:23 pm

Re: Using FFMPEG live stream

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?
<<

jhb50

DLNA master

Posts: 2843

Joined: Thu Jun 30, 2011 9:32 pm

Post Sat Nov 01, 2014 9:42 pm

Re: Using FFMPEG live stream

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.
<<

ppetrov

Serviio newbie

Posts: 4

Joined: Tue Oct 28, 2014 9:14 am

Post Mon Nov 03, 2014 9:48 am

Re: Using FFMPEG live stream

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,

Return to Serviio Support & Help

Who is online

Users browsing this forum: No registered users and 45 guests

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.