Hello
I have been starting to convert some .mts-files to .mp4. The .mts-files
didn't have any metadata so I'm now creating time/date so they will be
properly added in my library.
However, the time will always be wrong in Shotwell, even though it looks
good to me?
$ avconv -y -i 20101127100202.mts -crf 25.0 -vcodec libx264 -acodec
libvo_aacenc -ar 48000 -ab 160k -coder 1 -flags +loop -cmp +chroma
-partitions +parti4x4+partp8x8+partb8x8 -me_method hex -subq 6 -me_range 16
-g 250 -keyint_min 25 -sc_threshold 40 -i_qfactor 0.71 -b_strategy 1 -qcomp
0.6 -qmin 0 -qmax 69 -qdiff 4 -bf 3 -refs 8 -directpred 3 -trellis 2
-flags2 +bpyramid+mixed_refs+wpred+dct8x8+fastpskip -wpredp 2 -rc_lookahead
60 -threads 0 -metadata creation_time="2001-02-03 13:14:15" hej.mp4
avconv version 0.8.5-6:0.8.5-0ubuntu0.12.10.1, Copyright (c) 2000-2012 the
Libav developers
built on Jan 24 2013 14:52:53 with gcc 4.7.2
Input #0, mpegts, from '20101127100202.mts':
Duration: 00:00:03.36, start: 0.477344, bitrate: 16403 kb/s
Program 1
Stream #0.0[0x1011]: Video: h264 (High), yuv420p, 1920x1080 [PAR 1:1
DAR 16:9], 50 fps, 50 tbr, 90k tbn, 50 tbc
Stream #0.1[0x1100]: Audio: ac3, 48000 Hz, stereo, s16, 256 kb/s
[buffer @ 0x80d3f60] w:1920 h:1080 pixfmt:yuv420p
[libx264 @ 0x80d34a0] using SAR=1/1
[libx264 @ 0x80d34a0] using cpu capabilities: MMX2 SSE2Fast SSSE3
FastShuffle SSE4.1 Cache64
[libx264 @ 0x80d34a0] profile High, level 5.0
[libx264 @ 0x80d34a0] 264 - core 123 r2189 35cf912 - H.264/MPEG-4 AVC codec
- Copyleft 2003-2012 - http://www.videolan.org/x264.html - options: cabac=1
ref=8 deblock=1:0:0 analyse=0x3:0x111 me=hex subme=6 psy=1 psy_rd=1.00:0.00
mixed_ref=1 me_range=16 chroma_me=1 trellis=2 8x8dct=1 cqm=0 deadzone=21,11
fast_pskip=1 chroma_qp_offset=-2 threads=3 sliced_threads=0 nr=0 decimate=1
interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2
b_adapt=1 b_bias=0 direct=3 weightb=1 open_gop=1 weightp=2 keyint=250
keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=60 rc=crf mbtree=1
crf=25.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.41 aq=1:1.00
Output #0, mp4, to 'hej.mp4':
Metadata:
creation_time : 2001-02-03 13:14:15
encoder : Lavf53.21.1
Stream #0.0: Video: libx264, yuv420p, 1920x1080 [PAR 1:1 DAR 16:9],
q=0-69, 50 tbn, 50 tbc
Stream #0.1: Audio: libvo_aacenc, 48000 Hz, stereo, s16, 160 kb/s
Stream mapping:
Stream #0:0 -> #0:0 (h264 -> libx264)
Stream #0:1 -> #0:1 (ac3 -> libvo_aacenc)
Press ctrl-c to stop encoding
frame= 168 fps= 6 q=-1.0 Lsize= 3767kB time=3.32 bitrate=9293.8kbits/s
dup=84 drop=0
<snip>
$ exiftool hej.mp4
ExifTool Version Number : 9.20
File Name : hej.mp4
Directory : .
File Size : 3.7 MB
File Modification Date/Time : 2013:02:24 18:31:13+01:00
File Access Date/Time : 2013:02:24 18:31:09+01:00
File Inode Change Date/Time : 2013:02:24 18:31:13+01:00
File Permissions : rw-rw-r--
File Type : MP4
MIME Type : video/mp4
Major Brand : MP4 Base Media v1 [IS0 14496-12:2003]
Minor Version : 0.2.0
Compatible Brands : isom, iso2, avc1, mp41
Movie Data Size : 3853000
Movie Header Version : 0
Create Date : 2001:02:03 13:14:15
Modify Date : 2001:02:03 13:14:15
Time Scale : 1000
Duration : 3.37 s
Preferred Rate : 1
Preferred Volume : 100.00%
Preview Time : 0 s
Preview Duration : 0 s
Poster Time : 0 s
Selection Time : 0 s
Selection Duration : 0 s
Current Time : 0 s
Next Track ID : 3
Track Header Version : 0
Track Create Date : 2001:02:03 13:14:15
Track Modify Date : 2001:02:03 13:14:15
Track ID : 1
Track Duration : 3.36 s
Track Layer : 0
Track Volume : 0.00%
Image Width : 1920
Image Height : 1080
Graphics Mode : srcCopy
Op Color : 0 0 0
Compressor ID : avc1
Source Image Width : 1920
Source Image Height : 1080
X Resolution : 72
Y Resolution : 72
Bit Depth : 24
Video Frame Rate : 50
Matrix Structure : 1 0 0 0 1 0 0 0 1
Media Header Version : 0
Media Create Date : 2001:02:03 13:14:15
Media Modify Date : 2001:02:03 13:14:15
Media Time Scale : 48000
Media Duration : 3.37 s
Media Language Code : und
Handler Description : SoundHandler
Balance : 0
Audio Format : mp4a
Audio Channels : 2
Audio Bits Per Sample : 16
Audio Sample Rate : 48000
Handler Type : Metadata
Handler Vendor ID : Apple
Encoder : Lavf53.21.1
Avg Bitrate : 9.14 Mbps
Image Size : 1920x1080
Rotation : 0
When I import this file with Shotwell it reports
Date: lör 3 feb, 2001
Time: 2:14
So the date is right but the time is wrong. Why is this?
Rgds//Thomas
_______________________________________________
Shotwell mailing list
[email protected]
http://lists.yorba.org/cgi-bin/mailman/listinfo/shotwell