title: RTSP to RTMP using Xuggler and red5 - Out stream could not open in Container.cpp
body: <p>My requirement is Streaming IPCamera RTSP stream to RTMP stream. I have setup a application using livemedia 555 + VLC + Red5 + Xuggler. I successfully multistreaming using vlc as sdp file in locally. Now the problem comes in red5 + xuggler side</p>
  
  <p>I am using <a href="http://www.red5wiki.com/wiki/SteamStream" rel="nofollow">steamStream</a> red5 application for restreming. The error is below</p>
  
  <pre><code>[INFO] [NioProcessor-1] net.arulraj.ipcam.Application - SsPlaybackSecurity isPlaybackAllowed() called.  name is: guest
  [INFO] [NioProcessor-1] net.arulraj.ipcam.Application - streamSubscriberStart() called... stream: 2d5fd53d-ab1d-46b2-ac23-a60d9e9c7d8e
  [INFO] [NioProcessor-1] net.arulraj.ipcam.Application - streamPlaylistItemPlay() called... stream: 2d5fd53d-ab1d-46b2-ac23-a60d9e9c7d8e | item: guest | isLive?: Yes
  [INFO] [NioProcessor-1] net.arulraj.ipcam.Application - Stream subscriber count is zero; starting a new ReStreamer.  Stream: guest
  [INFO] [NioProcessor-1] net.arulraj.ipcam.Application - ReStreamer constructor called.
  [INFO] [NioProcessor-1] net.arulraj.ipcam.Application - Client connecting; incrementing stream count for stream 'guest' from 0 to 1.
  [INFO] [Thread-3] net.arulraj.ipcam.Application - ReStreamer thread starting.  ID: 38
  [DEBUG] [Thread-3] net.arulraj.ipcam.Application - ReStreamer: About to register output stream with provider service: guest
  [DEBUG] [Thread-3] net.arulraj.ipcam.Application - ReStreamer: Successfully registered and started output stream: guest
  [INFO] [Thread-3] net.arulraj.ipcam.Application - Publishing stream from input: /opt/red5-0.9.1/webapps/IPcameraStreamer/sdpdescriptors/guest.sdp
  [DEBUG] [Thread-3] net.arulraj.ipcam.Application - Publishing stream to output: redfive:guest
  [DEBUG] [Thread-3] net.arulraj.ipcam.Application - Got packet with key frame data; setting up coders: guest
  [ERROR] [Thread-3] com.xuggle.xuggler - URL: redfive:guest; Error: could not open file (../../../../../../../csrc/com/xuggle/xuggler/Container.cpp:513)
  [INFO] [Thread-3] net.arulraj.ipcam.Application - Parameters: com.xuggle.xuggler.IMetaData@739036864[]
  [INFO] [Thread-3] net.arulraj.ipcam.Application - Parameters Rejected: com.xuggle.xuggler.IMetaData@738595792[]
  [ERROR] [Thread-3] net.arulraj.ipcam.Application - Exception occurred during restreaming: java.lang.RuntimeException: Could not open output container at URL: redfive:guest
  [INFO] [Thread-3] net.arulraj.ipcam.Application - ReStreamer thread exiting.  ID: 38
  </code></pre>
  
  <ul>
  <li>Local multiple streaming is done using vlc server</li>
  <li>sdp file created using vlc</li>
  <li>Red5 reads the sdp file as input</li>
  <li>Now I got the error while writing sdp input into rtmp output.</li>
  </ul>
  
  <p>Error in <a href="https://github.com/xuggle/xuggle-xuggler/blob/master/csrc/com/xuggle/xuggler/Container.cpp" rel="nofollow">Container.cpp</a> file line no 513.</p>
  
  <p>I am using</p>
  
  <ul>
  <li>CentOS 6 x86_64 OS </li>
  <li>Java 1.6 </li>
  <li>Xuggler 5.4 </li>
  <li>red5-0.9.1</li>
  </ul>
  
  <p>I followed this tutorial <a href="http://flance.onego.ru/2010/08/02/238" rel="nofollow">http://flance.onego.ru/2010/08/02/238</a></p>