Skip to main content
Participating Frequently
Jul 29, 2009 11:50 PM UTC
Question

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

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 is closed to new replies. Start a new post to keep the conversation going.

    2 replies

    Participating Frequently
    Aug 3, 2009 11:09 AM UTC

    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.

    Translate
    ynotlimAuthor
    Participating Frequently
    Aug 3, 2009 5:58 PM UTC

    Hi SE,

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

    Translate