Extracting time/date subtitle from MTS video
#1
Hi,
I need to extract the time and date stamp from a MTS video file. It is stored within the file, and i need it as an external subtitle file.
XBMC is able to show the stamp as a subtitle when playing the video. In the Audio Settings window it says "Unknown (1/1)" next to "Subtitle". It's getting the subtitle automatically.
This is where I wonder if the Unknown subtitle is read directly from the MTS or first extracted to any cache directory and then loaded from there. If there is a cache or temp directory containing this Unknown subtitle during playback, I would like to know where (and later if its possible to convert it to maybe .sub or .srt).

I know there probobly are different ways and softwares that can do this for me, but XBMC would suit me perfectly if it's capable of doing it.
Any help or hints are appreciated.

DEVICE AND FILE INFO
The video is recorded by a "Panasonic HDC-SD900" camera.
I've tried an EXIF tool to get the meta data printed in the command prompt, and here's the result:

ExifTool Version Number         : 9.12
File Name                            : 00000.MTS
Directory                             : D:/Kameran/panasonic/EXIF-verktyg
File Size                              : 175 MB
File Modification Date/Time     : 2012:10:28 15:33:55+01:00
File Access Date/Time            : 2013:01:05 13:20:03+01:00
File Creation Date/Time          : 2013:01:05 13:20:03+01:00
File Permissions                    : rw-rw-rw-
File Type                               : M2TS
MIME Type                            : video/m2ts
Video Stream Type                : H.264 Video
Audio Stream Type                 : A52/AC-3 Audio
Audio Bitrate                         : 384 kbps
Surround Mode                     : Not indicated
Audio Channels                    : 3/2
Image Width                         : 1920
Image Height                        : 1080
Date/Time Original                : 2012:10:28 15:32:55+01:00
Aperture Setting                    : 1.5
Gain                                    : 6 dB
Exposure Program                : Program AE
White Balance                      : Auto
Image Stabilization                : On (0x7f)
Exposure Compensation           : 0
Focal Length In 35mm Format     : inf mm
Make                                      : Panasonic
Audio Sample Rate                   : 48000
Duration                                  : 0:00:59
Image Size                              : 1920x1080
Reply
#2
Im still interested in doing this with XBMC since the time and date stamp has formatting like left position and grey half transparent background.
BUT, there's a guy that made a small program for extracting the info from MTS / AVCHD to .srt file here:
http://avchd2srt.webs.com/download.htm

It's for Linux and Windows and the latest version seams to be 0.7 for the time being.
For windows mirror you can google avchd2srt-windows-v07.tar.gz
Reply

Logout Mark Read Team Forum Stats Members Help
Extracting time/date subtitle from MTS video0