Opened 4 years ago

Closed 4 years ago

#4339 closed defect (duplicate)

Metadata isn't copied

Reported by: Atarikid Owned by:
Priority: normal Component: ffmpeg
Version: 2.5.2 Keywords:
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

I tried to copy the metadata of QuickTIme format file but the metadata is not copied to the destination file.

Here is the output:

atarikid-MacBook?-Pro:~ atarikid$ /Users/atarikid/Desktop/ffmpeg -i /Users/atarikid/Desktop/metadata.mov -c:v copy -c:a copy -map_metadata 0 /Users/atarikid/Desktop/test.mov
ffmpeg version 2.5.2 Copyright (c) 2000-2014 the FFmpeg developers

built on Jan 1 2015 20:24:48 with llvm-gcc 4.2.1 (LLVM build 2336.11.00)
configuration: --prefix=/Volumes/tempdisk/sw --as=yasm --enable-gpl --enable-pthreads --disable-ffplay --disable-ffserver --disable-shared --enable-static --enable-libvpx --disable-decoder=libvpx --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libx264 --enable-libx265 --enable-libxvid --enable-zlib --enable-avfilter --enable-fontconfig --enable-libfreetype --enable-libass --enable-libutvideo --enable-filters --enable-postproc --enable-runtime-cpudetect
libavutil 54. 15.100 / 54. 15.100
libavcodec 56. 13.100 / 56. 13.100
libavformat 56. 15.102 / 56. 15.102
libavdevice 56. 3.100 / 56. 3.100
libavfilter 5. 2.103 / 5. 2.103
libswscale 3. 1.101 / 3. 1.101
libswresample 1. 1.100 / 1. 1.100
libpostproc 53. 3.100 / 53. 3.100

Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/Users/atarikid/Desktop/metadata.mov':

Metadata:

creation_time : 2014-06-13 15:08:53
location : +48.858219+002.2947+0.000000/CRSWGS_84
location-eng : +48.858219+002.2947+0.000000/CRSWGS_84
timecode : 00:00:00:00

Duration: 00:00:05.42, start: 0.000000, bitrate: 15776 kb/s

Stream #0:0(eng): Data: none (tmcd / 0x64636D74), 0 kb/s (default)
Metadata:

creation_time : 2014-06-13 15:08:53
handler_name : Apple Alias Data Handler
timecode : 00:00:00:00

Stream #0:1(eng): Audio: aac (LC) (aac / 0x20636161), 48000 Hz, stereo, fltp, 128 kb/s (default)
Metadata:

creation_time : 2014-06-13 15:08:53
handler_name : Apple Alias Data Handler

Stream #0:2(eng): Video: h264 (Main) (avc1 / 0x31637661), yuv420p(bt709), 1920x1080 [SAR 1:1 DAR 16:9], 14885 kb/s, 30.08 fps, 29.97 tbr, 30k tbn, 59.94 tbc (default)
Metadata:

creation_time : 2014-06-13 15:08:53
handler_name : Apple Alias Data Handler
encoder : H.264

File '/Users/atarikid/Desktop/test.mov' already exists. Overwrite ? [y/N] y
Output #0, mov, to '/Users/atarikid/Desktop/test.mov':

Metadata:

creation_time : 2014-06-13 15:08:53
location : +48.858219+002.2947+0.000000/CRSWGS_84
location-eng : +48.858219+002.2947+0.000000/CRSWGS_84
timecode : 00:00:00:00
encoder : Lavf56.15.102
Stream #0:0(eng): Video: h264 (avc1 / 0x31637661), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], q=2-31, 14885 kb/s, 30.08 fps, 30k tbn, 30k tbc (default)
Metadata:

creation_time : 2014-06-13 15:08:53
handler_name : Apple Alias Data Handler
encoder : H.264

Stream #0:1(eng): Audio: aac (mp4a / 0x6134706D), 48000 Hz, stereo, 128 kb/s (default)
Metadata:

creation_time : 2014-06-13 15:08:53
handler_name : Apple Alias Data Handler

Stream mapping:

Stream #0:2 -> #0:0 (copy)
Stream #0:1 -> #0:1 (copy)

Press [q] to stop, ? for help
frame= 163 fps=0.0 q=-1.0 Lsize= 9937kB time=00:00:05.41 bitrate=15023.4kbits/s
video:9846kB audio:85kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.066142%

The test.mov does not contain any metadata. Here is the scanned file:

atarikid-MacBook?-Pro:~ atarikid $ /Users/atarikid/Desktop/ffmpeg -i /Users/atarikid/Desktop/test.mov
ffmpeg version 2.5.2 Copyright (c) 2000-2014 the FFmpeg developers

built on Jan 1 2015 20:24:48 with llvm-gcc 4.2.1 (LLVM build 2336.11.00)
configuration: --prefix=/Volumes/tempdisk/sw --as=yasm --enable-gpl --enable-pthreads --disable-ffplay --disable-ffserver --disable-shared --enable-static --enable-libvpx --disable-decoder=libvpx --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libx264 --enable-libx265 --enable-libxvid --enable-zlib --enable-avfilter --enable-fontconfig --enable-libfreetype --enable-libass --enable-libutvideo --enable-filters --enable-postproc --enable-runtime-cpudetect
libavutil 54. 15.100 / 54. 15.100
libavcodec 56. 13.100 / 56. 13.100
libavformat 56. 15.102 / 56. 15.102
libavdevice 56. 3.100 / 56. 3.100
libavfilter 5. 2.103 / 5. 2.103
libswscale 3. 1.101 / 3. 1.101
libswresample 1. 1.100 / 1. 1.100
libpostproc 53. 3.100 / 53. 3.100

Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/Users/atarikid/Desktop/test.mov':

Metadata:

major_brand : qt
minor_version : 512
compatible_brands: qt
creation_time : 2014-06-13 15:08:53
encoder : Lavf56.15.102

Duration: 00:00:05.42, start: 0.000000, bitrate: 15022 kb/s

Stream #0:0(eng): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], 14885 kb/s, 30.08 fps, 29.97 tbr, 30k tbn, 59.94 tbc (default)
Metadata:

creation_time : 2014-06-13 15:08:53
handler_name : DataHandler?
encoder : H.264
timecode : 00:00:00:00

Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 128 kb/s (default)
Metadata:

creation_time : 2014-06-13 15:08:53
handler_name : DataHandler?

Stream #0:2(eng): Data: none (tmcd / 0x64636D74), 0 kb/s
Metadata:

creation_time : 2014-06-13 15:08:53
handler_name : DataHandler?
timecode : 00:00:00:00

At least one output file must be specified

As you may notice: the
location : +48.858219+002.2947+0.000000/CRSWGS_84
location-eng : +48.858219+002.2947+0.000000/CRSWGS_84 are not copied.

Change History (1)

comment:1 Changed 4 years ago by 11rcombs

  • Resolution set to duplicate
  • Status changed from new to closed

Duplicate of #4337

Note: See TracTickets for help on using tickets.