flv is a container which can be used to stream videos while they are being encoded. flv supports h.264 codec.

However, flv doesn't support hevc codec. Is there any container for hevc which is streamable?


MPEG -TS. See here:

All MPEG-2 TS operations from GPAC (client and MP42TS) are supported on HEVC. MP42TS can be used to generate TS files usable for DASH or for injection in modulation chains; it can also be used to send the TS over an UDP or RTP stream in unicast or multicast mode

  • I was not aware of GPAC. Will have to look into it. Let's see if this works. I'll update after trying it out. Thanks :)
    – shivams
    Oct 18 '15 at 7:20
  • 2
    It also works on ffmpeg with libx265
    – aergistal
    Oct 19 '15 at 8:39
  • @aergistal How? Can you elaborate?
    – shivams
    Oct 19 '15 at 9:34
  • 2
    @shivams Eg: ffmpeg -re -i <input> -c:v libx265 -c:a ... -f mpegts udp://... You can also output it in HLS: ffmpeg -re -i <input> -c:v libx265 -c:a ... playlist.m3u8
    – aergistal
    Oct 19 '15 at 9:44
  • apart from mpegts , what are other formats are supported. I want to stream video to an rtmp URL using h265. So do I have flv as the only option or are there any options that I can use for libx265? Mar 20 '16 at 8:49

A bit old one but Google still lists it...

You can of course use RTSP "push" similar way as you'd do via FLV/RTMP. A bit less known method but also viable and supports H.265 (aka HEVC).

  • Thank you @Pavel. Could you elaborate a little more on how to do it? Or some references for the same?
    – shivams
    Apr 28 '21 at 10:14
  • Short and self-explanatory example would be: ffmpeg -i input -f rtsp -rtsp_transport tcp rtsp://localhost:8888/live.sdp - taken from FFmpeg official Streaming Guide, tested against Wowza Streaming Engine. May 4 '21 at 6:55

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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