[FFmpeg-user] how could i set a location metadata??
Yutaka Kawase
ykawase1114 at gmail.com
Fri Dec 12 14:50:49 CET 2014
HI all,
I wish i could set a location metadata to my movie file as i expect google
photos show me the location on a map if I set the location metadata.
Will somebody help me how should I do instead of things like below;
Thank you very much in advance.
+++ source file does not have location metadata +++
~/Desktop/wrk$ ffprobe -hide_banner src.mov
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'src.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.000000, bitrate: 1859 kb/s
Stream #0:0(eng): Video: h264 (High) (avc1 / 0x31637661), yuv420p,
640x480, 1776 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,
73 kb/s (default)
Metadata:
handler_name : DataHandler
~/Desktop/wrk$
+++ I fail to set location metadata +++
~/Desktop/wrk$ ffmpeg -hide_banner -i src.mov -metadata
location="+11.1111+136.1361+010.000/" -c copy dst.mov
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'src.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.000000, bitrate: 1859 kb/s
Stream #0:0(eng): Video: h264 (High) (avc1 / 0x31637661), yuv420p,
640x480, 1776 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,
73 kb/s (default)
Metadata:
handler_name : DataHandler
Output #0, mov, to 'dst.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
location : +11.1111+136.1361+010.000/
encoder : Lavf56.4.101
Stream #0:0(eng): Video: h264 (avc1 / 0x31637661), yuv420p, 640x480,
q=2-31, 1776 kb/s, 24 fps, 12288 tbn, 12288 tbc (default)
Metadata:
handler_name : DataHandler
encoder : Lavc56.1.100 libx264
Stream #0:1(eng): Audio: aac (mp4a / 0x6134706D), 44100 Hz, mono, 73
kb/s (default)
Metadata:
handler_name : DataHandler
Stream mapping:
Stream #0:0 -> #0:0 (copy)
Stream #0:1 -> #0:1 (copy)
Press [q] to stop, [?] for help
frame= 49 fps=0.0 q=-1.0 Lsize= 464kB time=00:00:02.04
bitrate=1859.9kbits/s
video:443kB audio:18kB subtitle:0kB other streams:0kB global headers:0kB
muxing overhead: 0.628714%
~/Desktop/wrk$ ffprobe -hide_banner dst.mov
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'dst.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.000000, bitrate: 1859 kb/s
Stream #0:0(eng): Video: h264 (High) (avc1 / 0x31637661), yuv420p,
640x480, 1776 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,
73 kb/s (default)
Metadata:
handler_name : DataHandler
~/Desktop/wrk$
+++ I can add title metadata instead +++
~/Desktop/wrk$ ffmpeg -hide_banner -i src.mov -metadata title="a b c" -c
copy dst.mov
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'src.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.000000, bitrate: 1859 kb/s
Stream #0:0(eng): Video: h264 (High) (avc1 / 0x31637661), yuv420p,
640x480, 1776 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,
73 kb/s (default)
Metadata:
handler_name : DataHandler
Output #0, mov, to 'dst.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
title : a b c
encoder : Lavf56.4.101
Stream #0:0(eng): Video: h264 (avc1 / 0x31637661), yuv420p, 640x480,
q=2-31, 1776 kb/s, 24 fps, 12288 tbn, 12288 tbc (default)
Metadata:
handler_name : DataHandler
encoder : Lavc56.1.100 libx264
Stream #0:1(eng): Audio: aac (mp4a / 0x6134706D), 44100 Hz, mono, 73
kb/s (default)
Metadata:
handler_name : DataHandler
Stream mapping:
Stream #0:0 -> #0:0 (copy)
Stream #0:1 -> #0:1 (copy)
Press [q] to stop, [?] for help
frame= 49 fps=0.0 q=-1.0 Lsize= 464kB time=00:00:02.04
bitrate=1859.9kbits/s
video:443kB audio:18kB subtitle:0kB other streams:0kB global headers:0kB
muxing overhead: 0.632315%
~/Desktop/wrk$ ffprobe -hide_banner dst.mov
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'dst.mov':
Metadata:
major_brand : qt
minor_version : 512
compatible_brands: qt
title : a b c
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.000000, bitrate: 1859 kb/s
Stream #0:0(eng): Video: h264 (High) (avc1 / 0x31637661), yuv420p,
640x480, 1776 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,
73 kb/s (default)
Metadata:
handler_name : DataHandler
~/Desktop/wrk$
More information about the ffmpeg-user
mailing list