Log in

View Full Version : time and date of H.264 streams from linux


lucrus
17th August 2009, 15:45
Until two months ago I was used to my old Hi8 camcorder and quite happy with it, and with the date and time that it used to put in the low right corner of my videos.

Now my new Everio GZ-HM200 is far batter than my old Hi8 camcorder, and I even managed to build a linux script that converts its H.264 MTS streams to DVDs (thanks to ffmpeg and dvdauthor).

I'd like to do one last thing: extract the time and date informations from the SD cards and add those as subtitles somewhere in my DVDs: however I couldn't find where those informations are stored in the SD cards files.

Can you help me?

nm
17th August 2009, 16:59
Check file modification times before copying them from the SD card?

ls --full-time /path/to/somefile
stat /path/to/somefile

lucrus
18th August 2009, 09:04
Yes, that's the obvious way, but since I've already copied several files without checking in advance their times (and deleted the original files from the SD cards), I wondered if there were another way...

Moreover I'm developing a scripted solution (to be hosted on my home linux server) and checking modtimes in the script requires me to download the SD cards directly on the server, but what if it's my wife downloading the videos on her notebook while on a trip around the world?

nm
18th August 2009, 09:25
Some camcorders write this kind of metadata to separate files, but I don't think there is a common standard. What files do you have on the SD card?

You could also try canon_analyze_mts.pl: http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/2009-January/060366.html

lucrus
18th August 2009, 10:00
You could also try canon_analyze_mts.pl: http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/2009-January/060366.html

Thanks, it works like a charm! You can't even imagine how this information is useful to me, many thanks indeed.

Lucio.