Kino Video Editor
 
  Kino / dvgrab
Latest News
Download
Features
Requirements
Screen Shots
  Support
User Guide
HOWTOs
FAQ
Mailing Lists
Contributed Code
  Development
Project Vision
Developer Guide
Source Code
Current Developers
Report a Bug
  Community
Success Stories
Discussion
 

I have closed the forums to new postings because there was not enough discussion, I answered nearly all the questions, and I no longer work on Kino. Please use the forums provided by your Linux distribution. Meanwhile, I will leave this open in read-only mode to serve as a knowledge base.


Subject: "Extracting Date/Time info from DV files?" Previous topic | Next topic
Printer-friendly copy
Top Linux Digital Video Kino Topic #3488
Show all folders | View messages in linear mode

theophile2Tue Mar-24-09 11:10 PM
Member since Mar 23rd 2009
2 posts
Click to send email to this author Click to send private message to this author Click to view this author's profile Click to add this author to your buddy list
#3488, "Extracting Date/Time info from DV files?"


          

I know that DV files contain the date and time the video was shot, assuming the camera records this data. Is there a way to extract this data from the .dv file once it's on the computer? I'd like to date-stamp the filenames based on when the video was show without having to go back and find each clip on the tape and read the data off the screen. Thanks!

  

IP Printer Friendly copy | Reply | Reply with quote | Top

ddennedySat Apr-11-09 05:26 AM
Member since Jun 26th 2006
1362 posts
Click to send email to this author Click to send private message to this author Click to view this author's profile Click to add this author to your buddy list
#3493, "RE: Extracting Date/Time info from DV files?"
In response to Reply #0


          

There is the option to put the recording date and time into the file name when capturing. After the fact, you can get the info from the Properties panel in Kino. Also, you can save a project to a subtitle file that contains this info. It creates an entry for each scene in the playlist. That is in File > Save As.

+-DRD-+
Lead Kino Developer

  

IP Printer Friendly copy | Reply | Reply with quote | Top

    
kdebaasThu Sep-10-09 12:54 PM
Member since Sep 10th 2009
2 posts
Click to send email to this author Click to send private message to this author Click to view this author's profile Click to add this author to your buddy list
#3585, "RE: Extracting Date/Time info from DV files?"
In response to Reply #1


          

How does Kino extract this information from the files? I am
trying to extract the original recording date / time from
hundreds of dv avi files, and was hoping I could write a
commandline script. Tried ffmpeg -i, but that didn't give me
the datetimes.

I had used the following script before: 

 for file in $(ls *.avi); do dvgrab -I $file -t -duration
0.04 foo; done

to generate a list of files with the timecode written into
the filename, but this was a rather cumbersome workaround.
Any pointers to better ways?

Thanks
Klaas

  

IP Printer Friendly copy | Reply | Reply with quote | Top

        
ddennedySun Sep-13-09 08:39 AM
Member since Jun 26th 2006
1362 posts
Click to send email to this author Click to send private message to this author Click to view this author's profile Click to add this author to your buddy list
#3586, "RE: Extracting Date/Time info from DV files?"
In response to Reply #2


          

Kino and dvgrab use libdv for this. There is no handy utility,
sorry. You can write a C program or easily generate a script
binding using swig. For example, Ruby:

libdv.i:

%module dv
%include "carrays.i"
%array_class(unsigned char, UnsignedCharArray);
%{
#include <libdv/dv.h>
%}
%include <libdv/dv.h>

---- cut here ----

swig.rb:

#!/usr/bin/env ruby
require 'mkmf'
system( "swig -ruby `pkg-config --cflags libdv`
libdv.i" )
$CFLAGS += " `pkg-config --cflags libdv`"
$LDFLAGS += " `pkg-config --libs libdv`"
create_makefile('dv')
system( 'make' )

---- cut here ----

Now you have a dv.so that you can 'require' in a Ruby script:

require 'dv'

decoder = Dv.dv_decoder_new(0, 0, 0)
...


You'll have to read some libdv examples from the libdv/libdv
source dir to learn more.  

+-DRD-+
Lead Kino Developer

  

IP Printer Friendly copy | Reply | Reply with quote | Top

            
kdebaasSun Sep-13-09 03:14 PM
Member since Sep 10th 2009
2 posts
Click to send email to this author Click to send private message to this author Click to view this author's profile Click to add this author to your buddy list
#3587, "RE: Extracting Date/Time info from DV files?"
In response to Reply #3


          

Thanks! Bookmarked for future reference...

  

IP Printer Friendly copy | Reply | Reply with quote | Top

Top Linux Digital Video Kino Topic #3488 Previous topic | Next topic
Powered by DCForum+ Version 1.1
Copyright 1997-2002 DCScripts.com