[FFmpeg-user] how could i set a location metadata??
Yutaka Kawase
ykawase1114 at gmail.com
Fri Dec 12 16:05:10 CET 2014
Carl,
Thank you very much for your reply.
> Do you have a mov file with location metadata?
Yes, I do have mov files with location metadata.
I have an iPhone 4 and it give me movies with location metadata and gogle
photo shows me location on map when i upload those moves.
Hear are console output with no -hide_banner option.
I wish some of you could help me how i could set location metadata.
++++ a movie file with location metadata +++
~/Desktop/wrk$ ffprobe -i file.mov
ffprobe version 2.4.2 Copyright (c) 2007-2014 the FFmpeg developers
built on Oct 17 2014 19:56:34 with Apple LLVM version 6.0
(clang-600.0.51) (based on LLVM 3.5svn)
configuration: --prefix=/usr/local/Cellar/ffmpeg/2.4.2 --enable-shared
--enable-pthreads --enable-gpl --enable-version3 --enable-nonfree
--enable-hardcoded-tables --enable-avresample --enable-vda --cc=clang
--host-cflags= --host-ldflags= --enable-libx264 --enable-libfaac
--enable-libmp3lame --enable-libxvid --enable-libfreetype
libavutil 54. 7.100 / 54. 7.100
libavcodec 56. 1.100 / 56. 1.100
libavformat 56. 4.101 / 56. 4.101
libavdevice 56. 0.100 / 56. 0.100
libavfilter 5. 1.100 / 5. 1.100
libavresample 2. 1. 0 / 2. 1. 0
libswscale 3. 0.100 / 3. 0.100
libswresample 1. 1.100 / 1. 1.100
libpostproc 53. 0.100 / 53. 0.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'file.mov':
Metadata:
major_brand : qt
minor_version : 0
compatible_brands: qt
creation_time : 2014-11-20 13:37:13
model : iPhone 4
model-jpn : iPhone 4
encoder : 7.1.2
encoder-jpn : 7.1.2
date : 2014-11-20T22:37:12+0900
date-jpn : 2014-11-20T22:37:12+0900
location : +11.1111+136.1361+015.000/
location-jpn : +11.1111+136.1361+015.000/
make : Apple
make-jpn : Apple
Duration: 00:01:46.34, start: 0.000000, bitrate: 3610 kb/s
Stream #0:0(und): Video: h264 (Baseline) (avc1 / 0x31637661),
yuv420p(tv, smpte170m), 640x480, 3539 kb/s, 24 fps, 24 tbr, 600 tbn, 1200
tbc (default)
Metadata:
creation_time : 2014-11-20 13:37:13
handler_name : Core Media Data Handler
encoder : H.264
Stream #0:1(und): Audio: aac (mp4a / 0x6134706D), 44100 Hz, mono, fltp,
63 kb/s (default)
Metadata:
creation_time : 2014-11-20 13:37:13
handler_name : Core Media Data Handler
~/Desktop/wrk$
++++ a movie file with no location matadata +++
~/Desktop/wrk$ ffprobe -i src.mov
ffprobe version 2.4.2 Copyright (c) 2007-2014 the FFmpeg developers
built on Oct 17 2014 19:56:34 with Apple LLVM version 6.0
(clang-600.0.51) (based on LLVM 3.5svn)
configuration: --prefix=/usr/local/Cellar/ffmpeg/2.4.2 --enable-shared
--enable-pthreads --enable-gpl --enable-version3 --enable-nonfree
--enable-hardcoded-tables --enable-avresample --enable-vda --cc=clang
--host-cflags= --host-ldflags= --enable-libx264 --enable-libfaac
--enable-libmp3lame --enable-libxvid --enable-libfreetype
libavutil 54. 7.100 / 54. 7.100
libavcodec 56. 1.100 / 56. 1.100
libavformat 56. 4.101 / 56. 4.101
libavdevice 56. 0.100 / 56. 0.100
libavfilter 5. 1.100 / 5. 1.100
libavresample 2. 1. 0 / 2. 1. 0
libswscale 3. 0.100 / 3. 0.100
libswresample 1. 1.100 / 1. 1.100
libpostproc 53. 0.100 / 53. 0.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'src.mov':
Metadata:
major_brand : qt
minor_version : 512
compatible_brands: qt
creation_time : 2014-11-20 13:37:13
date : 2014-11-20T22:37:12+0900
date-jpn : 2014-11-20T22:37:12+0900
encoder : Lavf56.4.101
Duration: 00:00:02.02, start: 0.000000, bitrate: 3688 kb/s
Stream #0:0(eng): Video: h264 (Baseline) (avc1 / 0x31637661),
yuv420p(tv, smpte170m), 640x480, 3652 kb/s, 24 fps, 24 tbr, 19200 tbn,
38400 tbc (default)
Metadata:
creation_time : 2014-11-20 13:37:13
handler_name : DataHandler
encoder : H.264
Stream #0:1(eng): Audio: aac (mp4a / 0x6134706D), 44100 Hz, mono, fltp,
63 kb/s (default)
Metadata:
creation_time : 2014-11-20 13:37:13
handler_name : DataHandler
~/Desktop/wrk$
++++ i can set title metadata to the src.mov ++++
~/Desktop/wrk$ ffmpeg -i src.mov -metadata title="ABC DEF" title.mov
ffmpeg version 2.4.2 Copyright (c) 2000-2014 the FFmpeg developers
built on Oct 17 2014 19:56:34 with Apple LLVM version 6.0
(clang-600.0.51) (based on LLVM 3.5svn)
configuration: --prefix=/usr/local/Cellar/ffmpeg/2.4.2 --enable-shared
--enable-pthreads --enable-gpl --enable-version3 --enable-nonfree
--enable-hardcoded-tables --enable-avresample --enable-vda --cc=clang
--host-cflags= --host-ldflags= --enable-libx264 --enable-libfaac
--enable-libmp3lame --enable-libxvid --enable-libfreetype
libavutil 54. 7.100 / 54. 7.100
libavcodec 56. 1.100 / 56. 1.100
libavformat 56. 4.101 / 56. 4.101
libavdevice 56. 0.100 / 56. 0.100
libavfilter 5. 1.100 / 5. 1.100
libavresample 2. 1. 0 / 2. 1. 0
libswscale 3. 0.100 / 3. 0.100
libswresample 1. 1.100 / 1. 1.100
libpostproc 53. 0.100 / 53. 0.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'src.mov':
Metadata:
major_brand : qt
minor_version : 512
compatible_brands: qt
creation_time : 2014-11-20 13:37:13
date : 2014-11-20T22:37:12+0900
date-jpn : 2014-11-20T22:37:12+0900
encoder : Lavf56.4.101
Duration: 00:00:02.02, start: 0.000000, bitrate: 3688 kb/s
Stream #0:0(eng): Video: h264 (Baseline) (avc1 / 0x31637661),
yuv420p(tv, smpte170m), 640x480, 3652 kb/s, 24 fps, 24 tbr, 19200 tbn,
38400 tbc (default)
Metadata:
creation_time : 2014-11-20 13:37:13
handler_name : DataHandler
encoder : H.264
Stream #0:1(eng): Audio: aac (mp4a / 0x6134706D), 44100 Hz, mono, fltp,
63 kb/s (default)
Metadata:
creation_time : 2014-11-20 13:37:13
handler_name : DataHandler
[libx264 @ 0x7ff4b2829a00] using cpu capabilities: MMX2 SSE2Fast SSSE3
SSE4.2 AVX
[libx264 @ 0x7ff4b2829a00] profile High, level 3.0
[libx264 @ 0x7ff4b2829a00] 264 - core 142 r2455 021c0dc - H.264/MPEG-4 AVC
codec - Copyleft 2003-2014 - http://www.videolan.org/x264.html - options:
cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1
psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1
cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=6
lookahead_threads=1 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=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=24
scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=23.0
qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
Output #0, mov, to 'title.mov':
Metadata:
major_brand : qt
minor_version : 512
compatible_brands: qt
title : ABC DEF
date : 2014-11-20T22:37:12+0900
date-jpn : 2014-11-20T22:37:12+0900
encoder : Lavf56.4.101
Stream #0:0(eng): Video: h264 (libx264) (avc1 / 0x31637661), yuv420p,
640x480, q=-1--1, 24 fps, 12288 tbn, 24 tbc (default)
Metadata:
creation_time : 2014-11-20 13:37:13
handler_name : DataHandler
encoder : Lavc56.1.100 libx264
Stream #0:1(eng): Audio: aac (libfaac) (mp4a / 0x6134706D), 44100 Hz,
mono, s16, 128 kb/s (default)
Metadata:
creation_time : 2014-11-20 13:37:13
handler_name : DataHandler
encoder : Lavc56.1.100 libfaac
Stream mapping:
Stream #0:0 -> #0:0 (h264 (native) -> h264 (libx264))
Stream #0:1 -> #0:1 (aac (native) -> aac (libfaac))
Press [q] to stop, [?] for help
frame= 48 fps= 40 q=-1.0 Lsize= 536kB time=00:00:02.02
bitrate=2175.4kbits/s
video:515kB audio:19kB subtitle:0kB other streams:0kB global headers:0kB
muxing overhead: 0.541025%
[libx264 @ 0x7ff4b2829a00] frame I:1 Avg QP:26.43 size: 33591
[libx264 @ 0x7ff4b2829a00] frame P:28 Avg QP:25.28 size: 14039
[libx264 @ 0x7ff4b2829a00] frame B:19 Avg QP:28.71 size: 5264
[libx264 @ 0x7ff4b2829a00] consecutive B-frames: 22.9% 70.8% 6.2% 0.0%
[libx264 @ 0x7ff4b2829a00] mb I I16..4: 2.9% 68.9% 28.2%
[libx264 @ 0x7ff4b2829a00] mb P I16..4: 0.3% 1.6% 0.8% P16..4: 52.6%
29.3% 13.9% 0.0% 0.0% skip: 1.5%
[libx264 @ 0x7ff4b2829a00] mb B I16..4: 0.0% 0.0% 0.0% B16..8: 49.9%
5.7% 1.2% direct:24.3% skip:18.8% L0:38.2% L1:53.9% BI: 7.9%
[libx264 @ 0x7ff4b2829a00] 8x8 transform intra:63.9% inter:57.0%
[libx264 @ 0x7ff4b2829a00] coded y,uvDC,uvAC intra: 86.4% 98.8% 94.5%
inter: 28.6% 84.4% 62.3%
[libx264 @ 0x7ff4b2829a00] i16 v,h,dc,p: 35% 23% 8% 33%
[libx264 @ 0x7ff4b2829a00] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 14% 16% 17% 6%
9% 8% 9% 9% 13%
[libx264 @ 0x7ff4b2829a00] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 20% 19% 14% 7%
8% 9% 8% 7% 8%
[libx264 @ 0x7ff4b2829a00] i8c dc,h,v,p: 55% 20% 13% 12%
[libx264 @ 0x7ff4b2829a00] Weighted P-Frames: Y:21.4% UV:14.3%
[libx264 @ 0x7ff4b2829a00] ref P L0: 68.3% 18.8% 9.7% 2.9% 0.3%
[libx264 @ 0x7ff4b2829a00] ref B L0: 98.3% 1.6% 0.0%
[libx264 @ 0x7ff4b2829a00] ref B L1: 99.7% 0.3%
[libx264 @ 0x7ff4b2829a00] kb/s:2106.88
~/Desktop/wrk$ ffprobe -i title.mov
ffprobe version 2.4.2 Copyright (c) 2007-2014 the FFmpeg developers
built on Oct 17 2014 19:56:34 with Apple LLVM version 6.0
(clang-600.0.51) (based on LLVM 3.5svn)
configuration: --prefix=/usr/local/Cellar/ffmpeg/2.4.2 --enable-shared
--enable-pthreads --enable-gpl --enable-version3 --enable-nonfree
--enable-hardcoded-tables --enable-avresample --enable-vda --cc=clang
--host-cflags= --host-ldflags= --enable-libx264 --enable-libfaac
--enable-libmp3lame --enable-libxvid --enable-libfreetype
libavutil 54. 7.100 / 54. 7.100
libavcodec 56. 1.100 / 56. 1.100
libavformat 56. 4.101 / 56. 4.101
libavdevice 56. 0.100 / 56. 0.100
libavfilter 5. 1.100 / 5. 1.100
libavresample 2. 1. 0 / 2. 1. 0
libswscale 3. 0.100 / 3. 0.100
libswresample 1. 1.100 / 1. 1.100
libpostproc 53. 0.100 / 53. 0.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'title.mov':
Metadata:
major_brand : qt
minor_version : 512
compatible_brands: qt
title : ABC DEF
date : 2014-11-20T22:37:12+0900
date-jpn : 2014-11-20T22:37:12+0900
encoder : Lavf56.4.101
Duration: 00:00:02.04, start: 0.023220, bitrate: 2150 kb/s
Stream #0:0(eng): Video: h264 (High) (avc1 / 0x31637661), yuv420p,
640x480, 2109 kb/s, 24 fps, 24 tbr, 12288 tbn, 48 tbc (default)
Metadata:
handler_name : DataHandler
encoder : Lavc56.1.100 libx264
Stream #0:1(eng): Audio: aac (mp4a / 0x6134706D), 44100 Hz, mono, fltp,
74 kb/s (default)
Metadata:
handler_name : DataHandler
~/Desktop/wrk$
++++ i fail to set location matadata ++++
~/Desktop/wrk$ ffmpeg -i src.mov -metadata
location="+11.1111+136.1361+015.000/" location.mov
ffmpeg version 2.4.2 Copyright (c) 2000-2014 the FFmpeg developers
built on Oct 17 2014 19:56:34 with Apple LLVM version 6.0
(clang-600.0.51) (based on LLVM 3.5svn)
configuration: --prefix=/usr/local/Cellar/ffmpeg/2.4.2 --enable-shared
--enable-pthreads --enable-gpl --enable-version3 --enable-nonfree
--enable-hardcoded-tables --enable-avresample --enable-vda --cc=clang
--host-cflags= --host-ldflags= --enable-libx264 --enable-libfaac
--enable-libmp3lame --enable-libxvid --enable-libfreetype
libavutil 54. 7.100 / 54. 7.100
libavcodec 56. 1.100 / 56. 1.100
libavformat 56. 4.101 / 56. 4.101
libavdevice 56. 0.100 / 56. 0.100
libavfilter 5. 1.100 / 5. 1.100
libavresample 2. 1. 0 / 2. 1. 0
libswscale 3. 0.100 / 3. 0.100
libswresample 1. 1.100 / 1. 1.100
libpostproc 53. 0.100 / 53. 0.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'src.mov':
Metadata:
major_brand : qt
minor_version : 512
compatible_brands: qt
creation_time : 2014-11-20 13:37:13
date : 2014-11-20T22:37:12+0900
date-jpn : 2014-11-20T22:37:12+0900
encoder : Lavf56.4.101
Duration: 00:00:02.02, start: 0.000000, bitrate: 3688 kb/s
Stream #0:0(eng): Video: h264 (Baseline) (avc1 / 0x31637661),
yuv420p(tv, smpte170m), 640x480, 3652 kb/s, 24 fps, 24 tbr, 19200 tbn,
38400 tbc (default)
Metadata:
creation_time : 2014-11-20 13:37:13
handler_name : DataHandler
encoder : H.264
Stream #0:1(eng): Audio: aac (mp4a / 0x6134706D), 44100 Hz, mono, fltp,
63 kb/s (default)
Metadata:
creation_time : 2014-11-20 13:37:13
handler_name : DataHandler
[libx264 @ 0x7f9e2b00bc00] using cpu capabilities: MMX2 SSE2Fast SSSE3
SSE4.2 AVX
[libx264 @ 0x7f9e2b00bc00] profile High, level 3.0
[libx264 @ 0x7f9e2b00bc00] 264 - core 142 r2455 021c0dc - H.264/MPEG-4 AVC
codec - Copyleft 2003-2014 - http://www.videolan.org/x264.html - options:
cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1
psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1
cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=6
lookahead_threads=1 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=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=24
scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=23.0
qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
Output #0, mov, to 'location.mov':
Metadata:
major_brand : qt
minor_version : 512
compatible_brands: qt
location : +11.1111+136.1361+015.000/
date : 2014-11-20T22:37:12+0900
date-jpn : 2014-11-20T22:37:12+0900
encoder : Lavf56.4.101
Stream #0:0(eng): Video: h264 (libx264) (avc1 / 0x31637661), yuv420p,
640x480, q=-1--1, 24 fps, 12288 tbn, 24 tbc (default)
Metadata:
creation_time : 2014-11-20 13:37:13
handler_name : DataHandler
encoder : Lavc56.1.100 libx264
Stream #0:1(eng): Audio: aac (libfaac) (mp4a / 0x6134706D), 44100 Hz,
mono, s16, 128 kb/s (default)
Metadata:
creation_time : 2014-11-20 13:37:13
handler_name : DataHandler
encoder : Lavc56.1.100 libfaac
Stream mapping:
Stream #0:0 -> #0:0 (h264 (native) -> h264 (libx264))
Stream #0:1 -> #0:1 (aac (native) -> aac (libfaac))
Press [q] to stop, [?] for help
frame= 48 fps=0.0 q=-1.0 Lsize= 536kB time=00:00:02.02
bitrate=2175.3kbits/s
video:515kB audio:19kB subtitle:0kB other streams:0kB global headers:0kB
muxing overhead: 0.537548%
[libx264 @ 0x7f9e2b00bc00] frame I:1 Avg QP:26.43 size: 33591
[libx264 @ 0x7f9e2b00bc00] frame P:28 Avg QP:25.28 size: 14039
[libx264 @ 0x7f9e2b00bc00] frame B:19 Avg QP:28.71 size: 5264
[libx264 @ 0x7f9e2b00bc00] consecutive B-frames: 22.9% 70.8% 6.2% 0.0%
[libx264 @ 0x7f9e2b00bc00] mb I I16..4: 2.9% 68.9% 28.2%
[libx264 @ 0x7f9e2b00bc00] mb P I16..4: 0.3% 1.6% 0.8% P16..4: 52.6%
29.3% 13.9% 0.0% 0.0% skip: 1.5%
[libx264 @ 0x7f9e2b00bc00] mb B I16..4: 0.0% 0.0% 0.0% B16..8: 49.9%
5.7% 1.2% direct:24.3% skip:18.8% L0:38.2% L1:53.9% BI: 7.9%
[libx264 @ 0x7f9e2b00bc00] 8x8 transform intra:63.9% inter:57.0%
[libx264 @ 0x7f9e2b00bc00] coded y,uvDC,uvAC intra: 86.4% 98.8% 94.5%
inter: 28.6% 84.4% 62.3%
[libx264 @ 0x7f9e2b00bc00] i16 v,h,dc,p: 35% 23% 8% 33%
[libx264 @ 0x7f9e2b00bc00] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 14% 16% 17% 6%
9% 8% 9% 9% 13%
[libx264 @ 0x7f9e2b00bc00] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 20% 19% 14% 7%
8% 9% 8% 7% 8%
[libx264 @ 0x7f9e2b00bc00] i8c dc,h,v,p: 55% 20% 13% 12%
[libx264 @ 0x7f9e2b00bc00] Weighted P-Frames: Y:21.4% UV:14.3%
[libx264 @ 0x7f9e2b00bc00] ref P L0: 68.3% 18.8% 9.7% 2.9% 0.3%
[libx264 @ 0x7f9e2b00bc00] ref B L0: 98.3% 1.6% 0.0%
[libx264 @ 0x7f9e2b00bc00] ref B L1: 99.7% 0.3%
[libx264 @ 0x7f9e2b00bc00] kb/s:2106.88
~/Desktop/wrk$ ffprobe -i location.mov
ffprobe version 2.4.2 Copyright (c) 2007-2014 the FFmpeg developers
built on Oct 17 2014 19:56:34 with Apple LLVM version 6.0
(clang-600.0.51) (based on LLVM 3.5svn)
configuration: --prefix=/usr/local/Cellar/ffmpeg/2.4.2 --enable-shared
--enable-pthreads --enable-gpl --enable-version3 --enable-nonfree
--enable-hardcoded-tables --enable-avresample --enable-vda --cc=clang
--host-cflags= --host-ldflags= --enable-libx264 --enable-libfaac
--enable-libmp3lame --enable-libxvid --enable-libfreetype
libavutil 54. 7.100 / 54. 7.100
libavcodec 56. 1.100 / 56. 1.100
libavformat 56. 4.101 / 56. 4.101
libavdevice 56. 0.100 / 56. 0.100
libavfilter 5. 1.100 / 5. 1.100
libavresample 2. 1. 0 / 2. 1. 0
libswscale 3. 0.100 / 3. 0.100
libswresample 1. 1.100 / 1. 1.100
libpostproc 53. 0.100 / 53. 0.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'location.mov':
Metadata:
major_brand : qt
minor_version : 512
compatible_brands: qt
date : 2014-11-20T22:37:12+0900
date-jpn : 2014-11-20T22:37:12+0900
encoder : Lavf56.4.101
Duration: 00:00:02.04, start: 0.023220, bitrate: 2149 kb/s
Stream #0:0(eng): Video: h264 (High) (avc1 / 0x31637661), yuv420p,
640x480, 2109 kb/s, 24 fps, 24 tbr, 12288 tbn, 48 tbc (default)
Metadata:
handler_name : DataHandler
encoder : Lavc56.1.100 libx264
Stream #0:1(eng): Audio: aac (mp4a / 0x6134706D), 44100 Hz, mono, fltp,
74 kb/s (default)
Metadata:
handler_name : DataHandler
~/Desktop/wrk$
2014-12-12 23:47 GMT+09:00 Carl Eugen Hoyos <cehoyos at ag.or.at>:
>
> Yutaka Kawase <ykawase1114 <at> gmail.com> writes:
>
> > ~/Desktop/wrk$ ffmpeg -hide_banner -i src.mov
>
> When asking for help here, please do not use
> the -hide_banner option.
>
> Do you have a mov file with location metadata?
>
> Carl Eugen
>
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
More information about the ffmpeg-user
mailing list