如何从我的家庭电影文件中获取原始捕获时间戳:AVI和MPG4? [英] How can I get the original capture timestamp from my home movie files:: AVI and MPG4?

查看:154
本文介绍了如何从我的家庭电影文件中获取原始捕获时间戳:AVI和MPG4?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有超过TB的家庭电影,它们的文件名太糟了。找到您想要的是不可能的。
我想将所有文件重命名为最初记录的时间(而不是将它们放置在我的计算机上的文件时间)。
某些应用程序(例如Ulead Video Studio)可以访问此信息,我相信这些信息已嵌入到编解码器中。

I have over a TB of home movies with horrible file names. Finding what you want is impossible. I would like to rename all files to the time they were originally recorded (not the file time they were placed on my computer). Some applications (like Ulead Video Studio) can access this information, which I believe is embedded in the CODEC.

我很想知道我如何可以编写一个.Net应用程序以提取此信息来重命名我的文件,这样我就可以轻松地对它们进行整理,或者找到一个可以为我执行此操作的应用程序。
非常感谢您。

I would LOVE to find how how either I can write a .Net app to extract this information to rename my files so I can easily organize them OR find an application that will do this for me. Thank you very much in advanced.

其他信息::家庭电影是在miniDV和DVD便携式摄像机上拍摄的。

additional information:: home movies were captured on miniDV and DVD camcorders.

推荐答案

这是一个基于mplayer的骇客方法,至少对我的相机生成的MOV文件有效:

Here is a hacky howto based on mplayer that works at least for the MOV files produced by my camera:

mplayer -vo null -ao null -frames 0 -identify myfile.MOV 2>/dev/null|grep creation_time:

我用它来批量重命名它们:

I use it to batch-rename them:

for m in MVI*.MOV; do
    t=$(mplayer -vo null -ao null -frames 0 -identify $m 2>/dev/null|grep creation_time:|sed 's/.*creation_time: *//;s/[-:]//g;s/ /-/')
    mv ${m} ${t}_${m}
done

这篇关于如何从我的家庭电影文件中获取原始捕获时间戳:AVI和MPG4?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆