# FFMPEG Incoming RTSP Stream Debug

**URL:** https://community.wowza.com/t/ffmpeg-incoming-rtsp-stream-debug/43474
**Category:** Wowza Streaming Engine
**Created:** [July 25, 2014, 10:28am UTC](https://community.wowza.com/t/ffmpeg-incoming-rtsp-stream-debug/43474 "2014-07-25T10:28:37Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![steve\_monroe](https://avatars.discourse-cdn.com/v4/letter/s/a698b9/32.png) [@steve\_monroe](https://community.wowza.com/u/steve_monroe)
#### Post date: [July 25, 2014, 10:28am UTC](https://community.wowza.com/t/ffmpeg-incoming-rtsp-stream-debug/43474/1 "2014-07-25T10:28:37Z")

</div>

We are currently running Wowza Media Server 2 and have been since 2010, but have decided to move to the newest version. We have created a new instance and have successfully published our IP cams that stream H.264.

Additionally, we have several older web cams that only stream motion jpeg. In our current setup we have a transcoder that pushes an transcoded H.264 RTSP stream to Wowza. I have set up a test stream that now pushes it to the new Wowza instance.

I can see the stream is active and reaching Wowza when viewing in the incoming stream in Stream Manager. If I use the Adobe RTMP test player to try and play the outgoing stream, the video does not display but the status shows “Playing”.

I’ve enabled DEBUG in /conf/log4j.properties and as much debug and logging as I could fine at the application level, but I am not seeing any more information in the access log. For the other streams that are not being pushed, I can see very detailed information.

My question is, is there some sort of debugging that I have missed that will give me more detailed information about packet loss and such from an incoming RTSP stream? Are there newer/additional input requirements for an incoming stream than in Wowza Media Server 2.

This is the ffmpeg command line that we are currently using.

```auto
ffmpeg -er 4 -y -r 2 -g 1 -f mjpeg -an -force_nth_key_frames 2 -i http://user:pass@<IP>/-wvhttp-01-/getoneshot?frame_rate=2000"&"frame_count=0 -vcodec libx264 -vpre fastfirstpass -vpre baseline -b 150k -bt 32k -threads 0 -f rtsp rtsp://user:pass@<IP>:1935/nature/hilton

```

---

<div class="post-metadata">

### Author: ![steve\_monroe](https://avatars.discourse-cdn.com/v4/letter/s/a698b9/32.png) [@steve\_monroe](https://community.wowza.com/u/steve_monroe)
#### Post date: [July 25, 2014, 5:37pm UTC](https://community.wowza.com/t/ffmpeg-incoming-rtsp-stream-debug/43474/2 "2014-07-25T17:37:18Z")

</div>

I was able to get it working by removing -bt 32k from the command line and changing to flv and rtmp. So working command line is.

```auto
ffmpeg -er 4 -y -r 2 -g 1 -f mjpeg -an -force_nth_key_frames 2 -i http://user:pass@<IP>/-wvhttp-01-/getoneshot?frame_rate=2000"&"frame_count=0 -vcodec libx264 -vpre fastfirstpass -vpre baseline -b 150k -threads 0 -f flv rtmp://user:pass@<IP>:1935/nature/hilton

```
