+ Reply to Thread
Results 1 to 3 of 3

Get video time from simple URL

  1. #1
    Registered User
    Join Date
    03-26-2013
    Location
    Portugal
    MS-Off Ver
    Excel 2007
    Posts
    32

    Get video time from simple URL

    Hi,

    I've been wondering if it will be possible to build some kind of macro to read the length of video just by a simple URL like this: https://demo.askia.com/WebProd/Resou...gbuckbunny.mp4

    Let's suppose that I have column A with videos URL's and I want to get the time of each video on the same row (column B) with that time format (00:30 mm:ss).

  2. #2
    Valued Forum Contributor Haluk's Avatar
    Join Date
    02-14-2019
    Location
    Turkiye
    MS-Off Ver
    2010 - 64 Bit on Windows-11 (22 H2) 64 Bit
    Posts
    1,150

    Re: Get video time from simple URL

    You can only get the file size of the video in bytes from the URL that you have given.

    The below VBA code will give you the file size only...

    Edit: Because of an interesting restriction of the forum, I couldn't write the full URL in the code below. You have to supply the related missing part at the beginning of the URL

    Please Login or Register  to view this content.
    In order to estimate the duration of the video you need to know some other info as well..... such as; Frame Width, Frame Height, Frame Rate etc.


    .
    Last edited by Haluk; 02-16-2019 at 02:14 PM.

  3. #3
    Valued Forum Contributor Haluk's Avatar
    Join Date
    02-14-2019
    Location
    Turkiye
    MS-Off Ver
    2010 - 64 Bit on Windows-11 (22 H2) 64 Bit
    Posts
    1,150

    Re: Get video time from simple URL

    But; if you have the video file on your computer, then you can access the file properties and get the required value.

    The below code will do this for the file C:\TestFolder\bigbuckbunny.mp4

    Please Login or Register  to view this content.
    .

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 1
    Last Post: 07-16-2016, 12:26 PM
  2. vba code to play a specific time video in WMP
    By veleirinho in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 12-29-2015, 02:18 PM
  3. Link cells to a video based on time
    By tlacloche in forum Excel General
    Replies: 2
    Last Post: 02-27-2014, 08:01 AM
  4. Open a video file in a specific point of the video
    By anbe45 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-10-2013, 04:03 PM
  5. [SOLVED] video time code calculating
    By issorg in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-14-2006, 05:40 PM
  6. Video Time Format
    By Sam in forum Excel General
    Replies: 4
    Last Post: 03-11-2006, 02:50 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1