Results 1 to 5 of 5

Thread: Get timestamp for a given dv frame

  1. #1
    Join Date
    Mar 2009
    Location
    UK
    Beans
    278
    Distro
    Kubuntu

    Get timestamp for a given dv frame

    This replaces my earlier thread.
    I'm looking for command line code to retrieve timestamp data for a given frame in a .dv file
    Any ideas

  2. #2
    Join Date
    Nov 2008
    Location
    Boston MetroWest
    Beans
    16,326

    Re: Get timestamp for a given dv frame

    I don't really understand the question, Bill. How are you determining which frame you want the timestamp for? If you're watching it with something like SMPlayer it shows the elapsed time in minutes and seconds at the bottom of the application. Do you mean the exact timestamp in hundredths of a second? You might be able to guess pretty accurately by jumping to just before the frame, seeing its timestamp, and using the frames/second rate to estimate the exact location of the frame of interest. Most video is shot at 23.976 frames/second.

    From the command line you could use mplayer for this. Play the video from the command prompt with "mplayer /path/to/video.dv" and watch both windows. The terminal window will report the elapsed time in tenths of a second:
    Code:
    A:  56.8 V:  56.8 A-V:  0.000 ct:  0.041   0/  0 17%  0%  0.5% 0 0
    Here it is at 56.8 seconds. I can't say I know what all the other values mean though.
    Last edited by SeijiSensei; June 7th, 2015 at 02:37 PM.
    If you ask for help, do not abandon your request. Please have the courtesy to check for responses and thank the people who helped you.

    Blog · Linode System Administration Guides · Android Apps for Ubuntu Users

  3. #3
    Join Date
    Mar 2009
    Location
    UK
    Beans
    278
    Distro
    Kubuntu

    Re: Get timestamp for a given dv frame

    Oh dear, I'm getting confused with my terms.
    If, for example, I watch a dv file using Kino, the information panel will show me the date & time that a particular frame(or section) was recorded. It seems that each frame has this info.
    I would like to examine a number of dv files and divide them into sections according to date.
    Unfortunately, these files were captured from tape using dvgrab (which worked very well). The task took several days! Then(too late) I discovered that dvgrab would split the files into date sections!
    Hope this explains things a bit better.

  4. #4
    Join Date
    Nov 2008
    Location
    Boston MetroWest
    Beans
    16,326

    Re: Get timestamp for a given dv frame

    Sorry, but I can't help with that, I'm afraid. Good luck!

    I did visit the home page for Kino, which reports the project has been dead since 2009. It looks to have used ffmpeg and/or mencoder as the engine.

    Maybe this would help: http://einar.slaskete.net/2011/09/05...-using-ffmpeg/

    It looks like the datestamp can be referenced from the ffmpeg command line as %T.
    Last edited by SeijiSensei; June 7th, 2015 at 03:39 PM.
    If you ask for help, do not abandon your request. Please have the courtesy to check for responses and thank the people who helped you.

    Blog · Linode System Administration Guides · Android Apps for Ubuntu Users

  5. #5
    Join Date
    Mar 2009
    Location
    UK
    Beans
    278
    Distro
    Kubuntu

    Re: Get timestamp for a given dv frame

    Thanks, there are a few clues in the information you found. I'm following them up and if I get a result I'll post it here.

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
  •