# Live RTMP stream

**URL:** <https://forums.plex.tv/t/live-rtmp-stream/29821>\
**Category:** Dev/API Corner\
**Tags:** plugin-dev\
**Created:** [February 25, 2013, 10:27pm UTC](https://forums.plex.tv/t/live-rtmp-stream/29821 "2013-02-25T22:27:02Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![joecowboy](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/joecowboy/32/5537_2.png) [@joecowboy](https://forums.plex.tv/u/joecowboy)\
**Post date:** [February 25, 2013, 10:27pm UTC](https://forums.plex.tv/t/live-rtmp-stream/29821/1 "2013-02-25T22:27:02Z")

</div>

Not transcoding properly

The platform that the Plex Media Server is on is a Windows 7 64bit machine:  
  
Here is the Transcoder setup created by Plex Media Server for a Live RTMP stream from Fox 4 Dallas News:  
&nbsp;

```
PlexTranscoder.exe transcode "rtmp://cp156346.live.edgefcs.net:1935/live?ovpfv=2.1.6 playpath=KDFW_744_Flash@27996 live=1 app=live?ovpfv=2.1.6 conn=B:0 conn=S:KDFW_744_Flash@27996 subscribe=KDFW_744_Flash@27996 pageUrl=http://www.myfoxdfw.com/category/234333/live swfVfy=0 swfUrl=http://content.foxtvmedia.com/kdfw/live/AkamaiFlashPlayer.swf" "C:\Users\Owner\AppData\Local\Temp\plex-transcode-a612w084x0fk-44a59675-cd81-46d2-8334-0c00a1b67d1c\media" 7 4 0 any nil 0 yes UTF-8 default "" "" 0.75 av high 1080 51 mp3,aac=160000 3355443 yes "" no "http://127.0.0.1:32400/video/:/transcode/session/a612w084x0fk/progress"
```

The transcoder&nbsp;does output&nbsp;the MPEG-TS&nbsp;files to the temp folder but they are 0mb.&nbsp; This causes the player to to just sit there&nbsp;trying&nbsp;load for a while and&nbsp;then errors with the message: Cannot load M3U8:  
  
Here is the Encode debug info:  
  
Audio stream info:  
codec\_id : 15002  
channels : 2  
bitrate : 0/128000  
samplerate: 48000  
audiogain : 1.00 (256)  
aacProfile: 1/-99  
----\> we're not remuxing RTMP audio for now.  
!!! Will NOT copy the audio stream  
  
Video stream info:  
codec\_id: 1c/1c  
level : 31/51  
avg\_fps : 29/29  
profile : 42/64  
vfr : 0  
fps : 29.00/29.00  
bitrate : 0.00/3.15 mbps  
height : 360/360  
aspect : 0.56(1.00)/0.56  
segSize : 0.00mbits/seg, 0.00/25.60MBps  
timebase: 0.01724(931067:54000000)/0.00001(0:1000000)  
  
As you can see Audo Stream Bitrate is 0/128000 and Video stream segSize is 0mb/seg. So the Plex Transcoder not setting up the Encoder output correctly for the live RTMP stream.  
  
What are the parameters for the "PlexTranscoder.exe transcode". I have looked high and low for them. To me it looks like the transcode parameter is a clean design pointing to all the FFMPEG parameters in the Plex transcoder.  
  
Next, are there any plans of adding RTMP 302 URL redirect detection in the transcoder? If not, I have been toying with Twisted and RTMPy Python scripts. I have added all the Twisted and RTMPy dependancies to the Plex Media Servers Python26.zip file. I have been trying to write a Python Script using Twisted and RTMPy to detect the redirect and pass it to "MediaObject(parts = [PartObject(key=RTMPVideoURL(url=". I have not found any good info on using RTMPy detecting 302 URL redirect. All the example code people show is detecting if a local RMTP server is running. Just wondering if anybody knows anyting about RTMPy Python script coding and point me in the right direction?

&nbsp;

If anybody lives in the Dallas, TX area I have attached a verions of the plugin&nbsp;I am working on.&nbsp; It also&nbsp;pulls in their&nbsp;News, Weather, GoodDay segments.&nbsp; Let me know if you would like for me to tweak or add anything to it.  
  
Again thanks for all the great work!

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/plex/original/3X/2/a/2acb9765406f63293d357b4ec509ec39aa28f2ad.png) [@system](https://forums.plex.tv/u/system)\
**Post date:** [December 20, 2019, 10:58pm UTC](https://forums.plex.tv/t/live-rtmp-stream/29821/2 "2019-12-20T22:58:18Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
