Is rtmp streaming with MPlayer working for you ?
  • Just looking around
    zzd10h
    Posts: 20 from 2012/1/10
    Hello,
    I'm trying to stream some videos (rtmp protocol) with MPlayer but it doesn't work :-(

    Is someone succeed to watch rtmp stream video on morphos ?

    Following are my test on my MOS 2.7 Mac Mini 1.5ghz (the same symptom on my peg2)

    -rtmpdump program from fab ( http://fabportnawak.free.fr/misc/rtmpdump.lha )
    -mplayer from fab ( http://fabportnawak.free.fr/mplayer/MPlayer-1.0-svn-2011.12.06.lha )

    1) Attempt to stream a mp4 video (rtmp) :

    rtmpdump -r "rtmp://vod-fms.canalplus.fr/ondemand/videos/1203/BREF_EPISODES_120328_CAN_249936_video_H.mp4" --quiet | "mplayer" -cache 8192 -

    I got =

    MPlayer SVN-r34400-4.4.4 (C) 2000-2011 MPlayer Team

    Playing -.
    Reading from stdin...

    and it failed with
    Illegal Instruction "Background CLI [ mplayer ]"
    68k Exception in Task

    2) Nevertheless when I use rtmpdump to download a video, it works
    rtmpdump -r "rtmp://vod-fms.canalplus.fr/ondemand/videos/1203/BREF_EPISODES_120328_CAN_249936_video_H.mp4" -o test.mp4

    => OK

    Is someone can test the first command, please, and send me the result ?

    To note that
    -the stream with http protocol works well
    -on AOS4.1.4, the first command (rtmp stream) is working well.

    Thanks by advance for your reply

    zzd10h

    [ Edité par zzd10h 15.04.2012 - 09:31 ]

    [ Edité par zzd10h 15.04.2012 - 10:13 ]
  • »15.04.12 - 10:30
    Profile
  • Order of the Butterfly
    Order of the Butterfly
    dake
    Posts: 204 from 2007/9/14
    From: The building p...
    You can play the link rtmp://vod-fms.canalplus.fr/ondemand/videos/1203/BREF_EPISODES_120328_CAN_249936_video_H.mp4 directly in mplayer, you don't need to use rtmpdump for this, mplayer handle this protocol internally.
  • »15.04.12 - 11:48
    Profile
  • Just looking around
    zzd10h
    Posts: 20 from 2012/1/10
    Thanks,
    but I tried

    mplayer -cache 8192 rtmp://vod-fms.canalplus.fr/ondemand/videos/1203/BREF_EPISODES_120328_CAN_249936_video_H.mp4

    MPlayer SVN-r34400-4.4.4 (C) 2000-2011 MPlayer Team

    Playing rtmp://vod-fms.canalplus.fr/ondemand/videos/1203/BREF_EPISODES_120328_CAN_249936_video_H.mp4.
    Using network protocols without global network initialization. Please use avformat_network_init(), this will become mandatory later.

    It failed with a requester window asking to insert volume rtmp.

    Is this command work for you ?
  • »15.04.12 - 14:28
    Profile
  • Order of the Butterfly
    Order of the Butterfly
    dake
    Posts: 204 from 2007/9/14
    From: The building p...
    I'm using MPlayer SVN-r34310-4.4.4 and it works fine with this version. However I tried the version you linked to and it doesn't work for me either.
    So I suggest you to download the older MPlayer SVN-r34310-4.4.4 if you wan't to play rtmp streams, until Fab fixed this.
  • »15.04.12 - 16:45
    Profile
  • Just looking around
    zzd10h
    Posts: 20 from 2012/1/10
    Thank you, Dake,
    I just tried the r34310 from fab website. It's true that it works but it's very very slow (on my mini or peg2) comparing to rtmpdump and mplayer on AOS4.

    with this version, rtmpdump don't work better :(

    Therefore, please, is somebody can try rtmpdump and send me his result ?

    thank by advance
    zzd10h
  • »15.04.12 - 19:25
    Profile
  • Order of the Butterfly
    Order of the Butterfly
    dake
    Posts: 204 from 2007/9/14
    From: The building p...
    rtmpdump -r "rtmp://vod-fms.canalplus.fr/ondemand/videos/1203/BREF_EPISODES_120328_CAN_249936_video_H.mp4" --quiet | "mplayer" -cache 8192 -

    The minus sign at the end is causing the crash for you.
    When I use the link directly in MPlayer it plays at full speed with very small cpu usage.
  • »15.04.12 - 20:15
    Profile
  • Just looking around
    zzd10h
    Posts: 20 from 2012/1/10
    Therefore, the rtmpdump command works well for you for this stream ???

    My internet connection is perhaps too slow to handle rtmp stream directly with mplayer but on AOS with rtmpdump/mplayer the stream have a very good troughput

    I tried with or without the last '-', no luck
    but without '-' mplayer comlains that the command is not correct ("Usage: mplayer ...")

    For the first time, I delete the --quiet option and I see that the 2 commands end with "Failed writing, exiting" ???

    1) without last "-"
    MOS:> rtmpdump -r "rtmp://vod-fms.canalplus.fr/ondemand/videos/1203/BREF_EPISODES_120328_CAN_249936_video_H.mp4" | "mplayer" -cache 8192
    RTMPDump v2.2b
    (c) 2010 Andrej Stepanchuk, Howard Chu, The Flvstreamer Team; license: GPL
    WARNING: You haven't specified an output file (-o filename), using stdout
    Connecting ...
    MPlayer SVN-r34310-4.4.4 (C) 2000-2011 MPlayer Team
    Usage: mplayer [options] [url|path/]filename

    Basic options: (complete list in the man page)
    -vo <drv> select video output driver ('-vo help' for a list)
    -ao <drv> select audio output driver ('-ao help' for a list)
    dvd://<titleno> play DVD title from device instead of plain file
    ...
    * * * SEE THE MAN PAGE FOR DETAILS, FURTHER (ADVANCED) OPTIONS AND KEYS * * *

    MOS:> INFO: Connected...
    Starting download at: -0.001 kB
    INFO: Metadata:
    INFO: duration 140.01
    ...
    ERROR: Download: Failed writing, exiting!

    2) with last "-"
    MOS:> rtmpdump -r "rtmp://vod-fms.canalplus.fr/ondemand/videos/1203/BREF_EPISODES_120328_CAN_249936_video_H.mp4" | "mplayer" -cache 8192 -
    RTMPDump v2.2b
    (c) 2010 Andrej Stepanchuk, Howard Chu, The Flvstreamer Team; license: GPL
    WARNING: You haven't specified an output file (-o filename), using stdout
    Connecting ...
    MPlayer SVN-r34310-4.4.4 (C) 2000-2011 MPlayer Team

    Playing -.
    Reading from stdin...
    INFO: Connected...
    Starting download at: -0.001 kB
    INFO: Metadata:
    INFO: duration 140.01
    ...
    ERROR: Download: Failed writing, exiting!


    Thank for your help, I'm building a rxMUI interface to read rtmp streams, and I wanted to make it compatible MorphOS / AmigaOS.
    But I only have problem on the MOS side with rtmp stream :(
  • »15.04.12 - 21:13
    Profile
  • Fab
  • MorphOS Developer
    Fab
    Posts: 1331 from 2003/6/16
    He means playing it directly from mplayer works (r33310, since they seem to have broken it in r34400 ).

    As for the pipe from rtmpdump, it won't, since stdin fails for some reason. But i already answered you on the other forum, anyway. :)

    I'll look at both issues when i update MPlayer to current code.
  • »15.04.12 - 22:35
    Profile Visit Website
  • Just looking around
    zzd10h
    Posts: 20 from 2012/1/10
    Bonjour Fab,
    On meta-morphos, I didn't have a clear response at the question "is rtmpdump work for somebody ?",
    therefore I try here too ;)

    "As for the pipe from rtmpdump, it won't, since stdin fails for some reason", I have my response, I didn't have understand that on meta-morphos.

    Thanks a lot Dake and Fab


    [ Edité par zzd10h 15.04.2012 - 22:03 ]
  • »15.04.12 - 23:00
    Profile
  • Fab
  • MorphOS Developer
    Fab
    Posts: 1331 from 2003/6/16
    In fact, reading from stdin works, as long as cache is not enabled, to be exact. Else it's considered as a network stream and fails for that reason.

    Regarding rtmpdump it works, but your canal+ source seems to be down quite often, so it's hard to test...
  • »16.04.12 - 01:43
    Profile Visit Website