1

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

1 Answer 1

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
8
  • why did u remove the "hevc" and the -copy part? Mar 21, 2016 at 9:28
  • I tried using your command. When I use it I get this output --> ideone.com/fAgmuD Mar 21, 2016 at 9:37
  • 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.
    – Gyan
    Mar 21, 2016 at 9:58
  • 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 Mar 21, 2016 at 10:00
  • 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.
    – Gyan
    Mar 21, 2016 at 10:17

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.