Removing a metadata tag from a specfic stream

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
9 messages Options
Reply | Threaded
Open this post in threaded view
|

Removing a metadata tag from a specfic stream

Thibeau
Hi
I'm trying to remove the comment tag which has the value Other but seem to
be unable to do so using ffmpeg.
I think it's because it's part of the stream that contains the cover art so
the comment belongs the cover art metadata not the global song metadata.
Any ideas what command I could use to remove this tag? .
Here's a pastebin of the outpot of ffprobe where I pointed an arrow towards
the tag I want to remove.
https://pastebin.com/wTiyFP9u
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: Removing a metadata tag from a specfic stream

MediaMouth
On Feb 5, 2021, at 3:48 AM, Thibeau <[hidden email]> wrote:

>
> Hi
> I'm trying to remove the comment tag which has the value Other but seem to
> be unable to do so using ffmpeg.
> I think it's because it's part of the stream that contains the cover art so
> the comment belongs the cover art metadata not the global song metadata.
> Any ideas what command I could use to remove this tag? .
> Here's a pastebin of the outpot of ffprobe where I pointed an arrow towards
> the tag I want to remove.
> https://pastebin.com/wTiyFP9u

Hi Thibeau,

Try this...
Copies file contents, changes 'comments' metadata to empty:

ffmpeg \
-i /path/to/source \
-metadata comment= \
-c copy \
/path/to/dest \

_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: Removing a metadata tag from a specfic stream

Thibeau
Hi MediaMouth,

I tried your command and had already tried it myself before. The output
file still contains the comment: Other metadata tag I think it isn't set to
empty beacuse it's not in the main stream but rather in the stream where
the cover art resides. For the full output see my original question output
hasn't changed.

On Fri, 5 Feb 2021 at 15:57, MediaMouth <[hidden email]> wrote:

> On Feb 5, 2021, at 3:48 AM, Thibeau <[hidden email]> wrote:
> >
> > Hi
> > I'm trying to remove the comment tag which has the value Other but seem
> to
> > be unable to do so using ffmpeg.
> > I think it's because it's part of the stream that contains the cover art
> so
> > the comment belongs the cover art metadata not the global song metadata.
> > Any ideas what command I could use to remove this tag? .
> > Here's a pastebin of the outpot of ffprobe where I pointed an arrow
> towards
> > the tag I want to remove.
> > https://pastebin.com/wTiyFP9u
>
> Hi Thibeau,
>
> Try this...
> Copies file contents, changes 'comments' metadata to empty:
>
> ffmpeg \
> -i /path/to/source \
> -metadata comment= \
> -c copy \
> /path/to/dest \
>
> _______________________________________________
> ffmpeg-user mailing list
> [hidden email]
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> [hidden email] with subject "unsubscribe".
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: Removing a metadata tag from a specfic stream

MediaMouth
Can you post the actual media (or at least a sample version if there are ownership issues)?
If yo can, I'll run a few tests.

> On Feb 5, 2021, at 8:46 AM, Thibeau <[hidden email]> wrote:
>
> Hi MediaMouth,
>
> I tried your command and had already tried it myself before. The output
> file still contains the comment: Other metadata tag I think it isn't set to
> empty beacuse it's not in the main stream but rather in the stream where
> the cover art resides. For the full output see my original question output
> hasn't changed.
>
> On Fri, 5 Feb 2021 at 15:57, MediaMouth <[hidden email]> wrote:
>
>> On Feb 5, 2021, at 3:48 AM, Thibeau <[hidden email]> wrote:
>>>
>>> Hi
>>> I'm trying to remove the comment tag which has the value Other but seem
>> to
>>> be unable to do so using ffmpeg.
>>> I think it's because it's part of the stream that contains the cover art
>> so
>>> the comment belongs the cover art metadata not the global song metadata.
>>> Any ideas what command I could use to remove this tag? .
>>> Here's a pastebin of the outpot of ffprobe where I pointed an arrow
>> towards
>>> the tag I want to remove.
>>> https://pastebin.com/wTiyFP9u
>>
>> Hi Thibeau,
>>
>> Try this...
>> Copies file contents, changes 'comments' metadata to empty:
>>
>> ffmpeg \
>> -i /path/to/source \
>> -metadata comment= \
>> -c copy \
>> /path/to/dest \
>>
>> _______________________________________________
>> ffmpeg-user mailing list
>> [hidden email]
>> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>>
>> To unsubscribe, visit link above, or email
>> [hidden email] with subject "unsubscribe".
> _______________________________________________
> ffmpeg-user mailing list
> [hidden email]
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> [hidden email] with subject "unsubscribe".

_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: Removing a metadata tag from a specfic stream

Thibeau
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 (link is only valid for 30 days sadly)

On Fri, 5 Feb 2021 at 17:28, MediaMouth <[hidden email]> wrote:

> Can you post the actual media (or at least a sample version if there are
> ownership issues)?
> If yo can, I'll run a few tests.
>
> > On Feb 5, 2021, at 8:46 AM, Thibeau <[hidden email]>
> wrote:
> >
> > Hi MediaMouth,
> >
> > I tried your command and had already tried it myself before. The output
> > file still contains the comment: Other metadata tag I think it isn't set
> to
> > empty beacuse it's not in the main stream but rather in the stream where
> > the cover art resides. For the full output see my original question
> output
> > hasn't changed.
> >
> > On Fri, 5 Feb 2021 at 15:57, MediaMouth <[hidden email]> wrote:
> >
> >> On Feb 5, 2021, at 3:48 AM, Thibeau <[hidden email]>
> wrote:
> >>>
> >>> Hi
> >>> I'm trying to remove the comment tag which has the value Other but seem
> >> to
> >>> be unable to do so using ffmpeg.
> >>> I think it's because it's part of the stream that contains the cover
> art
> >> so
> >>> the comment belongs the cover art metadata not the global song
> metadata.
> >>> Any ideas what command I could use to remove this tag? .
> >>> Here's a pastebin of the outpot of ffprobe where I pointed an arrow
> >> towards
> >>> the tag I want to remove.
> >>> https://pastebin.com/wTiyFP9u
> >>
> >> Hi Thibeau,
> >>
> >> Try this...
> >> Copies file contents, changes 'comments' metadata to empty:
> >>
> >> ffmpeg \
> >> -i /path/to/source \
> >> -metadata comment= \
> >> -c copy \
> >> /path/to/dest \
> >>
> >> _______________________________________________
> >> ffmpeg-user mailing list
> >> [hidden email]
> >> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
> >>
> >> To unsubscribe, visit link above, or email
> >> [hidden email] with subject "unsubscribe".
> > _______________________________________________
> > ffmpeg-user mailing list
> > [hidden email]
> > https://ffmpeg.org/mailman/listinfo/ffmpeg-user
> >
> > To unsubscribe, visit link above, or email
> > [hidden email] with subject "unsubscribe".
>
> _______________________________________________
> ffmpeg-user mailing list
> [hidden email]
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> [hidden email] with subject "unsubscribe".
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: Removing a metadata tag from a specfic stream

Carl Eugen Hoyos-2
In reply to this post by Thibeau
Am Fr., 5. Feb. 2021 um 13:54 Uhr schrieb Thibeau
<[hidden email]>:

> I'm trying to remove the comment tag which has the value
> Other but seem to be unable to do so using ffmpeg.

I may misunderstand but please note that FFmpeg is not able to
"remove" anything from a file, FFmpeg always creates a new
file with different properties than the input file (assuming non-
trivial formats).

When asking for support here, please always provide the command
line you tested together with the complete, uncut console output and
remember to test current FFmpeg git head, the only version
supported here.
And please avoid external resources, except for input files.

Carl Eugen
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: Removing a metadata tag from a specfic stream

Thibeau
Apologies,

the command was just ffprobe file. Next time will include it and not use pastebin but rather paste the uncut console output in the email itself.
Didn’t know about having to use the newest version must have missed it, yet again I offer my sincerest apologies.
That being said I don’t think in this specific case the version of ffmpeg will make a difference.
Also by deleting I indeed meant in the new file that ffmpeg creates, sorry for the confusion.

> On 5 Feb 2021, at 20:27, Carl Eugen Hoyos <[hidden email]> wrote:
>
> Am Fr., 5. Feb. 2021 um 13:54 Uhr schrieb Thibeau
> <[hidden email]>:
>
>> I'm trying to remove the comment tag which has the value
>> Other but seem to be unable to do so using ffmpeg.
>
> I may misunderstand but please note that FFmpeg is not able to
> "remove" anything from a file, FFmpeg always creates a new
> file with different properties than the input file (assuming non-
> trivial formats).
>
> When asking for support here, please always provide the command
> line you tested together with the complete, uncut console output and
> remember to test current FFmpeg git head, the only version
> supported here.
> And please avoid external resources, except for input files.
>
> Carl Eugen
> _______________________________________________
> ffmpeg-user mailing list
> [hidden email]
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> [hidden email] with subject "unsubscribe".
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: Removing a metadata tag from a specfic stream

MediaMouth
In reply to this post by Thibeau
On Feb 5, 2021, at 11:25 AM, Thibeau <[hidden email]> 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
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: Removing a metadata tag from a specfic stream

MediaMouth
On Feb 5, 2021, at 12:21 PM, MediaMouth <[hidden email]> wrote:
>
> 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'

One possibility would be to simply remove the album art (you could save it externally beforehand).
That will, in turn, get rid of the associated metadata "comment". I tested it.  It works.
From what I understand ffmpeg (and for that matter Adobe) can't handle album art for .flac files.

_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".