# Trying to stream with RTMP from FFmpeg to Wowza

**URL:** https://community.wowza.com/t/trying-to-stream-with-rtmp-from-ffmpeg-to-wowza/51106
**Category:** Wowza Streaming Engine
**Created:** [April 9, 2018, 3:33pm UTC](https://community.wowza.com/t/trying-to-stream-with-rtmp-from-ffmpeg-to-wowza/51106 "2018-04-09T15:33:50Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Jeankowkow](https://avatars.discourse-cdn.com/v4/letter/j/97f17d/32.png) [@Jeankowkow](https://community.wowza.com/u/Jeankowkow)
#### Post date: [April 9, 2018, 3:33pm UTC](https://community.wowza.com/t/trying-to-stream-with-rtmp-from-ffmpeg-to-wowza/51106/1 "2018-04-09T15:33:50Z")

</div>

Hello

I am trying to stream a video with RTMP from FFmpeg to Wowza, unsuccessfully…

Here is the FFmpeg command I use, [based on the one on this page](https://www.wowza.com/docs/how-to-use-ffmpeg-with-wowza-media-server-mpeg-ts):

```auto
ffmpeg -re -i inputFile.mp4 -vcodec libx264 -vb 150000 -g 60 -vprofile baseline -level 2.1 -acodec aac -ab 64000 -ar 48000 -ac 2 -vbsf h264_mp4toannexb -strict experimental -f flv rtmp://10.10.6.6:8088/MyWowzaApplication/MyStream

```

And here, the output I get from FFmpeg, with the error “_Cannot read RTMP handshake response_” and “_Immediate exit requested_”:

```auto
ffmpeg version 3.3.3 Copyright (c) 2000-2017 the FFmpeg developers
  built with gcc 4.8 (Ubuntu 4.8.4-2ubuntu1~14.04.3)
  configuration: --extra-libs=-ldl --prefix=/opt/ffmpeg --mandir=/usr/share/man --enable-avresample --disable-debug --enable-nonfree --enable-gpl --enable-version3 --enable-libopencore-amrnb --enable-libopencore-amrwb --disable-decoder=amrnb --disable-decoder=amrwb --enable-libpulse --enable-libfreetype --enable-gnutls --disable-ffserver --enable-libx264 --enable-libx265 --enable-libfdk-aac --enable-libvorbis --enable-libtheora --enable-libmp3lame --enable-libopus --enable-libvpx --enable-libspeex --enable-libass --enable-avisynth --enable-libsoxr --enable-libxvid --enable-libvidstab --enable-libwavpack --enable-nvenc --enable-libzimg
  libavutil 55. 58.100 / 55. 58.100
  libavcodec 57. 89.100 / 57. 89.100
  libavformat 57. 71.100 / 57. 71.100
  libavdevice 57. 6.100 / 57. 6.100
  libavfilter 6. 82.100 / 6. 82.100
  libavresample 3. 5. 0 / 3. 5. 0
  libswscale 4. 6.100 / 4. 6.100
  libswresample 2. 7.100 / 2. 7.100
  libpostproc 54. 5.100 / 54. 5.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'inputFile.mp4':
  Metadata:
    major_brand : isom
    minor_version : 512
    compatible_brands: isomiso2avc1mp41
    encoder : Lavf56.25.101
    date : 2015
    title : Jeux en vrac
    artist : Joueur du Grenier
    genre : Humour
  Duration: 00:08:11.89, start: 0.000000, bitrate: 2302 kb/s
    Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], 2171 kb/s, 25 fps, 25 tbr, 90k tbn, 50 tbc (default)
    Metadata:
      handler_name : VideoHandler
    Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 125 kb/s (default)
    Metadata:
      handler_name : SoundHandler
[rtmp @ 0x3511980] Cannot read RTMP handshake response
rtmp://10.10.6.6:8088/MyWowzaApplication/MyStream: Immediate exit requested
Exiting normally, received signal 2.

```

[I relied on this article](https://www.wowza.com/docs/how-to-set-up-live-streaming-using-an-rtmp-based-encoder) to setup the Wowza RTMP streaming application.

What I am doing wrong?

“_MyWowzaApplication_” is the name of the live application configured in the Wowza server, but what about “_MyStream_”? I read that it is determined by the encoder. Wowza automatically detects the stream name?
