[FFmpeg-trac] #3753(ffmpeg:new): '-timecode' & '-metadata' not working: not creating a stream (tmcd) in output MOV

FFmpeg trac at avcodec.org
Wed Jul 2 23:23:58 CEST 2014


#3753: '-timecode' & '-metadata' not working: not creating a stream (tmcd) in
output MOV
-------------------------------------+-------------------------------------
             Reporter:  AgentJJ24    |                     Type:  defect
               Status:  new          |                 Priority:  important
            Component:  ffmpeg       |                  Version:  2.2.4
             Keywords:  mov,         |               Blocked By:
  timecode, metadata                 |  Reproduced by developer:  0
             Blocking:               |
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------
 Summary of the bug: I'm trying to use FFMPEG to update Timecode and
 "reel_name" metadata in an MOV.  I'm attempting to just create a new
 timecode and reelname metadata tag in the tmcd stream of an Output mov.
 It is not working.  The stream entirely disappears in the Output mov.  I
 tried just copying and altering, however, the stream isn't even copied
 from the Input.  I have tried copying with "-map 0 -c:d copy" and that'll
 copy the stream into the output file, but then I cannot change the
 metadata (timecode and reel_name).
 How to reproduce:
 {{{
 % ffmpeg -i ./INPUT.mov -vcodec copy -acodec copy -timecode 01:02:03:04
 -metadata reel_name=ABCD1234 ./OUTPUT.mov
 ffmpeg version 2.2.4-   http://johnvansickle.com/ffmpeg/    Copyright (c)
 2000-2014 the FFmpeg developers
   built on Jul  1 2014 22:10:48 with gcc 4.8 (Debian 4.8.3-4)
   configuration: --enable-gpl --enable-version3 --disable-shared
 --disable-debug --enable-runtime-cpudetect --enable-libmp3lame --enable-
 libx264 --enable-libwebp --enable-libspeex --enable-libvorbis --enable-
 libvpx --enable-libfreetype --enable-fontconfig --enable-libxvid --enable-
 libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora --enable-
 libvo-aacenc --enable-libvo-amrwbenc --enable-gray --enable-libopenjpeg
 --enable-libopus --disable-ffserver --enable-libass --enable-gnutls
 --cc=gcc-4.8
   libavutil      52. 66.100 / 52. 66.100
   libavcodec     55. 52.102 / 55. 52.102
   libavformat    55. 33.100 / 55. 33.100
   libavdevice    55. 10.100 / 55. 10.100
   libavfilter     4.  2.100 /  4.  2.100
   libswscale      2.  5.102 /  2.  5.102
   libswresample   0. 18.100 /  0. 18.100
   libpostproc    52.  3.100 / 52.  3.100
 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from './INPUT.mov':
   Metadata:
     creation_time   : 2014-06-29 03:18:04
   Duration: 00:00:47.42, start: 0.000000, bitrate: 664 kb/s
     Stream #0:0(eng): Video: h264 (Main) (avc1 / 0x31637661), yuv420p(tv,
 bt709), 854x480, 658 kb/s, 23.98 fps, 23.98 tbr, 24k tbn, 48k tbc
 (default)
     Metadata:
       creation_time   : 2014-06-29 03:18:04
       handler_name    : Apple Alias Data Handler
       timecode        : 00:00:00:00
     Stream #0:1(eng): Data: none (tmcd / 0x64636D74) (default)
     Metadata:
       creation_time   : 2014-06-29 03:18:27
       handler_name    : Apple Alias Data Handler
       timecode        : 00:00:00:00
 Output #0, mov, to './OUTPUT.mov':
   Metadata:
     timecode        : 01:02:03:04
     reel_name       : ABCD1234
     encoder         : Lavf55.33.100
     Stream #0:0(eng): Video: h264 (avc1 / 0x31637661), yuv420p, 854x480,
 q=2-31, 658 kb/s, 23.98 fps, 24k tbn, 24k tbc (default)
     Metadata:
       creation_time   : 2014-06-29 03:18:04
       handler_name    : Apple Alias Data Handler
       timecode        : 00:00:00:00
 Stream mapping:
   Stream #0:0 -> #0:0 (copy)
 Press [q] to stop, [?] for help
 frame= 1137 fps=0.0 q=-1.0 Lsize=    3824kB time=00:00:47.33 bitrate=
 661.8kbits/s
 video:3811kB audio:0kB subtitle:0 data:0 global headers:0kB muxing
 overhead 0.361878%
 }}}

 As you can see, the second stream[Stream #0:1(eng): Data: none (tmcd /
 0x64636D74) (default)] is not created in the output at all.  The metadata
 and timecode info MUST be in the tmcd stream, but it just keeps falling
 into the global metadata.

 Patches should be submitted to the ffmpeg-devel mailing list and not this
 bug tracker.

--
Ticket URL: <https://trac.ffmpeg.org/ticket/3753>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list