[FFmpeg-user] git version removes creation time of mp4 video

Ulf Zibis Ulf.Zibis at gmx.de
Thu Feb 27 21:22:29 EET 2020


Hi,

using the current git version of ffmpeg transcoding a mp4 video removes 
creation time and geo tags.
How can I prevent from this?

$ mediainfo 20200205_165401.mp4
General
Complete name                            : 20200205_165401.mp4
Format                                   : MPEG-4
Format profile                           : Base Media / Version 2
Codec ID                                 : mp42 (isom/mp42)
File size                                : 121 MiB
Duration                                 : 58 s 653 ms
Overall bit rate                         : 17.3 Mb/s
Encoded date                             : UTC 2020-02-05 
19:55:01        <-- removed
Tagged date                              : UTC 2020-02-05 
19:55:01        <-- removed
xyz                                      : -00.7655-047.1715/        <-- 
removed
com.android.version                      : 8.0.0

Video
ID                                       : 1
Format                                   : AVC
Format/Info                              : Advanced Video Codec
Format profile                           : High at L4
Format settings                          : CABAC / 1 Ref Frames
Format settings, CABAC                   : Yes
Format settings, ReFrames                : 1 frame
Format settings, GOP                     : M=1, N=30
Codec ID                                 : avc1
Codec ID/Info                            : Advanced Video Coding
Duration                                 : 58 s 653 ms
Source duration                          : 58 s 686 ms
Bit rate                                 : 17.0 Mb/s
Width                                    : 1 920 pixels
Height                                   : 1 080 pixels
Display aspect ratio                     : 16:9
Frame rate mode                          : Variable
Frame rate                               : 30.000 FPS
Minimum frame rate                       : 15.169 FPS
Maximum frame rate                       : 30.211 FPS
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 8 bits
Scan type                                : Progressive
Bits/(Pixel*Frame)                       : 0.273
Stream size                              : 119 MiB (98%)
Source stream size                       : 119 MiB (98%)
Title                                    : VideoHandle
Language                                 : English
Encoded date                             : UTC 2020-02-05 
19:55:01        <-- removed
Tagged date                              : UTC 2020-02-05 
19:55:01        <-- removed
mdhd_Duration                            : 58653

Audio
ID                                       : 2
Format                                   : AAC
Format/Info                              : Advanced Audio Codec
Format profile                           : LC
Codec ID                                 : mp4a-40-2
Duration                                 : 58 s 581 ms
Bit rate mode                            : Constant
Bit rate                                 : 256 kb/s
Channel(s)                               : 2 channels
Channel positions                        : Front: L R
Sampling rate                            : 48.0 kHz
Frame rate                               : 46.875 FPS (1024 SPF)
Compression mode                         : Lossy
Stream size                              : 1.79 MiB (1%)
Title                                    : SoundHandle
Language                                 : English
Encoded date                             : UTC 2020-02-05 
19:55:01        <-- removed
Tagged date                              : UTC 2020-02-05 
19:55:01        <-- removed


$ mediainfo 20200205_165401_2_git.mp4
General
Complete name                            : 20200205_165401_2_git.mp4
Format                                   : MPEG-4
Format profile                           : Base Media
Codec ID                                 : isom (isom/iso2/avc1/mp41)
File size                                : 17.4 MiB
Duration                                 : 58 s 700 ms
Overall bit rate                         : 2 486 kb/s
Writing application                      : Lavf58.38.100

Video
ID                                       : 1
Format                                   : AVC
Format/Info                              : Advanced Video Codec
Format profile                           : High at L3.1
Format settings                          : CABAC / 4 Ref Frames
Format settings, CABAC                   : Yes
Format settings, ReFrames                : 4 frames
Codec ID                                 : avc1
Codec ID/Info                            : Advanced Video Coding
Duration                                 : 58 s 700 ms
Bit rate                                 : 2 347 kb/s
Width                                    : 960 pixels
Height                                   : 540 pixels
Display aspect ratio                     : 16:9
Frame rate mode                          : Constant
Frame rate                               : 30.000 FPS
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 8 bits
Scan type                                : Progressive
Bits/(Pixel*Frame)                       : 0.151
Stream size                              : 16.4 MiB (94%)
Title                                    : VideoHandle
Writing library                          : x264 core 159 r2991 1771b55
Encoding settings                        : 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
Language                                 : English

Audio
ID                                       : 2
Format                                   : AAC
Format/Info                              : Advanced Audio Codec
Format profile                           : LC
Codec ID                                 : mp4a-40-2
Duration                                 : 58 s 603 ms
Bit rate mode                            : Constant
Bit rate                                 : 132 kb/s
Channel(s)                               : 2 channels
Channel positions                        : Front: L R
Sampling rate                            : 48.0 kHz
Frame rate                               : 46.875 FPS (1024 SPF)
Compression mode                         : Lossy
Stream size                              : 930 KiB (5%)
Title                                    : SoundHandle
Language                                 : English
Default                                  : Yes
Alternate group                          : 1


:~/Bilder/Tantra/Tao-Oasis/2020/Albert$ 
~/Projects/ffmpeg/ffmpeg-git-20200211-amd64-static/ffmpeg -i 
20200205_165401.mp4 -movflags +faststart -vf scale=w=iw/2:h=ih/2 
20200205_165401_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)
   configuration: --enable-gpl --enable-version3 --enable-static 
--disable-debug --disable-ffplay --disable-indev=sndio 
--disable-outdev=sndio --cc=gcc --enable-fontconfig --enable-frei0r 
--enable-gnutls --enable-gmp --enable-libgme --enable-gray 
--enable-libaom --enable-libfribidi --enable-libass --enable-libvmaf 
--enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb 
--enable-libopencore-amrwb --enable-libopenjpeg --enable-librubberband 
--enable-libsoxr --enable-libspeex --enable-libsrt --enable-libvorbis 
--enable-libopus --enable-libtheora --enable-libvidstab 
--enable-libvo-amrwbenc --enable-libvpx --enable-libwebp 
--enable-libx264 --enable-libx265 --enable-libxml2 --enable-libdav1d 
--enable-libxvid --enable-libzvbi --enable-libzimg
   libavutil      56. 39.100 / 56. 39.100
   libavcodec     58. 68.102 / 58. 68.102
   libavformat    58. 38.100 / 58. 38.100
   libavdevice    58.  9.103 / 58.  9.103
   libavfilter     7. 75.100 /  7. 75.100
   libswscale      5.  6.100 /  5.  6.100
   libswresample   3.  6.100 /  3.  6.100
   libpostproc    55.  6.100 / 55.  6.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '20200205_165401.mp4':
   Metadata:
     major_brand     : mp42
     minor_version   : 0
     compatible_brands: isommp42
     creation_time   : 2020-02-05T19:55:01.000000Z
     location        : -00.7655-047.1715/
     location-eng    : -00.7655-047.1715/
     com.android.version: 8.0.0
   Duration: 00:00:58.65, start: 0.000000, bitrate: 17273 kb/s
     Stream #0:0(eng): Video: h264 (High) (avc1 / 0x31637661), 
yuv420p(tv, bt709), 1920x1080, 17013 kb/s, SAR 1:1 DAR 16:9, 29.99 fps, 
30 tbr, 90k tbn, 180k tbc (default)
     Metadata:
       creation_time   : 2020-02-05T19:55:01.000000Z
       handler_name    : VideoHandle
     Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, 
stereo, fltp, 256 kb/s (default)
     Metadata:
       creation_time   : 2020-02-05T19:55:01.000000Z
       handler_name    : SoundHandle
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 @ 0x61bbbc0] using SAR=1/1
[libx264 @ 0x61bbbc0] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.1 
Cache64
[libx264 @ 0x61bbbc0] profile High, level 3.1, 4:2:0, 8-bit
[libx264 @ 0x61bbbc0] 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_165401_2_git.mp4':
   Metadata:
     major_brand     : mp42
     minor_version   : 0
     compatible_brands: isommp42
     com.android.version: 8.0.0
     location        : -00.7655-047.1715/
     location-eng    : -00.7655-047.1715/
     encoder         : Lavf58.38.100
     Stream #0:0(eng): Video: h264 (libx264) (avc1 / 0x31637661), 
yuv420p, 960x540 [SAR 1:1 DAR 16:9], q=-1--1, 30 fps, 15360 tbn, 30 tbc 
(default)
     Metadata:
       creation_time   : 2020-02-05T19:55:01.000000Z
       handler_name    : VideoHandle
       encoder         : Lavc58.68.102 libx264
     Side data:
       cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: N/A
     Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, 
stereo, fltp, 128 kb/s (default)
     Metadata:
       creation_time   : 2020-02-05T19:55:01.000000Z
       handler_name    : SoundHandle
       encoder         : Lavc58.68.102 aac
frame=   14 fps=0.0 q=0.0 size=       0kB time=00:00:01.00 bitrate=   
0.4kbits/sframe=   32 fps= 31 q=0.0 size=       0kB time=00:00:01.08 
bitrate=   0.4kbits/sframe=   47 fps= 29 q=0.0 size=       0kB 
time=00:00:02.00 bitrate=   0.2kbits/sframe=   58 fps= 27 q=29.0 
size=       0kB time=00:00:02.00 bitrate= 0.2kbits/frame=   68 fps= 25 
q=29.0 size=       0kB time=00:00:03.00 bitrate=   0.1kbits/frame=   78 
fps= 24 q=29.0 size=     256kB time=00:00:03.00 bitrate= 
697.3kbits/frame=   88 fps= 24 q=29.0 size=     256kB time=00:00:03.00 
bitrate= 697.3kbits/frame=   98 fps= 23 q=29.0 size=     256kB 
time=00:00:04.01 bitrate= 523.0kbits/frame=  109 fps= 23 q=29.0 
size=     512kB time=00:00:04.01 bitrate=1045.9kbits/frame=  118 fps= 22 
q=29.0 size=     512kB time=00:00:04.01 bitrate=1045.9kbits/frame=  128 
fps= 22 q=29.0 size=     512kB time=00:00:05.01 bitrate= 
836.7kbits/frame=  138 fps= 22 q=29.0 size=     768kB time=00:00:05.01 
bitrate=1255.0kbits/frame=  150 fps= 22 q=29.0 size=     768kB 
time=00:00:05.01 bitrate=1255.0kbits/frame=  161 fps= 22 q=29.0 
size=     768kB time=00:00:06.01 bitrate=1045.9kbits/frame=  170 fps= 21 
q=29.0 size=    1024kB time=00:00:06.01 bitrate=1394.4kbits/frame=  182 
fps= 21 q=29.0 size=    1024kB time=00:00:06.01 bitrate=1394.4kbits/
[.....]
frame= 1755 fps= 17 q=29.0 size=   16896kB time=00:00:58.53 
bitrate=2364.5kbits/[mp4 @ 0x61c6700] Starting second pass: moving the 
moov atom to the beginning of the file
frame= 1761 fps= 17 q=-1.0 Lsize=   17814kB time=00:00:58.60 
bitrate=2490.4kbits/s dup=1 drop=0 speed=0.562x
video:16820kB audio:930kB subtitle:0kB other streams:0kB global 
headers:0kB muxing overhead: 0.363400%
[libx264 @ 0x61bbbc0] frame I:8     Avg QP:20.17  size: 71230
[libx264 @ 0x61bbbc0] frame P:444   Avg QP:22.89  size: 22734
[libx264 @ 0x61bbbc0] frame B:1309  Avg QP:26.81  size:  5011
[libx264 @ 0x61bbbc0] consecutive B-frames:  0.8%  0.2%  0.2% 98.8%
[libx264 @ 0x61bbbc0] mb I  I16..4: 16.0% 46.4% 37.6%
[libx264 @ 0x61bbbc0] mb P  I16..4:  2.3%  5.8%  1.2%  P16..4: 33.0% 
21.2% 13.5%  0.0%  0.0%    skip:23.0%
[libx264 @ 0x61bbbc0] mb B  I16..4:  0.1%  0.1%  0.1%  B16..8: 37.1%  
4.6%  1.5%  direct: 5.3%  skip:51.3%  L0:44.2% L1:48.0% BI: 7.7%
[libx264 @ 0x61bbbc0] 8x8 transform intra:59.1% inter:49.1%
[libx264 @ 0x61bbbc0] coded y,uvDC,uvAC intra: 54.9% 40.2% 16.0% inter: 
20.1% 5.2% 0.4%
[libx264 @ 0x61bbbc0] i16 v,h,dc,p: 14% 52% 18% 16%
[libx264 @ 0x61bbbc0] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 17% 29% 33% 3%  3%  
2%  5%  2%  6%
[libx264 @ 0x61bbbc0] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 23% 18% 21% 6%  6%  
5%  8%  4%  8%
[libx264 @ 0x61bbbc0] i8c dc,h,v,p: 68% 17% 14%  1%
[libx264 @ 0x61bbbc0] Weighted P-Frames: Y:4.1% UV:0.9%
[libx264 @ 0x61bbbc0] ref P L0: 58.2% 14.4% 17.4%  9.9%  0.2%
[libx264 @ 0x61bbbc0] ref B L0: 88.2%  8.8%  2.9%
[libx264 @ 0x61bbbc0] ref B L1: 92.8%  7.2%
[libx264 @ 0x61bbbc0] kb/s:2347.26
[aac @ 0x6191a40] Qavg: 310.465

-Ulf

-- 
Von meinem Seibert gesendet



More information about the ffmpeg-user mailing list