Results 1 to 6 of 6

Thread: Problems with VLC and Wowza

  1. #1
    Join Date
    Jun 2014
    Posts
    3

    Default Problems with VLC and Wowza

    Hi, I'm trying to learn how to use Wowza, been doing fine with VOD, but I'm having problems running live streams. To diagnose the problem, I've started Wowza through the command line.

    I'm using VLC to simulate a live stream, but it's not reaching the server, I don't see any connections attempts on the server's command line.

    I copied the default live application in a new live-2 app and disabled security for incoming streams for testing purposes. The VLC command that I'm using is this:

    vlc -vvv "C:\sample.mp4" :sout=#rtp{sdp=rtsp://192.168.0.7:1935/} :sout-keep

    VLC opens the file, and says its streaming, but nothing reaches the server. Any help would be highly appreciated!

    Thanks

    Patricio

    PS: I also tried other commands, like this
    vlc -vvv "C:\sample.mp4" :sout=#rtp{sdp=rtsp://192.168.0.7:1935/live-2/} :sout-keep
    And from documentation examples here http://www.wowza.com/forums/content....rver-(MPEG-TS) (but I won't even stream, the docs are outdated, 2010, and for Wowza 2.x)
    vlc -vvv input_stream --sout '#rtp{dst=192.168.0.7,port=1935,file:///C:/sample.mp4}'

  2. #2

    Default

    Hello Patricio, and welcome to the Wowza forum.

    If you start Wowza in stand alone mode[install-dir]/bin/startup.bat you will see the output in the console. Do you see any indication of the problem when viewing this output?

    If you see 4:
    INFO server comment - RTPUDPTransport.bind
    INFO server comment - RTPUDPTransport.bind
    INFO server comment - RTPUDPTransport.bind
    INFO server comment - RTPUDPTransport.bind

    Followed by 4:
    INFO server comment - RTPUDPTransport.unbind
    INFO server comment - RTPUDPTransport.unbind
    INFO server comment - RTPUDPTransport.unbind
    INFO server comment - RTPUDPTransport.unbind

    In the logs, this would indicate that UDP ports are not open.
    This troubleshooting guide may help to sort this out:
    How to troubleshoot RTSP/RTP playback

    Please let us know if you need any other assistance in the future.

    Salvadore

  3. #3
    Join Date
    Jun 2014
    Posts
    3

    Default

    Hello Salvadore, thanks for the welcome and the quick reply!

    Ports are open, everything from the server side looks ok as far as I can tell

    INFO vhost comment _defaultVHost_ Bind attempt ([any]:1935:16)
    INFO vhost comment _defaultVHost_ Bind successful ([any]:1935)
    INFO vhost comment _defaultVHost_ Bind attempt ([any]:8086:4)
    INFO vhost comment _defaultVHost_ Bind successful ([any]:8086)
    INFO server comment - Server.startShutdownHook: Start server shutdown hook
    INFO server comment - StatsManager:startManager() Enabled=true
    INFO server comment - Wowza Streaming Engine is started!
    After that last "Engine is started" I get nothing, no matter what different commands I try to use in VLC (even through the GUI).

    Patricio

  4. #4

    Default

    This article is still relevant and includes instructions for using VLC player to publish a stream.
    How to use VLC as a live stream encoder with Wowza Media Server (MPEG-TS)

    The MPEG-TS-based-encoder article should help you create a .stream file to pull the stream in. Hope this helps clear things up.

    Salvadore

  5. #5
    Join Date
    Jun 2014
    Posts
    3

    Default

    Thanks Salvadore, I'll look into it! As I couldn't make VLC work, I started using FFMPEG, so far everything is working ok with it, without any changes to the server config, so at least I know that there is something wrong with VLC and not Wowza.

    Now I'm fighting a little bit with adaptive bitrate, its working but I don't know how well, I have to see how can I get detailed information on the client to see how it changes streams, etc.

    Thanks again for all the help!

    Patricio

  6. #6

    Default

    Hi Patricio,

    A few things, make sure you have the latest version of VLC installed.
    Adaptive bitrate streaming is not supported over RTSP.

    For ABR to work correctly, all renditions of the stream must be keyframe aligned. You can use this guide to make sure this is the case:
    How to debug encoder multi-bitrate key frame alignment

    You can use FFMPEG to encode the renditions for proper keyframe alignment. However, using ffmpeg has been known to be problematic and unreliable.
    I did come across a forum contribution that showed a successful approach for generating keyframe aligned multi-bitrate rendition for VOD with ffmpeg by doing multiple passes. This was done on Linux and I have not tested. It may not work on other platforms.
    ffmpeg -y -i bigbuckbunny_1500.mp4 -c:a libfaac -ac 2 -ab 64k -c:v libx264 -preset:v veryfast -threads 0 -r 24 -g 48 -keyint_min 48 -sc_threshold 0 -x264opts no-mbtree:bframes=1 -pass 1 -b:v 286k -s 384x216 bigbuck-350k.mp4
    ffmpeg -y -i bigbuckbunny_1500.mp4 -c:a libfaac -ac 2 -ab 64k -c:v libx264 -preset:v fast -threads 0 -r 24 -g 48 -keyint_min 48 -sc_threshold 0 -x264opts no-mbtree:bframes=1 -pass 2 -b:v 286k -s 384x216 bigbuck-350k.mp4
    ffmpeg -y -i bigbuckbunny_1500.mp4 -c:a libfaac -ac 2 -ab 64k -c:v libx264 -preset:v fast -threads 0 -r 24 -g 48 -keyint_min 48 -sc_threshold 0 -x264opts no-mbtree:bframes=1 -pass 2 -b:v 836k -s 640x360 bigbuck-900k.mp4
    You may also find this guide helpful:
    How to encode video on demand content

    Salvadore

Similar Threads

  1. Problems with Live stream Test and VLC Players
    By RGERSOL in forum General Forum
    Replies: 29
    Last Post: 01-04-2016, 11:05 AM
  2. Some problems of WOWZA3 recieve from FMS RTMP stream and use VLC get RTSP
    By Nathan Huang in forum Live Streaming and Encoder Discussion
    Replies: 2
    Last Post: 04-02-2013, 07:51 AM
  3. RTSP stream works in VLC but not HLC in VLC
    By craigvansant in forum Live Streaming and Encoder Discussion
    Replies: 10
    Last Post: 01-11-2013, 04:50 PM
  4. VLC IE Plug-in that auto-invokes the VLC client Player
    By sgopalkr in forum Media Players and Devices Discussion
    Replies: 12
    Last Post: 11-14-2012, 08:30 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •