Results 1 to 16 of 16

Thread: Play RTMP in libvlc (video in QWidget)

  1. #1
    Join Date
    Jan 2014
    Posts
    10
    Qt products
    Qt5
    Platforms
    Windows

    Default Play RTMP in libvlc (video in QWidget)

    Hi guys,
    I write program (QT 5.1) which will be play RTMP in libvlc. I don't know how i can to do. I always used rtmpdump for example (rtmpdump -r rtmp://94.102.63.23:443/share/gc-h2kmq -f WIN 11,9,900,152 -p http://www.sharecast.to ). But how I can play this link in libvlc? Can u help me? I read about librtmp, but I dont know where I can download this library for Windows. Video from hard disk is normally played in QWidget.

  2. #2
    Join Date
    Jan 2014
    Posts
    10
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: Play RTMP in libvlc (video in QWidget)

    Any idea?

  3. #3
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,368
    Thanks
    3
    Thanked 5,017 Times in 4,793 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Play RTMP in libvlc (video in QWidget)

    Why are you asking here and not on some libvlc forum?
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  4. #4
    Join Date
    Jan 2014
    Posts
    10
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: Play RTMP in libvlc (video in QWidget)

    I asked but unanswered. Ok can u help with rtmpdump? I found source code http://pigeonsnest.co.uk/stuff/rtmp/rtmpdump/index.html but when i compile rtmpdump.cpp in QT 5.1 show me 131 problems for example "D:\Qt\Qt5.1.1\Tools\QtCreator\bin\nienazwany4\mai n.cpp:123: błąd:undefined reference to `RTMP_LIB::RTMPPacket::RTMPPacket()'" or "D:\Qt\Qt5.1.1\Tools\QtCreator\bin\nienazwany4\mai n.cpp:138: błąd:undefined reference to `Log(int, char const*, ...)'"
    Can u help me compile rtmpdump.cpp ?

  5. #5
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,368
    Thanks
    3
    Thanked 5,017 Times in 4,793 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Play RTMP in libvlc (video in QWidget)

    I suggest that you try to tell us what exactly you are trying to do as I think you are trying to pry open doors that are already open.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  6. #6
    Join Date
    Jan 2014
    Posts
    10
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: Play RTMP in libvlc (video in QWidget)

    What you mean?

  7. #7
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,368
    Thanks
    3
    Thanked 5,017 Times in 4,793 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Play RTMP in libvlc (video in QWidget)

    I mean tell us why you want to use rtmpdump.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  8. #8
    Join Date
    Jan 2014
    Posts
    10
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: Play RTMP in libvlc (video in QWidget)

    I want use rtmpdump to playbacks stream in my program (exactly in QWidget). RTMPdump.exe is separate program. I run it from my program:
    Qt Code:
    1. QProcess* process = new QProcess();
    2. QString program = "rtmpdump -r rtmp://94.102.63.23:443/share/gc-h2kmq -f WIN 11,9,900,152 -p http://www.sharecast.to -o stream.flv";
    3. process->setProcessChannelMode(QProcess::MergedChannels);
    4. process->start(program);
    To copy to clipboard, switch view to plain text mode 
    It works but rtmpdump.exe output directs the stream to file "stream.flv". I wanna use RTMPdump.exe output directs to my program, but i don't know Can I do that. My program is run when i open RTMPdump.exe by QProcess... How I can direct rtmpdump.exe output to running my program?
    Maybe u know how compile rtmpdump.cpp then will be easier...

  9. #9
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,368
    Thanks
    3
    Thanked 5,017 Times in 4,793 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Play RTMP in libvlc (video in QWidget)

    If you have a tool that doesn't do what you want then why use it? Wikipedia claims you should rather use librtmp (http://rtmpdump.mplayerhq.hu/librtmp.3.html)
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  10. #10
    Join Date
    Jan 2014
    Posts
    10
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: Play RTMP in libvlc (video in QWidget)

    Where Can I get librtmp which will be work and compile in QT 5.1? I had 3 version and none compile in QT :/

  11. #11
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,368
    Thanks
    3
    Thanked 5,017 Times in 4,793 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Play RTMP in libvlc (video in QWidget)

    Quote Originally Posted by braders2 View Post
    Where Can I get librtmp which will be work and compile in QT 5.1? I had 3 version and none compile in QT :/
    You don't compile it "in QT", you compile it like any other C library with your compiler.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  12. #12
    Join Date
    Jan 2014
    Posts
    10
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: Play RTMP in libvlc (video in QWidget)

    Can u tell me where I can download correctly LIBRTMP and how compile it (MinGW)? And next how use compiled LIBRTMP in QT?

  13. #13
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,368
    Thanks
    3
    Thanked 5,017 Times in 4,793 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Play RTMP in libvlc (video in QWidget)

    Quote Originally Posted by braders2 View Post
    Can u tell me where I can download correctly LIBRTMP and how compile it (MinGW)? And next how use compiled LIBRTMP in QT?
    librtmp is part of rtmpdump. The archive has a README file which contains information how to build the package. This has nothing to do with Qt.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  14. #14
    Join Date
    Jan 2014
    Posts
    10
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: Play RTMP in libvlc (video in QWidget)

    It is QT project use librtmp library made by Vladimir Lushpenko when I Debug and Build show me a lot of errors, I can't Build this project. Can u tell me step by step how Build this project?
    Qt Code:
    1. https://bitbucket.org/vladimir_lushpenko/qt-librtmp/get/969f7f744ff7.zip
    To copy to clipboard, switch view to plain text mode 

  15. #15
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: Play RTMP in libvlc (video in QWidget)

    1. Unzip archive
    2. Open PRO file in Qt Creator
    3. Build
    4. Find the first error (not warning) message and think about it.
    5. I guess your first error is related to OpenSSL (I have to guess you haven't told us). It is fairly obvious that librtmp requires OpenSSL headers and libraries to build.
    6. Download and install OpenSSL for Windows: http://slproweb.com/products/Win32OpenSSL.html
    7. Adapt the PRO file INCLUDEPATH and LIBS variables so the compiler can find the includes and libs respectively: Declaring Other Libraries
    8. Go to step 3


    Search here before you come back and ask about step 7.

  16. #16
    Join Date
    Jan 2014
    Posts
    10
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: Play RTMP in libvlc (video in QWidget)

    Thank u very much for advice i builded this project

Similar Threads

  1. I cannot play a video using phonon
    By armin1359 in forum Newbie
    Replies: 0
    Last Post: 15th August 2013, 06:22
  2. Replies: 19
    Last Post: 13th May 2013, 11:17
  3. QT 4.7 example for Video file play
    By Shashi Bhushan in forum Qt Programming
    Replies: 1
    Last Post: 16th November 2011, 17:32
  4. play a video from youtube
    By graciano in forum Qt Programming
    Replies: 2
    Last Post: 13th July 2011, 07:17
  5. Replies: 1
    Last Post: 3rd March 2011, 11:41

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.