Tags were removed
Hi, I have transcoded a video and in the result some tags were removed, e.g. creation time and geo tags. What can I do to preserve them? $ 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 Tagged date : UTC 2020-02-05 19:55:01 xyz : -00.7655-047.1715/ com.android.version : 8.0.0 Video ID : 1 Format : AVC Format/Info : Advanced Video Codec Format profile : High@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 Tagged date : UTC 2020-02-05 19:55:01 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 Tagged date : UTC 2020-02-05 19:55:01 $ mediainfo 20200205_165401_2.mp4 General Complete name : 20200205_165401_2.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.29.100 Video ID : 1 Format : AVC Format/Info : Advanced Video Codec Format profile : High@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 157 r2969 d4099dd 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 $ ffmpeg -i 20200205_165401.mp4 -movflags +faststart -vf scale=w=iw/2:h=ih/2 20200205_165401_2.mp4 ffmpeg version 4.2-static https://johnvansickle.com/ffmpeg/ Copyright (c) 2000-2019 the FFmpeg developers built with gcc 6.3.0 (Debian 6.3.0-18+deb9u1) 20170516 configuration: --enable-gpl --enable-version3 --enable-static --disable-debug --disable-ffplay --disable-indev=sndio --disable-outdev=sndio --cc=gcc-6 --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. 31.100 / 56. 31.100 libavcodec 58. 54.100 / 58. 54.100 libavformat 58. 29.100 / 58. 29.100 libavdevice 58. 8.100 / 58. 8.100 libavfilter 7. 57.100 / 7. 57.100 libswscale 5. 5.100 / 5. 5.100 libswresample 3. 5.100 / 3. 5.100 libpostproc 55. 5.100 / 55. 5.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 File '20200205_165401_2.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 @ 0x72fd3c0] using SAR=1/1 [libx264 @ 0x72fd3c0] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.1 Cache64 [libx264 @ 0x72fd3c0] profile Progressive High, level 3.1, 4:2:0, 8-bit [libx264 @ 0x72fd3c0] 264 - core 157 r2969 d4099dd - 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.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.29.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.54.100 libx264 Side data: cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: -1 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.54.100 aac frame= 11 fps=0.0 q=0.0 size= 0kB time=00:00:01.00 bitrate= 0.4kbits/sframe= 30 fps= 25 q=0.0 size= 0kB time=00:00:01.00 bitrate= 0.4kbits/sframe= 40 fps= 23 q=0.0 size= 0kB time=00:00:02.00 bitrate= 0.2kbits/sframe= 49 fps= 21 q=29.0 size= 0kB time=00:00:02.00 bitrate= 0.2kbits/frame= 55 fps= 19 q=29.0 size= 0kB time=00:00:02.00 bitrate= 0.2kbits/frame= 60 fps= 17 q=29.0 size= 0kB time=00:00:02.00 bitrate= 0.2kbits/frame= 66 fps= 16 q=29.0 size= 0kB time=00:00:03.00 bitrate= 0.1kbits/frame= 72 fps= 16 q=29.0 size= 0kB time=00:00:03.00 bitrate= 0.1kbits/frame= 78 fps= 15 q=29.0 size= 256kB time=00:00:03.00 bitrate= 697.3kbits/frame= 83 fps= 14 q=29.0 size= 256kB time=00:00:03.00 bitrate= 697.3kbits/frame= 87 fps= 14 q=29.0 size= 256kB time=00:00:03.00 bitrate= 697.3kbits/frame= 92 fps= 13 q=29.0 size= 256kB time=00:00:03.00 bitrate= 697.3kbits/frame= 99 fps= 13 q=29.0 size= 256kB time=00:00:04.01 bitrate= 523.0kbits/frame= 105 fps= 13 q=29.0 size= 512kB time=00:00:04.01 bitrate=1045.9kbits/frame= 110 fps= 13 q=29.0 size= 512kB time=00:00:04.01 bitrate=1045.9kbits/frame= 114 fps= 12 q=29.0 size= 512kB time=00:00:04.01 bitrate=1045.9kbits/frame= 120 fps= 12 q=29.0 size= 512kB time=00:00:04.01 bitrate=1045.9kbits/frame= 124 fps= 12 q=29.0 size= 512kB time=00:00:04.01 bitrate=1045.9kbits/frame= 130 fps= 12 q=29.0 size= 512kB time=00:00:05.01 bitrate= 836.7kbits/ [.....] frame= 1761 fps= 10 q=29.0 size= 17152kB time=00:00:58.53 bitrate=2400.3kbits/[mp4 @ 0x7314500] Starting second pass: moving the moov atom to the beginning of the file frame= 1761 fps= 10 q=-1.0 Lsize= 17814kB time=00:00:58.60 bitrate=2490.4kbits/s dup=1 drop=0 speed=0.334x video:16820kB audio:930kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.363378% [libx264 @ 0x72fd3c0] frame I:8 Avg QP:20.17 size: 71230 [libx264 @ 0x72fd3c0] frame P:444 Avg QP:22.89 size: 22734 [libx264 @ 0x72fd3c0] frame B:1309 Avg QP:26.81 size: 5011 [libx264 @ 0x72fd3c0] consecutive B-frames: 0.8% 0.2% 0.2% 98.8% [libx264 @ 0x72fd3c0] mb I I16..4: 16.0% 46.4% 37.6% [libx264 @ 0x72fd3c0] 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 @ 0x72fd3c0] 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 @ 0x72fd3c0] 8x8 transform intra:59.1% inter:49.1% [libx264 @ 0x72fd3c0] coded y,uvDC,uvAC intra: 54.9% 40.2% 16.0% inter: 20.1% 5.2% 0.4% [libx264 @ 0x72fd3c0] i16 v,h,dc,p: 14% 52% 18% 16% [libx264 @ 0x72fd3c0] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 17% 29% 33% 3% 3% 2% 5% 2% 6% [libx264 @ 0x72fd3c0] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 23% 18% 21% 6% 6% 5% 8% 4% 8% [libx264 @ 0x72fd3c0] i8c dc,h,v,p: 68% 17% 14% 1% [libx264 @ 0x72fd3c0] Weighted P-Frames: Y:4.1% UV:0.9% [libx264 @ 0x72fd3c0] ref P L0: 58.2% 14.4% 17.4% 9.9% 0.2% [libx264 @ 0x72fd3c0] ref B L0: 88.2% 8.8% 2.9% [libx264 @ 0x72fd3c0] ref B L1: 92.8% 7.2% [libx264 @ 0x72fd3c0] kb/s:2347.26 [aac @ 0x72faf40] Qavg: 310.465 -- Von meinem Seibert gesendet
participants (1)
-
Ulf Zibis