FAQ  •  Register  •  Login

RTMP streams that VLC reads but ffmpeg does not

<<

sigma

Serviio newbie

Posts: 7

Joined: Sat Mar 10, 2012 12:51 pm

Location: Lille, France

Post Sat Mar 10, 2012 1:04 pm

RTMP streams that VLC reads but ffmpeg does not

Hi everybody,

I wonder how I could add as "live stream" in Serviio v 0.6.2 with Windows 6.0.6002 an RTMP stream such as rtmp://cp108478.live.edgefcs.net/live/a ... _800@45512. The fact is that, on the same machine in the same network :
- my VLC 2.0.0 manages to open the stream without any problem
- my Serviio version does not

When I try with lib/ffmpeg, I get things like that :
  Code:
 
C:\Program Files\Serviio\lib>ffmpeg -i "rtmp://cp108478.live.edgefcs.net/live/ar
te_fr_1_800@45512"
ffmpeg version 0.9, Copyright (c) 2000-2011 the FFmpeg developers
  built on Dec 13 2011 20:46:11 with gcc 4.4.2
  configuration: --enable-static --disable-shared --disable-ffplay --disable-ffs
erver --enable-memalign-hack --enable-libmp3lame --enable-librtmp --extra-libs='
-lrtmp -lpolarssl -lws2_32 -lwinmm' --arch=x86 --enable-runtime-cpudetect --enab
le-pthreads --target-os=mingw32 --cross-prefix=i686-mingw32- --pkg-config=pkg-co
nfig
  libavutil    51. 32. 0 / 51. 32. 0
  libavcodec   53. 42. 0 / 53. 42. 0
  libavformat  53. 24. 0 / 53. 24. 0
  libavdevice  53.  4. 0 / 53.  4. 0
  libavfilter   2. 53. 0 /  2. 53. 0
  libswscale    2.  1. 0 /  2.  1. 0
HandleCtrl: Ignoring SWFVerification request, use --swfVfy!
Closing connection: NetStream.Play.StreamNotFound
rtmp://cp108478.live.edgefcs.net/live/arte_fr_1_800@45512: Operation not permitted


of course I tried to add --swfVfy in several places, without knowing what I was doing, and it failed.

Does any body have a clever solution to my problem ? I guess I am not familiar enough with rtmp, but I am not sure and still, I did not manage to do anything better on my own or reading other topics of this (great btw) forum.
<<

Illico

User avatar

DLNA master

Posts: 4646

Joined: Fri Jul 23, 2010 8:08 am

Location: France

Post Sat Mar 10, 2012 7:21 pm

Re: RTMP streams that VLC reads but ffmpeg does not

you need rtmp parameters:
app=
swfUrl=
playpath=
swfVfy=
live=
Illico
Sony 2010 KDL-46EX501 | BDP-S373 | SMP-N100 | Windows 8-i7 | Network DD HD-CE1.5TLU2 | Livebox2-UHD86 | ServiiDroid | ServiiGo | BubbleUPnP
Serviio beta tester - Moderator
<<

Illico

User avatar

DLNA master

Posts: 4646

Joined: Fri Jul 23, 2010 8:08 am

Location: France

Post Sat Mar 10, 2012 7:29 pm

Re: RTMP streams that VLC reads but ffmpeg does not

Try this:
ffmpeg.exe -i "rtmp://cp108478.live.edgefcs.net/live/arte_fr_1_800@45512 swfVfy=0 live=1"
Illico
Sony 2010 KDL-46EX501 | BDP-S373 | SMP-N100 | Windows 8-i7 | Network DD HD-CE1.5TLU2 | Livebox2-UHD86 | ServiiDroid | ServiiGo | BubbleUPnP
Serviio beta tester - Moderator
<<

jhb50

DLNA master

Posts: 2843

Joined: Thu Jun 30, 2011 9:32 pm

Post Sat Mar 10, 2012 8:18 pm

Re: RTMP streams that VLC reads but ffmpeg does not

You must include live=1 when adding rtmp livestreams to Serviio. Your link works fine. Since VLC will play it all you need is live=1.
<<

sigma

Serviio newbie

Posts: 7

Joined: Sat Mar 10, 2012 12:51 pm

Location: Lille, France

Post Sun Mar 11, 2012 2:10 pm

Re: RTMP streams that VLC reads but ffmpeg does not

Thank you Illico and jhb50 for your very helpful answers. Indeed, everything works fine now for this stream in Serviio and I am very happy with that.

However, I still have the same problem with streams such as
  Code:
http://live240.impek.com/idf1
: VLC reads them without any problem but Servioo does not and I get with ffmpeg :
  Code:
C:\Program Files\Serviio\lib>ffmpeg -i http://live240.impek.com/idf1
ffmpeg version 0.9, Copyright (c) 2000-2011 the FFmpeg developers
  built on Dec 13 2011 20:46:11 with gcc 4.4.2
  configuration: --enable-static --disable-shared --disable-ffplay --disable-ffs
erver --enable-memalign-hack --enable-libmp3lame --enable-librtmp --extra-libs='
-lrtmp -lpolarssl -lws2_32 -lwinmm' --arch=x86 --enable-runtime-cpudetect --enab
le-pthreads --target-os=mingw32 --cross-prefix=i686-mingw32- --pkg-config=pkg-co
nfig
  libavutil    51. 32. 0 / 51. 32. 0
  libavcodec   53. 42. 0 / 53. 42. 0
  libavformat  53. 24. 0 / 53. 24. 0
  libavdevice  53.  4. 0 / 53.  4. 0
  libavfilter   2. 53. 0 /  2. 53. 0
  libswscale    2.  1. 0 /  2.  1. 0
http://live240.impek.com/idf1 : Invalid data found when processing input



Does any of you have any other tip for this stream ?
<<

sigma

Serviio newbie

Posts: 7

Joined: Sat Mar 10, 2012 12:51 pm

Location: Lille, France

Post Sun Mar 11, 2012 2:43 pm

Re: RTMP streams that VLC reads but ffmpeg does not

<<

jhb50

DLNA master

Posts: 2843

Joined: Thu Jun 30, 2011 9:32 pm

Post Sun Mar 11, 2012 4:42 pm

Re: RTMP streams that VLC reads but ffmpeg does not

These are invalid links:

ffmpeg -i http://www.mon-ludo.fr/appftv/akamai/to ... uzouswebtv
ffmpeg -i rtsp://video.cpac.ca/ - VLC cannot open either


These play fine with the following changes.. note ffmpeg requires mmst or mmsh instead of mms:

ffmpeg -i mmsh://live240.impek.com/idf1

ffmpeg -i mmst://91.121.2.60/calaistv
ffmpeg -i mmst://live240.impek.com/brtv
ffmpeg -i mmst://soleiltv.impek.tv/soleiltv
ffmpeg -i mmst://www.diffusepro.com/liveteleplaiz
ffmpeg -i "rtmp://fms.105.net:1935/live/105Test1 live=1"
ffmpeg -i mmst://wmp.zonepro.com/canal3monde - only right channel audio on VLC and ffmpeg
ffmpeg -i rtsp://stream2.canal.qc.ca/enondes_haut_debit
ffmpeg -i mmsh://str42.streamakaci.com/wmlc2
ffmpeg -i "rtmp://cp87869.live.edgefcs.net:80/live/uk_300@21008 live=1"
ffmpeg -i mmsh://194.158.91.91/Atv
ffmpeg -i mmst://195.90.118.93:1755/uke_6?TID=9aa ... gType=live
ffmpeg -i mmst://webtv-bb.de/CampusTV
ffmpeg -i mmst://80.246.121.90/ctv
ffmpeg -i mmst://webtv-bb.de/KW-TV
ffmpeg -i mmst://stream01.massive-mag.tv/massivemag_mq
ffmpeg -i mmst://stream.vrf.de/VRF

This is a strange one but will play: see notes:

ffmpeg -i mmst://www.mediaserver.stimme-der-hoffnung.de/hce
-Takes 2 minutes to start and there is no audio with either VLC or ffmpeg.
= VLC plays stream 1 and ffmpeg plays stream 2
  Code:
Input #0, asf, from 'mmst://www.mediaserver.stimme-der-hoffnung.de:1755/hce/':
  Metadata:
    title           : Hope Channel Europe
    artist          : Stimme der Hoffnung
    copyright       : ATN
    WMFSDKVersion   : 9.00.00.2980
    WMFSDKNeeded    : 0.0.0.0000
    IsVBR           : 0
  Duration: N/A, start: 2839308.875000, bitrate: 411 kb/s
    Stream #0:0(ger): Audio: wmav2 (a[1][0][0] / 0x0161), 48000 Hz, 2 channels,
s16, 64 kb/s
    Stream #0:1(ger): Video: wmv3 (Main) (WMV3 / 0x33564D57), yuv420p, 320x240,
200 kb/s, 1k tbr, 1k tbn, 1k tbc
    Stream #0:2(ger): Video: wmv3 (Main) (WMV3 / 0x33564D57), yuv420p, 160x120,
95 kb/s, 1k tbr, 1k tbn, 1k tbc
    Stream #0:3(ger): Audio: wmav2 (a[1][0][0] / 0x0161), 32000 Hz, 2 channels,
s16, 32 kb/s
    Stream #0:4(ger): Video: wmv3 (Main) (WMV3 / 0x33564D57), yuv420p, 160x120,
20 kb/s, 1k tbr, 1k tbn, 1k tbc
<<

Illico

User avatar

DLNA master

Posts: 4646

Joined: Fri Jul 23, 2010 8:08 am

Location: France

Post Mon Mar 12, 2012 8:37 am

Re: RTMP streams that VLC reads but ffmpeg does not

sigma wrote:
  Code:
C:\Program Files\Serviio\lib>ffmpeg -i http://live240.impek.com/idf1


If you look at this link content, you will find this :
http://live240.impek.com/idf1.asx
  Code:
[Reference]
Ref1=http://live240.impek.com/idf1?MSWMExt=.asf
Ref2=http://188.165.97.210:80/idf1?MSWMExt=.asf


So try with this :
http://live240.impek.com/idf1?MSWMExt=.asf
Illico
Sony 2010 KDL-46EX501 | BDP-S373 | SMP-N100 | Windows 8-i7 | Network DD HD-CE1.5TLU2 | Livebox2-UHD86 | ServiiDroid | ServiiGo | BubbleUPnP
Serviio beta tester - Moderator
<<

sigma

Serviio newbie

Posts: 7

Joined: Sat Mar 10, 2012 12:51 pm

Location: Lille, France

Post Mon Mar 12, 2012 9:48 am

Re: RTMP streams that VLC reads but ffmpeg does not

Allright, Illico.

Everything works fine now.

Thanks a lot.
<<

jhb50

DLNA master

Posts: 2843

Joined: Thu Jun 30, 2011 9:32 pm

Post Mon Mar 12, 2012 2:43 pm

Re: RTMP streams that VLC reads but ffmpeg does not

sigma wrote:Allright, Illico.

Everything works fine now.

Thanks a lot.

Huh? http://live240.impek.com/idf1?MSWMExt=.asf works fine?

  Code:
C:\>ffmpeg -i http://live240.impek.com/idf1?MSWMExt=.asf
ffmpeg version N-33591-gf884ef0, Copyright (c) 2000-2011 the FFmpeg developers
  built on Oct 13 2011 02:23:02 with gcc 4.6.1
  configuration: --enable-gpl --enable-version3 --enable-runtime-cpudetect --ena
ble-avisynth --enable-bzlib --enable-frei0r --enable-libopencore-amrnb --enable-
libopencore-amrwb --enable-libfreetype --enable-libgsm --enable-libmp3lame --ena
ble-libopenjpeg --enable-librtmp --enable-libschroedinger --enable-libspeex --en
able-libtheora --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis
--enable-libvpx --enable-libx264 --enable-libxavs --enable-libxvid --enable-zlib

  libavutil    51. 21. 0 / 51. 21. 0
  libavcodec   53. 20. 1 / 53. 20. 1
  libavformat  53. 15. 0 / 53. 15. 0
  libavdevice  53.  4. 0 / 53.  4. 0
  libavfilter   2. 43. 6 /  2. 43. 6
  libswscale    2.  1. 0 /  2.  1. 0
  libpostproc  51.  2. 0 / 51.  2. 0
http://live240.impek.com/idf1?MSWMExt=.asf: Invalid data found when processing i
nput
<<

MasterT

Serviio newbie

Posts: 5

Joined: Fri Mar 09, 2012 10:29 am

Post Sun Mar 25, 2012 9:36 am

Re: RTMP streams that VLC reads but ffmpeg does not

I'm trying to play this stream: rtmp://cdn.speranta.eu/live
it's not working and it gives an error.

Can anyone help me with this?
Attachments
stream error.jpg
stream error.jpg (118.64 KiB) Viewed 12670 times
<<

jhb50

DLNA master

Posts: 2843

Joined: Thu Jun 30, 2011 9:32 pm

Post Sun Mar 25, 2012 6:40 pm

Re: RTMP streams that VLC reads but ffmpeg does not

It is not a complete rtmp url. Rtmp needs additional parameters that you need to sniff the source for.
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17212

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Sun Mar 25, 2012 7:09 pm

Re: RTMP streams that VLC reads but ffmpeg does not

jhb50 wrote: Rtmp needs additional parameters that you need to sniff the source for.

Not necessarily, but it might well be this case.
<<

jhb50

DLNA master

Posts: 2843

Joined: Thu Jun 30, 2011 9:32 pm

Post Sun Mar 25, 2012 8:54 pm

Re: RTMP streams that VLC reads but ffmpeg does not

He needs playpath parameters following live. Any RTMP is incomplete and will not work without them. I think you were refering to the ability to have a single term rtmp command without separate parameter terms and yes you can but you need the playpath parameter value appended to the single term.

Return to Serviio Support & Help

Who is online

Users browsing this forum: No registered users and 41 guests

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