[FFmpeg-trac] #8551(avformat:new): Metadata log is not consistent with actual output

FFmpeg trac at avcodec.org
Wed Mar 4 18:12:04 EET 2020


#8551: Metadata log is not consistent with actual output
----------------------------------+--------------------------------------
             Reporter:  UlfZibis  |                     Type:  defect
               Status:  new       |                 Priority:  normal
            Component:  avformat  |                  Version:  git-master
             Keywords:  log       |               Blocked By:  1439
             Blocking:            |  Reproduced by developer:  0
Analyzed by developer:  0         |
----------------------------------+--------------------------------------
 Summary of the bug:[[BR]]
 When transcoding. creation_time of the original is not copied to the
 output file, but it is listed in the Output section of ffmpeg.


 How to reproduce:
 {{{
 $ ~/Projects/ffmpeg/ffmpeg-git-20200211-amd64-static/ffmpeg -i
 20200205_161649.mp4 -vf scale=w=iw/2:h=ih/2 -movflags +faststart
 20200205_161649_2_git.mp4
 ffmpeg version N-51730-gf15007afa9-static
 https://johnvansickle.com/ffmpeg/  Copyright (c) 2000-2020 the FFmpeg
 developers
   built with gcc 8 (Debian 8.3.0-6)
 [.....]
 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '20200205_161649.mp4':
   Metadata:
     major_brand     : mp42
     minor_version   : 0
     compatible_brands: isommp42
     creation_time   : 2020-02-05T19:22:17.000000Z
     com.android.version: 8.0.0
   Duration: 00:04:08.84, start: 0.000000, bitrate: 17264 kb/s
     Stream #0:0(eng): Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv,
 bt709), 1920x1080, 17004 kb/s, SAR 1:1 DAR 16:9, 30 fps, 30 tbr, 90k tbn,
 180k tbc (default)
     Metadata:
       rotate          : 90
       creation_time   : 2020-02-05T19:22:17.000000Z
       handler_name    : VideoHandle
     Side data:
       displaymatrix: rotation of -90.00 degrees
     Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz,
 stereo, fltp, 256 kb/s (default)
     Metadata:
       creation_time   : 2020-02-05T19:22:17.000000Z
       handler_name    : SoundHandle
 File '20200205_161649_2_git.mp4' already exists. Overwrite? [y/N] y
 Stream mapping:
   Stream #0:0 -> #0:0 (h264 (native) -> h264 (libx264))
   Stream #0:1 -> #0:1 (aac (native) -> aac (native))
 Press [q] to stop, [?] for help
 [libx264 @ 0x68ac6c0] using SAR=1/1
 [libx264 @ 0x68ac6c0] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.1
 Cache64
 [libx264 @ 0x68ac6c0] profile High, level 3.1, 4:2:0, 8-bit
 [libx264 @ 0x68ac6c0] 264 - core 159 r2991 1771b55 - H.264/MPEG-4 AVC
 codec - Copyleft 2003-2019 - 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=3
 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=25
 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, mp4, to '20200205_161649_2_git.mp4':
   Metadata:
     major_brand     : mp42
     minor_version   : 0
     compatible_brands: isommp42
     com.android.version: 8.0.0
     encoder         : Lavf58.38.100
     Stream #0:0(eng): Video: h264 (libx264) (avc1 / 0x31637661), yuv420p,
 540x960 [SAR 1:1 DAR 9:16], q=-1--1, 30 fps, 15360 tbn, 30 tbc (default)
     Metadata:
       encoder         : Lavc58.68.102 libx264
       creation_time   : 2020-02-05T19:22:17.000000Z      <-- listed, but
 not written
       handler_name    : VideoHandle
     Side data:
       cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: N/A
       displaymatrix: rotation of -0.00 degrees
     Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz,
 stereo, fltp, 128 kb/s (default)
     Metadata:
       creation_time   : 2020-02-05T19:22:17.000000Z      <-- listed, but
 not written
       handler_name    : SoundHandle
       encoder         : Lavc58.68.102 aac
 frame=   24 fps=0.0 q=0.0 size=       0kB time=00:00:01.00 bitrate=
 0.4kbits/sframe=   46 fps= 44 q=0.0 size=       0kB time=00:00:02.00
 bitrate=   0.2kbits/sframe=   50 fps= 31 q=29.0 size=       0kB
 time=00:00:02.00 bitrate=   0.2kbits/frame=   56 fps= 26 q=29.0 size=
 0kB time=00:00:02.00 bitrate=   0.2kbits/frame=   62 fps= 22 q=29.0 size=
 0kB time=00:00:02.00 bitrate=   0.2kbits/

 $ ~/Projects/ffmpeg/ffmpeg-git-20200211-amd64-static/ffprobe
 20200205_161649_2_git.mp4
 ffprobe version N-51730-gf15007afa9-static
 https://johnvansickle.com/ffmpeg/  Copyright (c) 2007-2020 the FFmpeg
 developers
   built with gcc 8 (Debian 8.3.0-6)
 [.....]
 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '20200205_161649_2_git.mp4':
   Metadata:
     major_brand     : isom
     minor_version   : 512
     compatible_brands: isomiso2avc1mp41
     encoder         : Lavf58.38.100
   Duration: 00:04:08.90, start: 0.000000, bitrate: 3087 kb/s
     Stream #0:0(eng): Video: h264 (High) (avc1 / 0x31637661), yuv420p,
 540x960 [SAR 1:1 DAR 9:16], 2950 kb/s, 30 fps, 30 tbr, 15360 tbn, 60 tbc
 (default)
     Metadata:
       handler_name    : VideoHandle
     Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz,
 stereo, fltp, 128 kb/s (default)
     Metadata:
       handler_name    : SoundHandle
 }}}

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


More information about the FFmpeg-trac mailing list