get video sizes

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • gezerpunta

    get video sizes

    Hi

    I need to learn the sizes of videos. I need a function name like
    (getimagesize). Which function can help me?

    thks.

  • Rami Elomaa

    #2
    Re: get video sizes

    gezerpunta kirjoitti:
    Hi
    >
    I need to learn the sizes of videos. I need a function name like
    (getimagesize). Which function can help me?
    >
    thks.
    >
    php has nothing like that built in. In fact there is nothing for
    manipulating videos in the built-in library. You'll need an external
    package or perhaps run some external tool from command line.

    --
    Rami.Elomaa@gma il.com

    "Wikipedia on vähän niinq internetin raamattu, kukaan ei pohjimmiltaan
    usko siihen ja kukaan ei tiedä mikä pitää paikkansa." -- z00ze

    Comment

    • Toby A Inkster

      #3
      Re: get video sizes

      Rami Elomaa wrote:
      php has nothing like that built in. In fact there is nothing for
      manipulating videos in the built-in library. You'll need an external
      package or perhaps run some external tool from command line.
      Regarding external tools to run from the command line, mplayer comes with
      a script called midentify. Using this you can get output like the
      following. Of interest are ID_VIDEO_WIDTH, ID_VIDEO_HEIGHT and perhaps
      ID_LENGTH.

      ID_AUDIO_ID=1
      ID_VIDEO_ID=2
      ID_FILENAME=exa mple.wmv
      ID_DEMUXER=asv
      ID_VIDEO_FORMAT =WMV3
      ID_VIDEO_BITRAT E=0
      ID_VIDEO_WIDTH= 640
      ID_VIDEO_HEIGHT =480
      ID_VIDEO_FPS=10 00.000
      ID_VIDEO_ASPECT =0.0000
      ID_AUDIO_CODEC= ffwmav2
      ID_AUDIO_FORMAT =353
      ID_AUDIO_BITRAT E=31960
      ID_AUDIO_RATE=4 4100
      ID_AUDIO_NCH=2
      ID_LENGTH=634.0 0
      ID_VIDEO_CODEC= wmv9dmo

      --
      Toby A Inkster BSc (Hons) ARCS
      Fast withdrawal casino UK 2025 – Play now & cash out instantly! Discover the top sites for rapid, secure payouts with no delays.

      Geek of ~ HTML/SQL/Perl/PHP/Python/Apache/Linux

      Comment

      Working...