Skip to main content
Known Participant
Jul 13, 2011 8:00 AM UTC
Answered

Get Encoding of a media

Hi:

Anybody knows how to get the encoding of a media (PAL, NTSC)?  (I´m using Adobe flash media server)

Thanks

    This topic is closed to new replies. Start a new post to keep the conversation going.
    SE_0208Correct answer
    Participating Frequently
    Jul 14, 2011 11:38 AM UTC

    Would be possible getting frame rate of the video? I need to know if a video has framerate 24 or 29,97 (or know if it´s PAL or NTSC)

    Thanks


    I dont know whether you can know whether particular stream uses NTSC or PAL -  i suppose its responbility of encoder to embed that data into metadata of stream. However i know most encoder would embed framerate in metadata of stream - i know FMLE does that. You just need to get hold of metadata object of stream file in onMetadata and extract value for this "videoframerate" property.

    7 replies

    Participating Frequently
    Jul 14, 2011 5:02 AM UTC

    You want to know it runtime or something - something like via code or metadata or any offline tool would do for you?

    Translate
    alferto82Author
    Known Participant
    Jul 14, 2011 7:31 AM UTC

    I will explain my question. I´m doing a web player using flex. It´s a simple player and I´m showing the timecode of the media. I get this timecode using the method nsPlay.timetedial (var nsPlay:NetStream). This method give me the timecode in seconds but I have another method to tranform (HH:MM:SS:FF). In this transformation I need the encoding to calculate the frames for using it (24, 30, ...).

    Thanks

    Sorry for my english.

    Translate
    Participating Frequently
    Jul 14, 2011 7:41 AM UTC

    So you are basically want Frames Per Second - so won't CurrentFPS work for you, check docs here: http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/net/NetStream.html?filter_flash=cs5&filter_flashplayer=10.2&filter_air=2.6#currentFPS

    Translate