[FFmpeg-user] Removing a metadata tag from a specfic stream
MediaMouth
communque at gmail.com
Fri Feb 5 22:21:07 EET 2021
On Feb 5, 2021, at 11:25 AM, Thibeau <vercruyssen.thibeau at gmail.com> wrote:
>
> Here's the link to a file with all the metadata tags, the values of them
> might slightly differ but nothing that matters.
> https://ufile.io/bgunj34e <https://ufile.io/bgunj34e> (link is only valid for 30 days sadly)
Oh, interesting, you're right.
The issue isn't the metadata for the audio file per se.
You're trying to remove metadata from the album art (which seems to be held on video track 0 of your file)
So maybe the proper question is how to properly target that album cover art's metadata for change.
The obvious approach (targeting it as the first video track) didn't work:
> ffmpeg -y -i '29 My Girl.flac' -metadata:s:v:0 comment= '29 My GirlB.flac'
> ffprobe '29 My GirlB.flac'
[See output below]
(For reference, OP's source file can be downloaded here: https://ufile.io/bgunj34e <https://ufile.io/bgunj34e> )
ffmpeg version 4.3.1 Copyright (c) 2000-2020 the FFmpeg developers
built with Apple clang version 12.0.0 (clang-1200.0.32.28)
configuration: --prefix=/usr/local/Cellar/ffmpeg/4.3.1_9 --enable-shared --enable-pthreads --enable-version3 --enable-avresample --cc=clang --host-cflags= --host-ldflags= --enable-ffplay --enable-gnutls --enable-gpl --enable-libaom --enable-libbluray --enable-libdav1d --enable-libmp3lame --enable-libopus --enable-librav1e --enable-librubberband --enable-libsnappy --enable-libsrt --enable-libtesseract --enable-libtheora --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libxvid --enable-lzma --enable-libfontconfig --enable-libfreetype --enable-frei0r --enable-libass --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-librtmp --enable-libspeex --enable-libsoxr --enable-videotoolbox --enable-libzmq --enable-libzimg --disable-libjack --disable-indev=jack
libavutil 56. 51.100 / 56. 51.100
libavcodec 58. 91.100 / 58. 91.100
libavformat 58. 45.100 / 58. 45.100
libavdevice 58. 10.100 / 58. 10.100
libavfilter 7. 85.100 / 7. 85.100
libavresample 4. 0. 0 / 4. 0. 0
libswscale 5. 7.100 / 5. 7.100
libswresample 3. 7.100 / 3. 7.100
libpostproc 55. 7.100 / 55. 7.100
Input #0, flac, from '29 My Girl.flac':
Metadata:
ALBUM : Prodigal Son: Season 1 (Original Television Soundtrack)
ARTIST : Nathaniel Blume
DATE : 2020
TITLE : My Girl
track : 29
Duration: 00:02:55.60, start: 0.000000, bitrate: 1424 kb/s
Stream #0:0: Audio: flac, 44100 Hz, stereo, s32 (24 bit)
Stream #0:1: Video: mjpeg (Baseline), yuvj444p(pc, bt470bg/unknown/unknown), 640x640 [SAR 118:118 DAR 1:1], 90k tbr, 90k tbn, 90k tbc (attached pic)
Metadata:
comment : Other
Stream mapping:
Stream #0:1 -> #0:0 (mjpeg (native) -> png (native))
Stream #0:0 -> #0:1 (flac (native) -> flac (native))
Press [q] to stop, [?] for help
[swscaler @ 0x7f8fa0008000] deprecated pixel format used, make sure you did set range correctly
[flac @ 0x7f8fd0824000] Frame rate very high for a muxer not efficiently supporting it.
Please consider specifying a lower framerate, a different muxer or -vsync 2
Output #0, flac, to '29 My GirlB.flac':
Metadata:
ALBUM : Prodigal Son: Season 1 (Original Television Soundtrack)
ARTIST : Nathaniel Blume
DATE : 2020
TITLE : My Girl
track : 29
encoder : Lavf58.45.100
Stream #0:0: Video: png, rgb24(progressive), 640x640 [SAR 1:1 DAR 1:1], q=2-31, 200 kb/s, 90k fps, 90k tbn, 90k tbc (attached pic)
Metadata:
encoder : Lavc58.91.100 png
Stream #0:1: Audio: flac, 44100 Hz, stereo, s32 (24 bit), 128 kb/s
Metadata:
encoder : Lavc58.91.100 flac
frame= 1 fps=0.0 q=-0.0 Lsize= 31013kB time=00:02:55.60 bitrate=1446.8kbits/s speed= 377x
video:565kB audio:30440kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.026684%
ffprobe version 4.3.1 Copyright (c) 2007-2020 the FFmpeg developers
built with Apple clang version 12.0.0 (clang-1200.0.32.28)
configuration: --prefix=/usr/local/Cellar/ffmpeg/4.3.1_9 --enable-shared --enable-pthreads --enable-version3 --enable-avresample --cc=clang --host-cflags= --host-ldflags= --enable-ffplay --enable-gnutls --enable-gpl --enable-libaom --enable-libbluray --enable-libdav1d --enable-libmp3lame --enable-libopus --enable-librav1e --enable-librubberband --enable-libsnappy --enable-libsrt --enable-libtesseract --enable-libtheora --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libxvid --enable-lzma --enable-libfontconfig --enable-libfreetype --enable-frei0r --enable-libass --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-librtmp --enable-libspeex --enable-libsoxr --enable-videotoolbox --enable-libzmq --enable-libzimg --disable-libjack --disable-indev=jack
libavutil 56. 51.100 / 56. 51.100
libavcodec 58. 91.100 / 58. 91.100
libavformat 58. 45.100 / 58. 45.100
libavdevice 58. 10.100 / 58. 10.100
libavfilter 7. 85.100 / 7. 85.100
libavresample 4. 0. 0 / 4. 0. 0
libswscale 5. 7.100 / 5. 7.100
libswresample 3. 7.100 / 3. 7.100
libpostproc 55. 7.100 / 55. 7.100
Input #0, flac, from '29 My GirlB.flac':
Metadata:
ALBUM : Prodigal Son: Season 1 (Original Television Soundtrack)
ARTIST : Nathaniel Blume
DATE : 2020
TITLE : My Girl
track : 29
encoder : Lavf58.45.100
Duration: 00:02:55.60, start: 0.000000, bitrate: 1446 kb/s
Stream #0:0: Audio: flac, 44100 Hz, stereo, s32 (24 bit)
Stream #0:1: Video: png, rgb24(pc), 640x640 [SAR 1:1 DAR 1:1], 90k tbr, 90k tbn, 90k tbc (attached pic)
Metadata:
comment : Other
More information about the ffmpeg-user
mailing list