Skip to main content
Participating Frequently
July 29, 2009
Question

How to tell if a Live Stream is VP6 format or H.264 in Main.asc

  • July 29, 2009
  • 1 reply
  • 1135 views

Hello,

How can I detect in my Main.asc if the live stream is in the VP6 format or H.265 format?

Thanks!

    This topic has been closed for replies.

    1 reply

    Participating Frequently
    August 3, 2009

    I dont think you can do it directly on live stream in main.asc. I have workaround to do that. Basically you record incoming stream fro say 5-10 secs and just call Stream.getOnMetaData on that recorded file and trace out videocodecId property in metadata , if its 4 its VP6 and if its 7 its H264. If you dont want to record it , I would suggest you can use Auth Adaptor which will give you Video Codec of live stream publish.

    ynotlimAuthor
    Participating Frequently
    August 3, 2009

    Hi SE,

    Do you have some sample code you're willing to share?  Thanks!