Answers.Body: <p>That command isn't well-formed. First, you specify copy, then specify a raw HEVC format with HEVC encoding and then RTSP as an output format.</p>
  
  <p>Try</p>
  
  <pre><code>ffmpeg -f image2pipe -vcodec mjpeg -i - -vcodec libx265 -f rtsp rtsp://10.31.5.126:1935/app2/myStream
  </code></pre>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-03-21T09:28:51.910Z
Answers.Text: why did u remove the "hevc" and the -copy part?
Answers.UserDisplayName: Parth Doshi
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-03-21T09:37:14.530Z
Answers.Text: I tried using your command. When I use it I get this output --> http://ideone.com/fAgmuD
Answers.UserDisplayName: Parth Doshi
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-03-21T09:58:12.673Z
Answers.Text: First of all, your ffmpeg build does not have x265 or any other HEVC encoder, so nothing will work. I removed copy since you are ingesting a JPEG sequence and want a HEVC stream, so copy makes no sense. `-f hevc` outputs a raw HEVC stream, which you don't want, but in any case, you are overriding it with a rtsp format flag. But all that is irrelevant. You need ffmpeg with a HEVC encoder like x265.
Answers.UserDisplayName: Gyan
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-03-21T10:00:04.340Z
Answers.Text: ok I got the x265 part. Lets say I replace x265 with x264 for now. Will your command work? In fact I replaced the libx265 with libx264. However the transfer does not start
Answers.UserDisplayName: Parth Doshi
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-03-21T10:17:43.507Z
Answers.Text: The errors you get "Main.java:1: error: class, interface, or enum expected" and "Main.java:4: error: unclosed character literal" indicate something to do with java, not ffmpeg. Either you are not calling it correctly or some characters need to be escaped or enclosed. Don't know what exactly.
Answers.UserDisplayName: Gyan
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-03-21T10:37:21.560Z
Answers.Text: no no @Mulvya that has nothing to do with code. I just used that website to show you the ffmpeg output. Can you tell why this ffmpeg command that you have given is not working. It does not start streaming. I have replaced libx265 with libx264
Answers.UserDisplayName: Parth Doshi
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-03-21T10:47:38.843Z
Answers.Text: Paste the full console output.
Answers.UserDisplayName: Gyan
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-03-21T10:50:21.183Z
Answers.Text: Let us [continue this discussion in chat](http://chat.stackexchange.com/rooms/37275/discussion-between-parth-doshi-and-mulvya).
Answers.UserDisplayName: Parth Doshi
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-03-21T09:26:45.747Z
Answers.LastActivityDate: 2016-03-21T09:26:45.747Z
Answers.UserDisplayName: Gyan
Body: <p>I wanted to know what are the possible streaming formats for streaming a video using H.265.</p>
  
  <p>Does H.265 support rtsp and rtmp based streaming?</p>
  
  <p>Currently, I am using ffmpeg to live stream the camera feed from my Android phone to the Wowza streaming server.</p>
  
  <p>The following command throws no errors but the streaming does not begin from ffmpeg. I mean the bit rate logs for transfer do not show up.</p>
  
  <pre><code>ffmpeg -f image2pipe -vcodec mjpeg -i - -c -copy -f hevc -vcodec libx265 -f rtsp rtsp://10.31.5.126:1935/app2/myStream
  </code></pre>
  
Tags: <ffmpeg><encoding><h.265>
Title: What are supported stream formats for h.265
UserDisplayName: Parth Doshi
ThreadText: # What are supported stream formats for h.265
  
  (Asked by: username_0 on 2016-03-21)
  
  I wanted to know what are the possible streaming formats for streaming a video using H.265.
  
  Does H.265 support rtsp and rtmp based streaming?
  
  Currently, I am using ffmpeg to live stream the camera feed from my Android phone to the Wowza streaming server.
  
  The following command throws no errors but the streaming does not begin from ffmpeg. I mean the bit rate logs for transfer do not show up.
  
  ```
  ffmpeg -f image2pipe -vcodec mjpeg -i - -c -copy -f hevc -vcodec libx265 -f rtsp rtsp://10.31.5.126:1935/app2/myStream
  
  ```
  
  **Tags:** ffmpeg, encoding, h.265
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2016-03-21. Score: 1
  
  That command isn't well-formed. First, you specify copy, then specify a raw HEVC format with HEVC encoding and then RTSP as an output format.
  
  Try
  
  ```
  ffmpeg -f image2pipe -vcodec mjpeg -i - -vcodec libx265 -f rtsp rtsp://10.31.5.126:1935/app2/myStream
  
  ```
  
  > **Comments:**
  > **username_0**: why did u remove the "hevc" and the -copy part?  
  > **username_0**: I tried using your command. When I use it I get this output --> http://ideone.com/fAgmuD  
  > **username_1**: First of all, your ffmpeg build does not have x265 or any other HEVC encoder, so nothing will work. I removed copy since you are ingesting a JPEG sequence and want a HEVC stream, so copy makes no sense. `-f hevc` outputs a raw HEVC stream, which you don't want, but in any case, you are overriding it with a rtsp format flag. But all that is irrelevant. You need ffmpeg with a HEVC encoder like x265.  
  > **username_0**: ok I got the x265 part. Lets say I replace x265 with x264 for now. Will your command work? In fact I replaced the libx265 with libx264. However the transfer does not start  
  > **username_1**: The errors you get "Main.java:1: error: class, interface, or enum expected" and "Main.java:4: error: unclosed character literal" indicate something to do with java, not ffmpeg. Either you are not calling it correctly or some characters need to be escaped or enclosed. Don't know what exactly.  
  > **username_0**: no no @Mulvya that has nothing to do with code. I just used that website to show you the ffmpeg output. Can you tell why this ffmpeg command that you have given is not working. It does not start streaming. I have replaced libx265 with libx264  
  > **username_1**: Paste the full console output.  
  > **username_0**: Let us [continue this discussion in chat](http://chat.stackexchange.com/rooms/37275/discussion-between-username_0-and-mulvya).  
  
  ---
  
  