[FFmpeg-user] Removing a metadata tag from a specfic stream

2021-02-05 Thread 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
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

[FFmpeg-user] Removing a metadata tag from a specfic stream

2021-02-06 Thread Thibeau
Yea I suppose I could just remove the art entirely and that works, but could 
ffmpeg get the art out of the songs? I wouldn’t know how to get them and out. 
But if it’s possible I might be able to just reattach them afterwards and see 
if the tag hasn’t gone or maybe edit while the image is separated.

> On 6 Feb 2021, at 00:56, MediaMouth  wrote:
> 
> On Feb 5, 2021, at 12:21 PM, MediaMouth  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
> ffmpeg-user@ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
> 
> To unsubscribe, visit link above, or email
> ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

Re: [FFmpeg-user] Removing a metadata tag from a specfic stream

2021-02-05 Thread MediaMouth
On Feb 5, 2021, at 3:48 AM, Thibeau  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
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

Re: [FFmpeg-user] Removing a metadata tag from a specfic stream

2021-02-05 Thread 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  wrote:

> On Feb 5, 2021, at 3:48 AM, Thibeau  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
> ffmpeg-user@ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

Re: [FFmpeg-user] Removing a metadata tag from a specfic stream

2021-02-05 Thread 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  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  wrote:
> 
>> On Feb 5, 2021, at 3:48 AM, Thibeau  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
>> ffmpeg-user@ffmpeg.org
>> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>> 
>> To unsubscribe, visit link above, or email
>> ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
> ___
> ffmpeg-user mailing list
> ffmpeg-user@ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
> 
> To unsubscribe, visit link above, or email
> ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

Re: [FFmpeg-user] Removing a metadata tag from a specfic stream

2021-02-05 Thread 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  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 
> 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  wrote:
> >
> >> On Feb 5, 2021, at 3:48 AM, Thibeau 
> 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
> >> ffmpeg-user@ffmpeg.org
> >> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
> >>
> >> To unsubscribe, visit link above, or email
> >> ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
> > ___
> > ffmpeg-user mailing list
> > ffmpeg-user@ffmpeg.org
> > https://ffmpeg.org/mailman/listinfo/ffmpeg-user
> >
> > To unsubscribe, visit link above, or email
> > ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
>
> ___
> ffmpeg-user mailing list
> ffmpeg-user@ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

Re: [FFmpeg-user] Removing a metadata tag from a specfic stream

2021-02-05 Thread Carl Eugen Hoyos
Am Fr., 5. Feb. 2021 um 13:54 Uhr schrieb Thibeau
:

> 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
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

Re: [FFmpeg-user] Removing a metadata tag from a specfic stream

2021-02-05 Thread 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  wrote:
> 
> Am Fr., 5. Feb. 2021 um 13:54 Uhr schrieb Thibeau
> :
> 
>> 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
> ffmpeg-user@ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
> 
> To unsubscribe, visit link above, or email
> ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

Re: [FFmpeg-user] Removing a metadata tag from a specfic stream

2021-02-05 Thread MediaMouth
On Feb 5, 2021, at 11:25 AM, Thibeau  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  (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  )


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
  libavformat58. 45.100 / 58. 45.100
  libavdevice58. 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
  libpostproc55.  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.00, 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-

Re: [FFmpeg-user] Removing a metadata tag from a specfic stream

2021-02-05 Thread MediaMouth
On Feb 5, 2021, at 12:21 PM, MediaMouth  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
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

Re: [FFmpeg-user] Removing a metadata tag from a specfic stream

2021-02-06 Thread Paul B Mahol
Despite other incorrect information. FFmpeg can handle album art for .flac
file just fine.

It just can not alter metadata of attached art file IIRC.

On Sat, Feb 6, 2021 at 10:29 AM Thibeau 
wrote:

> Yea I suppose I could just remove the art entirely and that works, but
> could ffmpeg get the art out of the songs? I wouldn’t know how to get them
> and out. But if it’s possible I might be able to just reattach them
> afterwards and see if the tag hasn’t gone or maybe edit while the image is
> separated.
>
> > On 6 Feb 2021, at 00:56, MediaMouth  wrote:
> >
> > On Feb 5, 2021, at 12:21 PM, MediaMouth  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
> > ffmpeg-user@ffmpeg.org
> > https://ffmpeg.org/mailman/listinfo/ffmpeg-user
> >
> > To unsubscribe, visit link above, or email
> > ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
> ___
> ffmpeg-user mailing list
> ffmpeg-user@ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

Re: [FFmpeg-user] Removing a metadata tag from a specfic stream

2021-02-06 Thread Thibeau
Interestingly I can split the cover art out using ffmpeg. But even after that 
the metadata on the image itself I can’t seem to find a way to edit it. Tried 
exiftools and everything. So might just be a weird tag value

Met vriendelijke groeten
Vercruyssen Thibeau

> On 6 Feb 2021, at 11:01, Paul B Mahol  wrote:
> 
> Despite other incorrect information. FFmpeg can handle album art for .flac
> file just fine.
> 
> It just can not alter metadata of attached art file IIRC.
> 
>> On Sat, Feb 6, 2021 at 10:29 AM Thibeau 
>> wrote:
>> 
>> Yea I suppose I could just remove the art entirely and that works, but
>> could ffmpeg get the art out of the songs? I wouldn’t know how to get them
>> and out. But if it’s possible I might be able to just reattach them
>> afterwards and see if the tag hasn’t gone or maybe edit while the image is
>> separated.
>> 
 On 6 Feb 2021, at 00:56, MediaMouth  wrote:
>>> 
>>> On Feb 5, 2021, at 12:21 PM, MediaMouth  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
>>> ffmpeg-user@ffmpeg.org
>>> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>>> 
>>> To unsubscribe, visit link above, or email
>>> ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
>> ___
>> ffmpeg-user mailing list
>> ffmpeg-user@ffmpeg.org
>> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>> 
>> To unsubscribe, visit link above, or email
>> ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
> ___
> ffmpeg-user mailing list
> ffmpeg-user@ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
> 
> To unsubscribe, visit link above, or email
> ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

Re: [FFmpeg-user] Removing a metadata tag from a specfic stream

2021-02-06 Thread Harvey Pikelberger


> On Feb 6, 2021, at 02:01, Paul B Mahol  wrote:
> 
> Despite other incorrect information. FFmpeg can handle album art for .flac
> file just fine.

Paul, thanks for the correction.
I was able to extract the art to a separate file and also remove the art, which 
in turn removed the associated metadata. (Thibeau, I'll send you those commands 
momentarily.  Paul may improve on it.  He knows this stuff far better)

Paul, are you saying FFmpeg can add album art to .flac files?  I seems possible 
do so with mp3 manipulating id3 info, but how to do so with .flac?Thanks


___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

Re: [FFmpeg-user] Removing a metadata tag from a specfic stream

2021-02-06 Thread MediaMouth
> On Feb 6, 2021, at 3:12 AM, Thibeau  wrote:
> 
> Interestingly I can split the cover art out using ffmpeg. But even after that 
> the metadata on the image itself I can’t seem to find a way to edit it. Tried 
> exiftools and everything. So might just be a weird tag value



Thibeau, you may have already figured his much out...

This extracts the art:
> ffmpeg -i '29 My Girl.flac' -an -vcodec copy '29 My Girl.png'

This removes the art along with the associated metadata (comment=other)
> ffmpeg -i '29 My Girl.flac' -map 0 -map -0:v:0 -c copy '29 My Girl-NoArt.flac'

I'd be interested to know how to put the art back and if it's possible maybe 
assign metadata to that before or during that process.
If I'm understanding Paul, you can't edit the metadata on the art "stream" 
after the fact.


___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

Re: [FFmpeg-user] Removing a metadata tag from a specfic stream

2021-02-06 Thread Thibeau
I indeed figured out how to extract the cover art than remove it from the song.

I already know how to place it back too. The problem is I don’t know what the 
metadata comment tag is. 
I can’t find it on the image after extracting with exiftools or any other tool 
for that matter. If I reattach the cover afterwards with ffmpeg, the metadata 
tag is still there.
I guess it must be stored somewhere, but I have no idea how to acces or change 

P.S the commands I used to split/extract/... just came from stackoverflow 
answers, happy to send to commands here if you need them.

> On 6 Feb 2021, at 16:27, MediaMouth  wrote:
> 
> 
>> 
>> On Feb 6, 2021, at 3:12 AM, Thibeau  wrote:
>> 
>> Interestingly I can split the cover art out using ffmpeg. But even after 
>> that the metadata on the image itself I can’t seem to find a way to edit it. 
>> Tried exiftools and everything. So might just be a weird tag value
> 
> 
> 
> Thibeau, you may have already figured his much out...
> 
> This extracts the art:
>> ffmpeg -i '29 My Girl.flac' -an -vcodec copy '29 My Girl.png'
> 
> This removes the art along with the associated metadata (comment=other)
>> ffmpeg -i '29 My Girl.flac' -map 0 -map -0:v:0 -c copy '29 My 
>> Girl-NoArt.flac'
> 
> I'd be interested to know how to put the art back and if it's possible maybe 
> assign metadata to that before or during that process.
> If I'm understanding Paul, you can't edit the metadata on the art "stream" 
> after the fact.
> 
> 
> ___
> ffmpeg-user mailing list
> ffmpeg-user@ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
> 
> To unsubscribe, visit link above, or email
> ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

Re: [FFmpeg-user] Removing a metadata tag from a specfic stream

2021-02-06 Thread MediaMouth

lOn Feb 6, 2021, at 07:44, Thibeau  wrote:
> 
> I indeed figured out how to extract the cover art than remove it from the 
> song.
> 
> I already know how to place it back too. The problem is I don’t know what the 
> metadata comment tag is. 
> I can’t find it on the image after extracting with exiftools or any other 
> tool for that matter.
I saw the same. It seems to be metadata associated with that video stream.


> If I reattach the cover afterwards with ffmpeg, the metadata tag is still 
> there.
Ugh.  Always coming back as "comment=other"?

> I guess it must be stored somewhere, but I have no idea how to acces or 
> change 
I'm hoping one of the FFmpeg devs can shed some light on this
 

> 
> P.S the commands I used to split/extract/... just came from stackoverflow 
> answers, happy to send to commands here if you need them.
That would be great.  Thanks.  I haven't found one that works for .flac  yet.


___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

Re: [FFmpeg-user] Removing a metadata tag from a specfic stream

2021-02-06 Thread Thibeau
>Ugh.  Always coming back as "comment=other"?
Yea, but I'm not sure the value of tag is other and not just a value ffmpeg
doesn't  recognise and theirfor defaults to showing Other.

> I'm hoping one of the FFmpeg devs can shed some light on this
Same, I'm a real noob at ffmpeg. Trying to learn it but it's really hard
with the limited time I have to do it.

>That would be great.  Thanks.  I haven't found one that works for .flac
yet.
Disclaimer the commands are all for the file I uploaded if it's another
file don't forget to rename it in the commands.

> ffmpeg -i '29 My Girl.flac' -an -vcodec copy '29 My Girl.png'

This removes the art along with the associated metadata (comment=other)
> ffmpeg -i '29 My Girl.flac' -map 0 -map -0:v:0 -c copy '29 My
Girl-NoArt.flac'

Reattach the image:
ffmpeg -i 29\ My\ Girl-NoArt.flac -i 29\ My\ Girl.png -map 1 -map 0 -c copy
-disposition:0 attached_pic out.flac (refrence:
https://stackoverflow.com/questions/54717175/how-do-i-add-a-custom-thumbnail-to-a-mp4-file-using-ffmpeg
)

Hope this helps!



On Sat, 6 Feb 2021 at 16:34, MediaMouth  wrote:

>
> lOn Feb 6, 2021, at 07:44, Thibeau  wrote:
> >
> > I indeed figured out how to extract the cover art than remove it from
> the song.
> >
> > I already know how to place it back too. The problem is I don’t know
> what the metadata comment tag is.
> > I can’t find it on the image after extracting with exiftools or any
> other tool for that matter.
> I saw the same. It seems to be metadata associated with that video stream.
>
>
> > If I reattach the cover afterwards with ffmpeg, the metadata tag is
> still there.
> Ugh.  Always coming back as "comment=other"?
>
> > I guess it must be stored somewhere, but I have no idea how to acces or
> change
> I'm hoping one of the FFmpeg devs can shed some light on this
>
>
> >
> > P.S the commands I used to split/extract/... just came from
> stackoverflow answers, happy to send to commands here if you need them.
> That would be great.  Thanks.  I haven't found one that works for .flac
> yet.
>
>
> ___
> ffmpeg-user mailing list
> ffmpeg-user@ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

Re: [FFmpeg-user] Removing a metadata tag from a specfic stream

2021-02-06 Thread Paul B Mahol
On Sat, Feb 6, 2021 at 3:52 PM Harvey Pikelberger 
wrote:

>
>
> > On Feb 6, 2021, at 02:01, Paul B Mahol  wrote:
> >
> > Despite other incorrect information. FFmpeg can handle album art for
> .flac
> > file just fine.
>
> Paul, thanks for the correction.
> I was able to extract the art to a separate file and also remove the art,
> which in turn removed the associated metadata. (Thibeau, I'll send you
> those commands momentarily.  Paul may improve on it.  He knows this stuff
> far better)
>
> Paul, are you saying FFmpeg can add album art to .flac files?  I seems
> possible do so with mp3 manipulating id3 info, but how to do so with
> .flac?Thanks
>
>
I take random flac with cover art and converted it to flac with ffmpeg,
cover art is kept.


>
> ___
> ffmpeg-user mailing list
> ffmpeg-user@ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

Re: [FFmpeg-user] Removing a metadata tag from a specfic stream

2021-02-06 Thread Paul B Mahol
On Sun, Feb 7, 2021 at 12:12 AM Paul B Mahol  wrote:

>
>
> On Sat, Feb 6, 2021 at 3:52 PM Harvey Pikelberger 
> wrote:
>
>>
>>
>> > On Feb 6, 2021, at 02:01, Paul B Mahol  wrote:
>> >
>> > Despite other incorrect information. FFmpeg can handle album art for
>> .flac
>> > file just fine.
>>
>> Paul, thanks for the correction.
>> I was able to extract the art to a separate file and also remove the art,
>> which in turn removed the associated metadata. (Thibeau, I'll send you
>> those commands momentarily.  Paul may improve on it.  He knows this stuff
>> far better)
>>
>> Paul, are you saying FFmpeg can add album art to .flac files?  I seems
>> possible do so with mp3 manipulating id3 info, but how to do so with
>> .flac?Thanks
>>
>>
> I take random flac with cover art and converted it to flac with ffmpeg,
> cover art is kept.
>


Also, note that I use git version, not any release version but git version.


>
>
>>
>> ___
>> ffmpeg-user mailing list
>> ffmpeg-user@ffmpeg.org
>> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>>
>> To unsubscribe, visit link above, or email
>> ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
>
>
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

Re: [FFmpeg-user] Removing a metadata tag from a specfic stream

2021-02-06 Thread MediaMouth
On Feb 6, 2021, at 15:13, Paul B Mahol  wrote:
> 
> I take random flac with cover art and converted it to flac with ffmpeg,
> cover art is kept.

Is there any way at all to get control over the per stream metadata -- 
specifically the 1st video stream which seems to be the one holding the art?

And would you know why it contains, by default, the key/value pair 
"comment:Other"?

Thanks.
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

Re: [FFmpeg-user] Removing a metadata tag from a specfic stream

2021-02-06 Thread Paul B Mahol
Here is full command:

ffmpeg -i COVER.png -i AUDIO.flac -map:v 0 -disposition:v:0 attached_pic
-map:a 1 FINAL.flac

On Sat, Feb 6, 2021 at 6:01 PM Thibeau 
wrote:

> >Ugh.  Always coming back as "comment=other"?
> Yea, but I'm not sure the value of tag is other and not just a value ffmpeg
> doesn't  recognise and theirfor defaults to showing Other.
>
> > I'm hoping one of the FFmpeg devs can shed some light on this
> Same, I'm a real noob at ffmpeg. Trying to learn it but it's really hard
> with the limited time I have to do it.
>
> >That would be great.  Thanks.  I haven't found one that works for .flac
> yet.
> Disclaimer the commands are all for the file I uploaded if it's another
> file don't forget to rename it in the commands.
>
> > ffmpeg -i '29 My Girl.flac' -an -vcodec copy '29 My Girl.png'
>
> This removes the art along with the associated metadata (comment=other)
> > ffmpeg -i '29 My Girl.flac' -map 0 -map -0:v:0 -c copy '29 My
> Girl-NoArt.flac'
>
> Reattach the image:
> ffmpeg -i 29\ My\ Girl-NoArt.flac -i 29\ My\ Girl.png -map 1 -map 0 -c copy
> -disposition:0 attached_pic out.flac (refrence:
>
> https://stackoverflow.com/questions/54717175/how-do-i-add-a-custom-thumbnail-to-a-mp4-file-using-ffmpeg
> )
>
> Hope this helps!
>
>
>
> On Sat, 6 Feb 2021 at 16:34, MediaMouth  wrote:
>
> >
> > lOn Feb 6, 2021, at 07:44, Thibeau 
> wrote:
> > >
> > > I indeed figured out how to extract the cover art than remove it from
> > the song.
> > >
> > > I already know how to place it back too. The problem is I don’t know
> > what the metadata comment tag is.
> > > I can’t find it on the image after extracting with exiftools or any
> > other tool for that matter.
> > I saw the same. It seems to be metadata associated with that video
> stream.
> >
> >
> > > If I reattach the cover afterwards with ffmpeg, the metadata tag is
> > still there.
> > Ugh.  Always coming back as "comment=other"?
> >
> > > I guess it must be stored somewhere, but I have no idea how to acces or
> > change
> > I'm hoping one of the FFmpeg devs can shed some light on this
> >
> >
> > >
> > > P.S the commands I used to split/extract/... just came from
> > stackoverflow answers, happy to send to commands here if you need them.
> > That would be great.  Thanks.  I haven't found one that works for .flac
> > yet.
> >
> >
> > ___
> > ffmpeg-user mailing list
> > ffmpeg-user@ffmpeg.org
> > https://ffmpeg.org/mailman/listinfo/ffmpeg-user
> >
> > To unsubscribe, visit link above, or email
> > ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
> ___
> ffmpeg-user mailing list
> ffmpeg-user@ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

Re: [FFmpeg-user] Removing a metadata tag from a specfic stream

2021-02-06 Thread Paul B Mahol
On Sun, Feb 7, 2021 at 12:23 AM MediaMouth  wrote:

> On Feb 6, 2021, at 15:13, Paul B Mahol  wrote:
> >
> > I take random flac with cover art and converted it to flac with ffmpeg,
> > cover art is kept.
>
> Is there any way at all to get control over the per stream metadata --
> specifically the 1st video stream which seems to be the one holding the art?
>
> And would you know why it contains, by default, the key/value pair
> "comment:Other"?
>
>
Can you share file?

ffmpeg -i INPUT.png -i AUDIO.flac -map:v 0 -metadata comment=Other
-disposition:v:0 attached_pic -map:a 1 -metadata album=test FINAL.flac

Note that metadata order is important. The command above adds comment
metadata to video stream.



> Thanks.
> ___
> ffmpeg-user mailing list
> ffmpeg-user@ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

Re: [FFmpeg-user] Removing a metadata tag from a specfic stream

2021-02-06 Thread Thibeau

Here’s the link I previously already shared.
https://ufile.io/bgunj34e (link is only valid for 30 days sadly)

On Fri, 5 Feb 2021 at 17:28, MediaMouth  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  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  wrote:
> > 
> >> On Feb 5, 2021, at 3:48 AM, Thibeau  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
> >> ffmpeg-user@ffmpeg.org
> >> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
> >> 
> >> To unsubscribe, visit link above, or email
> >> ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
> > ___
> > ffmpeg-user mailing list
> > ffmpeg-user@ffmpeg.org
> > https://ffmpeg.org/mailman/listinfo/ffmpeg-user
> > 
> > To unsubscribe, visit link above, or email
> > ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
> 
> ___
> ffmpeg-user mailing list
> ffmpeg-user@ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
> 
> To unsubscribe, visit link above, or email
> ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

Re: [FFmpeg-user] Removing a metadata tag from a specfic stream

2021-02-06 Thread MediaMouth
On Feb 6, 2021, at 3:32 PM, Paul B Mahol  wrote:
> 
> Can you share file?
Yes.  The O.P. made it available here: https://ufile.io/bgunj34e 


> 
> ffmpeg -i INPUT.png -i AUDIO.flac -map:v 0 -metadata comment=Other
> -disposition:v:0 attached_pic -map:a 1 -metadata album=test FINAL.flac
> 
> Note that metadata order is important. The command above adds comment
> metadata to video stream.

Thanks for posting.  Clear and helpful.  Unfortunately, I got an error
Here are the steps I did...

ffmpeg -i '29 My Girl.flac' -an -vcodec copy '29 My Girl.png'; #Extract the 
album art to an external file.
ffmpeg -i '29 My Girl.flac' -map 0 -map -0:v:0 -c copy '29 My Girl-NoArt.flac'; 
#Remove the album art, save results to a new .flac file.
ffmpeg -i '29 My Girl-NoArt.flac' -i '29 My Girl.png' -map:v 0 -metadata 
comment=SomethingOtherThanOther -disposition:v:0 attached_pic -map:a 1 
-metadata comment= '29 My Girl-ReArt.flac'; #Add the album art back using the 
metadata commands as you suggest, and store to yet another .flac file.
Error received:  [swscaler @ 0x7f9648038000] deprecated pixel format used, make 
sure you did set range correctly


___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

Re: [FFmpeg-user] Removing a metadata tag from a specfic stream

2021-02-06 Thread Thibeau
Can second I get this message to but ffmpeg still continues. The end file 
however doesn’t set the metadata to the image it seems. I made sure to respect 
the order.
Be sure to mention if it’s a mistake on my end.
Maybe if you run with the file it works and it’s indeed my fault.
Thanks already to everyone who helped!
You guys and girls are awesome!

> On 7 Feb 2021, at 00:59, MediaMouth  wrote:
> 
> On Feb 6, 2021, at 3:32 PM, Paul B Mahol  wrote:
>> 
>> Can you share file?
> Yes.  The O.P. made it available here: https://ufile.io/bgunj34e 
> 
> 
>> 
>> ffmpeg -i INPUT.png -i AUDIO.flac -map:v 0 -metadata comment=Other
>> -disposition:v:0 attached_pic -map:a 1 -metadata album=test FINAL.flac
>> 
>> Note that metadata order is important. The command above adds comment
>> metadata to video stream.
> 
> Thanks for posting.  Clear and helpful.  Unfortunately, I got an error
> Here are the steps I did...
> 
> ffmpeg -i '29 My Girl.flac' -an -vcodec copy '29 My Girl.png'; #Extract the 
> album art to an external file.
> ffmpeg -i '29 My Girl.flac' -map 0 -map -0:v:0 -c copy '29 My 
> Girl-NoArt.flac'; #Remove the album art, save results to a new .flac file.
> ffmpeg -i '29 My Girl-NoArt.flac' -i '29 My Girl.png' -map:v 0 -metadata 
> comment=SomethingOtherThanOther -disposition:v:0 attached_pic -map:a 1 
> -metadata comment= '29 My Girl-ReArt.flac'; #Add the album art back using the 
> metadata commands as you suggest, and store to yet another .flac file.
> Error received:  [swscaler @ 0x7f9648038000] deprecated pixel format used, 
> make sure you did set range correctly
> 
> 
> ___
> ffmpeg-user mailing list
> ffmpeg-user@ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
> 
> To unsubscribe, visit link above, or email
> ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

Re: [FFmpeg-user] Removing a metadata tag from a specfic stream

2021-02-07 Thread Paul B Mahol
On Sun, Feb 7, 2021 at 12:59 AM MediaMouth  wrote:

> On Feb 6, 2021, at 3:32 PM, Paul B Mahol  wrote:
> >
> > Can you share file?
> Yes.  The O.P. made it available here: https://ufile.io/bgunj34e <
> https://ufile.io/bgunj34e>
>
> >
> > ffmpeg -i INPUT.png -i AUDIO.flac -map:v 0 -metadata comment=Other
> > -disposition:v:0 attached_pic -map:a 1 -metadata album=test FINAL.flac
> >
> > Note that metadata order is important. The command above adds comment
> > metadata to video stream.
>
> Thanks for posting.  Clear and helpful.  Unfortunately, I got an error
> Here are the steps I did...
>

Your steps are all invalid. Why you put first audio then video?
My command only works with first video stream and after that audio stream.
In ffmpeg every item position matters.


> ffmpeg -i '29 My Girl.flac' -an -vcodec copy '29 My Girl.png'; #Extract
> the album art to an external file.
> ffmpeg -i '29 My Girl.flac' -map 0 -map -0:v:0 -c copy '29 My
> Girl-NoArt.flac'; #Remove the album art, save results to a new .flac file.
> ffmpeg -i '29 My Girl-NoArt.flac' -i '29 My Girl.png' -map:v 0 -metadata
> comment=SomethingOtherThanOther -disposition:v:0 attached_pic -map:a 1
> -metadata comment= '29 My Girl-ReArt.flac'; #Add the album art back using
> the metadata commands as you suggest, and store to yet another .flac file.
> Error received:  [swscaler @ 0x7f9648038000] deprecated pixel format used,
> make sure you did set range correctly
>
>
> ___
> ffmpeg-user mailing list
> ffmpeg-user@ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

Re: [FFmpeg-user] Removing a metadata tag from a specfic stream

2021-02-07 Thread Thibeau
I did that command you gave with video and than audio in that order checked it 
three times.
The metadata went to the audio not the video.
Feel free to test it yourself with the provided file.
Please let me know if it was my mistake and the command is correct when you 
execute it.

> On 7 Feb 2021, at 11:19, Paul B Mahol  wrote:
> 
> On Sun, Feb 7, 2021 at 12:59 AM MediaMouth  wrote:
> 
>>> On Feb 6, 2021, at 3:32 PM, Paul B Mahol  wrote:
>>> 
>>> Can you share file?
>> Yes.  The O.P. made it available here: https://ufile.io/bgunj34e <
>> https://ufile.io/bgunj34e>
>> 
>>> 
>>> ffmpeg -i INPUT.png -i AUDIO.flac -map:v 0 -metadata comment=Other
>>> -disposition:v:0 attached_pic -map:a 1 -metadata album=test FINAL.flac
>>> 
>>> Note that metadata order is important. The command above adds comment
>>> metadata to video stream.
>> 
>> Thanks for posting.  Clear and helpful.  Unfortunately, I got an error
>> Here are the steps I did...
>> 
> 
> Your steps are all invalid. Why you put first audio then video?
> My command only works with first video stream and after that audio stream.
> In ffmpeg every item position matters.
> 
> 
>> ffmpeg -i '29 My Girl.flac' -an -vcodec copy '29 My Girl.png'; #Extract
>> the album art to an external file.
>> ffmpeg -i '29 My Girl.flac' -map 0 -map -0:v:0 -c copy '29 My
>> Girl-NoArt.flac'; #Remove the album art, save results to a new .flac file.
>> ffmpeg -i '29 My Girl-NoArt.flac' -i '29 My Girl.png' -map:v 0 -metadata
>> comment=SomethingOtherThanOther -disposition:v:0 attached_pic -map:a 1
>> -metadata comment= '29 My Girl-ReArt.flac'; #Add the album art back using
>> the metadata commands as you suggest, and store to yet another .flac file.
>> Error received:  [swscaler @ 0x7f9648038000] deprecated pixel format used,
>> make sure you did set range correctly
>> 
>> 
>> ___
>> ffmpeg-user mailing list
>> ffmpeg-user@ffmpeg.org
>> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>> 
>> To unsubscribe, visit link above, or email
>> ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
> ___
> ffmpeg-user mailing list
> ffmpeg-user@ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
> 
> To unsubscribe, visit link above, or email
> ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

Re: [FFmpeg-user] Removing a metadata tag from a specfic stream

2021-02-07 Thread Paul B Mahol
On Sun, Feb 7, 2021 at 11:19 AM Paul B Mahol  wrote:

>
>
> On Sun, Feb 7, 2021 at 12:59 AM MediaMouth  wrote:
>
>> On Feb 6, 2021, at 3:32 PM, Paul B Mahol  wrote:
>> >
>> > Can you share file?
>> Yes.  The O.P. made it available here: https://ufile.io/bgunj34e <
>> https://ufile.io/bgunj34e>
>>
>> >
>> > ffmpeg -i INPUT.png -i AUDIO.flac -map:v 0 -metadata comment=Other
>> > -disposition:v:0 attached_pic -map:a 1 -metadata album=test FINAL.flac
>> >
>> > Note that metadata order is important. The command above adds comment
>> > metadata to video stream.
>>
>> Thanks for posting.  Clear and helpful.  Unfortunately, I got an error
>> Here are the steps I did...
>>
>
> Your steps are all invalid. Why you put first audio then video?
> My command only works with first video stream and after that audio stream.
> In ffmpeg every item position matters.
>

Also you can not remove description of attached picture at all. "Other" is
just default value if no other valid values are set.
You can change value to "Cover (front)" if you like, please read 4.14
section of https://id3.org/id3v2.4.0-frames

So command to change Other to Cover is:
ffmpeg -i INPUT.flac -c:v png -disposition:v:1 attached_pic -metadata:s:v:0
comment="Cover (front)" OUTPUT.flac



>
>
>> ffmpeg -i '29 My Girl.flac' -an -vcodec copy '29 My Girl.png'; #Extract
>> the album art to an external file.
>> ffmpeg -i '29 My Girl.flac' -map 0 -map -0:v:0 -c copy '29 My
>> Girl-NoArt.flac'; #Remove the album art, save results to a new .flac file.
>> ffmpeg -i '29 My Girl-NoArt.flac' -i '29 My Girl.png' -map:v 0 -metadata
>> comment=SomethingOtherThanOther -disposition:v:0 attached_pic -map:a 1
>> -metadata comment= '29 My Girl-ReArt.flac'; #Add the album art back using
>> the metadata commands as you suggest, and store to yet another .flac file.
>> Error received:  [swscaler @ 0x7f9648038000] deprecated pixel format
>> used, make sure you did set range correctly
>>
>>
>> ___
>> ffmpeg-user mailing list
>> ffmpeg-user@ffmpeg.org
>> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>>
>> To unsubscribe, visit link above, or email
>> ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
>
>
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

Re: [FFmpeg-user] Removing a metadata tag from a specfic stream

2021-02-07 Thread Paul B Mahol
On Sun, Feb 7, 2021 at 11:31 AM Thibeau 
wrote:

> I did that command you gave with video and than audio in that order
> checked it three times.
> The metadata went to the audio not the video.
> Feel free to test it yourself with the provided file.
> Please let me know if it was my mistake and the command is correct when
> you execute it.
>
>
I can not guess what you typed. And user assume to much things these days.

So next time post full ffmpeg log.



> > On 7 Feb 2021, at 11:19, Paul B Mahol  wrote:
> >
> > On Sun, Feb 7, 2021 at 12:59 AM MediaMouth  wrote:
> >
> >>> On Feb 6, 2021, at 3:32 PM, Paul B Mahol  wrote:
> >>>
> >>> Can you share file?
> >> Yes.  The O.P. made it available here: https://ufile.io/bgunj34e <
> >> https://ufile.io/bgunj34e>
> >>
> >>>
> >>> ffmpeg -i INPUT.png -i AUDIO.flac -map:v 0 -metadata comment=Other
> >>> -disposition:v:0 attached_pic -map:a 1 -metadata album=test FINAL.flac
> >>>
> >>> Note that metadata order is important. The command above adds comment
> >>> metadata to video stream.
> >>
> >> Thanks for posting.  Clear and helpful.  Unfortunately, I got an error
> >> Here are the steps I did...
> >>
> >
> > Your steps are all invalid. Why you put first audio then video?
> > My command only works with first video stream and after that audio
> stream.
> > In ffmpeg every item position matters.
> >
> >
> >> ffmpeg -i '29 My Girl.flac' -an -vcodec copy '29 My Girl.png'; #Extract
> >> the album art to an external file.
> >> ffmpeg -i '29 My Girl.flac' -map 0 -map -0:v:0 -c copy '29 My
> >> Girl-NoArt.flac'; #Remove the album art, save results to a new .flac
> file.
> >> ffmpeg -i '29 My Girl-NoArt.flac' -i '29 My Girl.png' -map:v 0 -metadata
> >> comment=SomethingOtherThanOther -disposition:v:0 attached_pic -map:a 1
> >> -metadata comment= '29 My Girl-ReArt.flac'; #Add the album art back
> using
> >> the metadata commands as you suggest, and store to yet another .flac
> file.
> >> Error received:  [swscaler @ 0x7f9648038000] deprecated pixel format
> used,
> >> make sure you did set range correctly
> >>
> >>
> >> ___
> >> ffmpeg-user mailing list
> >> ffmpeg-user@ffmpeg.org
> >> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
> >>
> >> To unsubscribe, visit link above, or email
> >> ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
> > ___
> > ffmpeg-user mailing list
> > ffmpeg-user@ffmpeg.org
> > https://ffmpeg.org/mailman/listinfo/ffmpeg-user
> >
> > To unsubscribe, visit link above, or email
> > ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
> ___
> ffmpeg-user mailing list
> ffmpeg-user@ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

Re: [FFmpeg-user] Removing a metadata tag from a specfic stream

2021-02-07 Thread Thibeau
That’s what I didn’t know. Thanks for the help and the link!

> On 7 Feb 2021, at 11:35, Paul B Mahol  wrote:
> 
> On Sun, Feb 7, 2021 at 11:19 AM Paul B Mahol  wrote:
> 
>> 
>> 
>>> On Sun, Feb 7, 2021 at 12:59 AM MediaMouth  wrote:
>>> 
>>> On Feb 6, 2021, at 3:32 PM, Paul B Mahol  wrote:
 
 Can you share file?
>>> Yes.  The O.P. made it available here: https://ufile.io/bgunj34e <
>>> https://ufile.io/bgunj34e>
>>> 
 
 ffmpeg -i INPUT.png -i AUDIO.flac -map:v 0 -metadata comment=Other
 -disposition:v:0 attached_pic -map:a 1 -metadata album=test FINAL.flac
 
 Note that metadata order is important. The command above adds comment
 metadata to video stream.
>>> 
>>> Thanks for posting.  Clear and helpful.  Unfortunately, I got an error
>>> Here are the steps I did...
>>> 
>> 
>> Your steps are all invalid. Why you put first audio then video?
>> My command only works with first video stream and after that audio stream.
>> In ffmpeg every item position matters.
>> 
> 
> Also you can not remove description of attached picture at all. "Other" is
> just default value if no other valid values are set.
> You can change value to "Cover (front)" if you like, please read 4.14
> section of https://id3.org/id3v2.4.0-frames
> 
> So command to change Other to Cover is:
> ffmpeg -i INPUT.flac -c:v png -disposition:v:1 attached_pic -metadata:s:v:0
> comment="Cover (front)" OUTPUT.flac
> 
> 
> 
>> 
>> 
>>> ffmpeg -i '29 My Girl.flac' -an -vcodec copy '29 My Girl.png'; #Extract
>>> the album art to an external file.
>>> ffmpeg -i '29 My Girl.flac' -map 0 -map -0:v:0 -c copy '29 My
>>> Girl-NoArt.flac'; #Remove the album art, save results to a new .flac file.
>>> ffmpeg -i '29 My Girl-NoArt.flac' -i '29 My Girl.png' -map:v 0 -metadata
>>> comment=SomethingOtherThanOther -disposition:v:0 attached_pic -map:a 1
>>> -metadata comment= '29 My Girl-ReArt.flac'; #Add the album art back using
>>> the metadata commands as you suggest, and store to yet another .flac file.
>>> Error received:  [swscaler @ 0x7f9648038000] deprecated pixel format
>>> used, make sure you did set range correctly
>>> 
>>> 
>>> ___
>>> ffmpeg-user mailing list
>>> ffmpeg-user@ffmpeg.org
>>> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>>> 
>>> To unsubscribe, visit link above, or email
>>> ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
>> 
>> 
> ___
> ffmpeg-user mailing list
> ffmpeg-user@ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
> 
> To unsubscribe, visit link above, or email
> ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

Re: [FFmpeg-user] Removing a metadata tag from a specfic stream

2021-02-07 Thread Thibeau
First ffprobe shows before executing ffmpeg command . I installed the git
version for ffmpeg to make sure it was the same as yours. It seems you're
infact corrrect and it allows for you to set the tag to another and value
and will default to Other. Thx for the help of explaining it. Didn't find
the docs on my own so thx for giving a link to them.
Don't know alot about ffmpeg either but adding -vsync 2 to your command
would seem like a good idea no? Than the error in the command (see second
command [2]) would go away. Unless I'm mistaken and it's intent to be not
use vsync 2 method.
-- [1]
ffprobe '29 My Girl.flac'
ffprobe version N-100998-g134193a2ff Copyright (c) 2007-2021 the FFmpeg
developers
  built with gcc 9.3.0 (Gentoo 9.3.0-r2 p4)
  configuration: --prefix=/usr --libdir=/usr/lib64 --shlibdir=/usr/lib64
--docdir=/usr/share/doc/ffmpeg-/html --mandir=/usr/share/man
--enable-shared --cc=x86_64-pc-linux-gnu-gcc --cxx=x86_64-pc-linux-gnu-g++
--ar=x86_64-pc-linux-gnu-ar --nm=x86_64-pc-linux-gnu-nm
--ranlib=x86_64-pc-linux-gnu-ranlib
--pkg-config=x86_64-pc-linux-gnu-pkg-config --optflags='-march=native -O3
-pipe -flto=5 -fgraphite-identity -floop-nest-optimize -ftree-vectorize
-fsched-pressure -fipa-pta -fno-semantic-interposition -fuse-linker-plugin
-fno-common -fdevirtualize-at-ltrans -falign-functions=32
--param=l1-cache-size=32 --param=l1-cache-line-size=64
--param=l2-cache-size=6144' --disable-static --enable-avfilter
--enable-avresample --disable-stripping --disable-optimizations
--disable-libcelt --enable-nonfree --disable-indev=v4l2
--disable-outdev=v4l2 --disable-indev=oss --disable-indev=jack
--disable-outdev=oss --enable-bzlib --disable-runtime-cpudetect
--disable-debug --disable-gcrypt --enable-gnutls --disable-gmp --enable-gpl
--disable-hardcoded-tables --enable-iconv --disable-libtls
--disable-libxml2 --disable-lzma --disable-network --disable-opencl
--enable-openssl --enable-postproc --disable-libsmbclient --disable-ffplay
--disable-sdl2 --disable-vaapi --disable-vdpau --disable-vulkan
--enable-xlib --enable-libxcb --enable-libxcb-shm --enable-libxcb-xfixes
--enable-zlib --disable-libcdio --disable-libiec61883 --disable-libdc1394
--enable-libcaca --disable-openal --disable-opengl --disable-libv4l2
--disable-libpulse --enable-libdrm --disable-libjack
--disable-libopencore-amrwb --disable-libopencore-amrnb --disable-libcodec2
--enable-libdav1d --disable-libfdk-aac --disable-libopenjpeg
--enable-libbluray --disable-libgme --disable-libgsm --disable-libaribb24
--disable-mmal --disable-libmodplug --enable-libopus --disable-libilbc
--disable-librtmp --disable-libssh --disable-libspeex --disable-libsrt
--enable-librsvg --disable-ffnvcodec --enable-libvorbis --disable-libvpx
--disable-libzvbi --disable-appkit --disable-libbs2b --disable-chromaprint
--disable-cuda-llvm --disable-libflite
--disable-frei0r --disable-libfribidi --enable-fontconfig --disable-ladspa
--disable-libass --disable-libtesseract --disable-lv2 --enable-libfreetype
--disable-libvidstab --disable-librubberband --disable-libzmq
--disable-libzimg --disable-libsoxr --enable-pthreads
--disable-libvo-amrwbenc --enable-libmp3lame --disable-libkvazaar
--disable-libaom --disable-libopenh264 --disable-librav1e
--disable-libsnappy --disable-libtheora --disable-libtwolame
--disable-libwebp --disable-libx264 --disable-libx265 --disable-libxvid
--disable-gnutls --disable-armv5te --disable-armv6 --disable-armv6t2
--disable-neon --disable-vfp --disable-vfpv3 --disable-armv8
--disable-mipsdsp --disable-mipsdspr2 --disable-mipsfpu --disable-altivec
--disable-vsx --disable-power8 --disable-amd3dnow --disable-amd3dnowext
--disable-fma4 --disable-xop --cpu=host --enable-lto --disable-doc
--disable-htmlpages --enable-manpages
  libavutil  56. 64.100 / 56. 64.100
  libavcodec 58.121.100 / 58.121.100
  libavformat58. 67.100 / 58. 67.100
  libavdevice58. 11.103 / 58. 11.103
  libavfilter 7.102.100 /  7.102.100
  libavresample   4.  0.  0 /  4.  0.  0
  libswscale  5.  8.100 /  5.  8.100
  libswresample   3.  8.100 /  3.  8.100
  libpostproc55.  8.100 / 55.  8.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.00, 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
 [1]
- [2]
brandon@NKWTMEID /tmp/x $ ffmpeg -i '29 My Girl.flac' -c:v png
-disposition:v:1 attached_pic -metadata:s:v:0 comment="Cover (front)"
out.flac
ffmpeg version N-100998-g134193a2ff Copyright (c) 2000-2021 the

Re: [FFmpeg-user] Removing a metadata tag from a specfic stream

2021-02-07 Thread Thibeau
It is very strange that if you change the value you set comment from 'Cover
(front)' to e.g 'Cover' it will set the tag to cover but ffmpeg won't
recognize it and display it as Other any ideas why this is?

On Sun, 7 Feb 2021 at 11:03, Thibeau  wrote:

> First ffprobe shows before executing ffmpeg command . I installed the git
> version for ffmpeg to make sure it was the same as yours. It seems you're
> infact corrrect and it allows for you to set the tag to another and value
> and will default to Other. Thx for the help of explaining it. Didn't find
> the docs on my own so thx for giving a link to them.
> Don't know alot about ffmpeg either but adding -vsync 2 to your command
> would seem like a good idea no? Than the error in the command (see second
> command [2]) would go away. Unless I'm mistaken and it's intent to be not
> use vsync 2 method.
> -- [1]
> ffprobe '29 My Girl.flac'
> ffprobe version N-100998-g134193a2ff Copyright (c) 2007-2021 the FFmpeg
> developers
>   built with gcc 9.3.0 (Gentoo 9.3.0-r2 p4)
>   configuration: --prefix=/usr --libdir=/usr/lib64 --shlibdir=/usr/lib64
> --docdir=/usr/share/doc/ffmpeg-/html --mandir=/usr/share/man
> --enable-shared --cc=x86_64-pc-linux-gnu-gcc --cxx=x86_64-pc-linux-gnu-g++
> --ar=x86_64-pc-linux-gnu-ar --nm=x86_64-pc-linux-gnu-nm
> --ranlib=x86_64-pc-linux-gnu-ranlib
> --pkg-config=x86_64-pc-linux-gnu-pkg-config --optflags='-march=native -O3
> -pipe -flto=5 -fgraphite-identity -floop-nest-optimize -ftree-vectorize
> -fsched-pressure -fipa-pta -fno-semantic-interposition -fuse-linker-plugin
> -fno-common -fdevirtualize-at-ltrans -falign-functions=32
> --param=l1-cache-size=32 --param=l1-cache-line-size=64
> --param=l2-cache-size=6144' --disable-static --enable-avfilter
> --enable-avresample --disable-stripping --disable-optimizations
> --disable-libcelt --enable-nonfree --disable-indev=v4l2
> --disable-outdev=v4l2 --disable-indev=oss --disable-indev=jack
> --disable-outdev=oss --enable-bzlib --disable-runtime-cpudetect
> --disable-debug --disable-gcrypt --enable-gnutls --disable-gmp --enable-gpl
> --disable-hardcoded-tables --enable-iconv --disable-libtls
> --disable-libxml2 --disable-lzma --disable-network --disable-opencl
> --enable-openssl --enable-postproc --disable-libsmbclient --disable-ffplay
> --disable-sdl2 --disable-vaapi --disable-vdpau --disable-vulkan
> --enable-xlib --enable-libxcb --enable-libxcb-shm --enable-libxcb-xfixes
> --enable-zlib --disable-libcdio --disable-libiec61883 --disable-libdc1394
> --enable-libcaca --disable-openal --disable-opengl --disable-libv4l2
> --disable-libpulse --enable-libdrm --disable-libjack
> --disable-libopencore-amrwb --disable-libopencore-amrnb --disable-libcodec2
> --enable-libdav1d --disable-libfdk-aac --disable-libopenjpeg
> --enable-libbluray --disable-libgme --disable-libgsm --disable-libaribb24
> --disable-mmal --disable-libmodplug --enable-libopus --disable-libilbc
> --disable-librtmp --disable-libssh --disable-libspeex --disable-libsrt
> --enable-librsvg --disable-ffnvcodec --enable-libvorbis --disable-libvpx
> --disable-libzvbi --disable-appkit --disable-libbs2b --disable-chromaprint
> --disable-cuda-llvm --disable-libflite
> --disable-frei0r --disable-libfribidi --enable-fontconfig --disable-ladspa
> --disable-libass --disable-libtesseract --disable-lv2 --enable-libfreetype
> --disable-libvidstab --disable-librubberband --disable-libzmq
> --disable-libzimg --disable-libsoxr --enable-pthreads
> --disable-libvo-amrwbenc --enable-libmp3lame --disable-libkvazaar
> --disable-libaom --disable-libopenh264 --disable-librav1e
> --disable-libsnappy --disable-libtheora --disable-libtwolame
> --disable-libwebp --disable-libx264 --disable-libx265 --disable-libxvid
> --disable-gnutls --disable-armv5te --disable-armv6 --disable-armv6t2
> --disable-neon --disable-vfp --disable-vfpv3 --disable-armv8
> --disable-mipsdsp --disable-mipsdspr2 --disable-mipsfpu --disable-altivec
> --disable-vsx --disable-power8 --disable-amd3dnow --disable-amd3dnowext
> --disable-fma4 --disable-xop --cpu=host --enable-lto --disable-doc
> --disable-htmlpages --enable-manpages
>   libavutil  56. 64.100 / 56. 64.100
>   libavcodec 58.121.100 / 58.121.100
>   libavformat58. 67.100 / 58. 67.100
>   libavdevice58. 11.103 / 58. 11.103
>   libavfilter 7.102.100 /  7.102.100
>   libavresample   4.  0.  0 /  4.  0.  0
>   libswscale  5.  8.100 /  5.  8.100
>   libswresample   3.  8.100 /  3.  8.100
>   libpostproc55.  8.100 / 55.  8.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.00, 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

Re: [FFmpeg-user] Removing a metadata tag from a specfic stream

2021-02-07 Thread Paul B Mahol
On Sun, Feb 7, 2021 at 3:49 PM Thibeau 
wrote:

> It is very strange that if you change the value you set comment from 'Cover
> (front)' to e.g 'Cover' it will set the tag to cover but ffmpeg won't
> recognize it and display it as Other any ideas why this is?
>

Because if your set value does not match any from specification section I
linked previously
it will pick first entry, And first entry is "Other".


>
> On Sun, 7 Feb 2021 at 11:03, Thibeau 
> wrote:
>
> > First ffprobe shows before executing ffmpeg command . I installed the git
> > version for ffmpeg to make sure it was the same as yours. It seems you're
> > infact corrrect and it allows for you to set the tag to another and value
> > and will default to Other. Thx for the help of explaining it. Didn't find
> > the docs on my own so thx for giving a link to them.
> > Don't know alot about ffmpeg either but adding -vsync 2 to your command
> > would seem like a good idea no? Than the error in the command (see second
> > command [2]) would go away. Unless I'm mistaken and it's intent to be not
> > use vsync 2 method.
> > -- [1]
> > ffprobe '29 My Girl.flac'
> > ffprobe version N-100998-g134193a2ff Copyright (c) 2007-2021 the FFmpeg
> > developers
> >   built with gcc 9.3.0 (Gentoo 9.3.0-r2 p4)
> >   configuration: --prefix=/usr --libdir=/usr/lib64 --shlibdir=/usr/lib64
> > --docdir=/usr/share/doc/ffmpeg-/html --mandir=/usr/share/man
> > --enable-shared --cc=x86_64-pc-linux-gnu-gcc
> --cxx=x86_64-pc-linux-gnu-g++
> > --ar=x86_64-pc-linux-gnu-ar --nm=x86_64-pc-linux-gnu-nm
> > --ranlib=x86_64-pc-linux-gnu-ranlib
> > --pkg-config=x86_64-pc-linux-gnu-pkg-config --optflags='-march=native -O3
> > -pipe -flto=5 -fgraphite-identity -floop-nest-optimize -ftree-vectorize
> > -fsched-pressure -fipa-pta -fno-semantic-interposition
> -fuse-linker-plugin
> > -fno-common -fdevirtualize-at-ltrans -falign-functions=32
> > --param=l1-cache-size=32 --param=l1-cache-line-size=64
> > --param=l2-cache-size=6144' --disable-static --enable-avfilter
> > --enable-avresample --disable-stripping --disable-optimizations
> > --disable-libcelt --enable-nonfree --disable-indev=v4l2
> > --disable-outdev=v4l2 --disable-indev=oss --disable-indev=jack
> > --disable-outdev=oss --enable-bzlib --disable-runtime-cpudetect
> > --disable-debug --disable-gcrypt --enable-gnutls --disable-gmp
> --enable-gpl
> > --disable-hardcoded-tables --enable-iconv --disable-libtls
> > --disable-libxml2 --disable-lzma --disable-network --disable-opencl
> > --enable-openssl --enable-postproc --disable-libsmbclient
> --disable-ffplay
> > --disable-sdl2 --disable-vaapi --disable-vdpau --disable-vulkan
> > --enable-xlib --enable-libxcb --enable-libxcb-shm --enable-libxcb-xfixes
> > --enable-zlib --disable-libcdio --disable-libiec61883 --disable-libdc1394
> > --enable-libcaca --disable-openal --disable-opengl --disable-libv4l2
> > --disable-libpulse --enable-libdrm --disable-libjack
> > --disable-libopencore-amrwb --disable-libopencore-amrnb
> --disable-libcodec2
> > --enable-libdav1d --disable-libfdk-aac --disable-libopenjpeg
> > --enable-libbluray --disable-libgme --disable-libgsm --disable-libaribb24
> > --disable-mmal --disable-libmodplug --enable-libopus --disable-libilbc
> > --disable-librtmp --disable-libssh --disable-libspeex --disable-libsrt
> > --enable-librsvg --disable-ffnvcodec --enable-libvorbis --disable-libvpx
> > --disable-libzvbi --disable-appkit --disable-libbs2b
> --disable-chromaprint
> > --disable-cuda-llvm --disable-libflite
> > --disable-frei0r --disable-libfribidi --enable-fontconfig
> --disable-ladspa
> > --disable-libass --disable-libtesseract --disable-lv2
> --enable-libfreetype
> > --disable-libvidstab --disable-librubberband --disable-libzmq
> > --disable-libzimg --disable-libsoxr --enable-pthreads
> > --disable-libvo-amrwbenc --enable-libmp3lame --disable-libkvazaar
> > --disable-libaom --disable-libopenh264 --disable-librav1e
> > --disable-libsnappy --disable-libtheora --disable-libtwolame
> > --disable-libwebp --disable-libx264 --disable-libx265 --disable-libxvid
> > --disable-gnutls --disable-armv5te --disable-armv6 --disable-armv6t2
> > --disable-neon --disable-vfp --disable-vfpv3 --disable-armv8
> > --disable-mipsdsp --disable-mipsdspr2 --disable-mipsfpu --disable-altivec
> > --disable-vsx --disable-power8 --disable-amd3dnow --disable-amd3dnowext
> > --disable-fma4 --disable-xop --cpu=host --enable-lto --disable-doc
> > --disable-htmlpages --enable-manpages
> >   libavutil  56. 64.100 / 56. 64.100
> >   libavcodec 58.121.100 / 58.121.100
> >   libavformat58. 67.100 / 58. 67.100
> >   libavdevice58. 11.103 / 58. 11.103
> >   libavfilter 7.102.100 /  7.102.100
> >   libavresample   4.  0.  0 /  4.  0.  0
> >   libswscale  5.  8.100 /  5.  8.100
> >   libswresample   3.  8.100 /  3.  8.100
> >   libpostproc55.  8.100 / 55.  8.100
> > Input #0, flac, from '29 My Girl.flac':
> >   Metadata:
> > ALBUM   : Prodigal So

Re: [FFmpeg-user] Removing a metadata tag from a specfic stream

2021-02-07 Thread Paul B Mahol
This is because it does not allow arbitrary values, just some small set.

On Sun, Feb 7, 2021 at 3:51 PM Paul B Mahol  wrote:

>
>
> On Sun, Feb 7, 2021 at 3:49 PM Thibeau 
> wrote:
>
>> It is very strange that if you change the value you set comment from
>> 'Cover
>> (front)' to e.g 'Cover' it will set the tag to cover but ffmpeg won't
>> recognize it and display it as Other any ideas why this is?
>>
>
> Because if your set value does not match any from specification section I
> linked previously
> it will pick first entry, And first entry is "Other".
>
>
>>
>> On Sun, 7 Feb 2021 at 11:03, Thibeau 
>> wrote:
>>
>> > First ffprobe shows before executing ffmpeg command . I installed the
>> git
>> > version for ffmpeg to make sure it was the same as yours. It seems
>> you're
>> > infact corrrect and it allows for you to set the tag to another and
>> value
>> > and will default to Other. Thx for the help of explaining it. Didn't
>> find
>> > the docs on my own so thx for giving a link to them.
>> > Don't know alot about ffmpeg either but adding -vsync 2 to your command
>> > would seem like a good idea no? Than the error in the command (see
>> second
>> > command [2]) would go away. Unless I'm mistaken and it's intent to be
>> not
>> > use vsync 2 method.
>> > -- [1]
>> > ffprobe '29 My Girl.flac'
>> > ffprobe version N-100998-g134193a2ff Copyright (c) 2007-2021 the FFmpeg
>> > developers
>> >   built with gcc 9.3.0 (Gentoo 9.3.0-r2 p4)
>> >   configuration: --prefix=/usr --libdir=/usr/lib64 --shlibdir=/usr/lib64
>> > --docdir=/usr/share/doc/ffmpeg-/html --mandir=/usr/share/man
>> > --enable-shared --cc=x86_64-pc-linux-gnu-gcc
>> --cxx=x86_64-pc-linux-gnu-g++
>> > --ar=x86_64-pc-linux-gnu-ar --nm=x86_64-pc-linux-gnu-nm
>> > --ranlib=x86_64-pc-linux-gnu-ranlib
>> > --pkg-config=x86_64-pc-linux-gnu-pkg-config --optflags='-march=native
>> -O3
>> > -pipe -flto=5 -fgraphite-identity -floop-nest-optimize -ftree-vectorize
>> > -fsched-pressure -fipa-pta -fno-semantic-interposition
>> -fuse-linker-plugin
>> > -fno-common -fdevirtualize-at-ltrans -falign-functions=32
>> > --param=l1-cache-size=32 --param=l1-cache-line-size=64
>> > --param=l2-cache-size=6144' --disable-static --enable-avfilter
>> > --enable-avresample --disable-stripping --disable-optimizations
>> > --disable-libcelt --enable-nonfree --disable-indev=v4l2
>> > --disable-outdev=v4l2 --disable-indev=oss --disable-indev=jack
>> > --disable-outdev=oss --enable-bzlib --disable-runtime-cpudetect
>> > --disable-debug --disable-gcrypt --enable-gnutls --disable-gmp
>> --enable-gpl
>> > --disable-hardcoded-tables --enable-iconv --disable-libtls
>> > --disable-libxml2 --disable-lzma --disable-network --disable-opencl
>> > --enable-openssl --enable-postproc --disable-libsmbclient
>> --disable-ffplay
>> > --disable-sdl2 --disable-vaapi --disable-vdpau --disable-vulkan
>> > --enable-xlib --enable-libxcb --enable-libxcb-shm --enable-libxcb-xfixes
>> > --enable-zlib --disable-libcdio --disable-libiec61883
>> --disable-libdc1394
>> > --enable-libcaca --disable-openal --disable-opengl --disable-libv4l2
>> > --disable-libpulse --enable-libdrm --disable-libjack
>> > --disable-libopencore-amrwb --disable-libopencore-amrnb
>> --disable-libcodec2
>> > --enable-libdav1d --disable-libfdk-aac --disable-libopenjpeg
>> > --enable-libbluray --disable-libgme --disable-libgsm
>> --disable-libaribb24
>> > --disable-mmal --disable-libmodplug --enable-libopus --disable-libilbc
>> > --disable-librtmp --disable-libssh --disable-libspeex --disable-libsrt
>> > --enable-librsvg --disable-ffnvcodec --enable-libvorbis --disable-libvpx
>> > --disable-libzvbi --disable-appkit --disable-libbs2b
>> --disable-chromaprint
>> > --disable-cuda-llvm --disable-libflite
>> > --disable-frei0r --disable-libfribidi --enable-fontconfig
>> --disable-ladspa
>> > --disable-libass --disable-libtesseract --disable-lv2
>> --enable-libfreetype
>> > --disable-libvidstab --disable-librubberband --disable-libzmq
>> > --disable-libzimg --disable-libsoxr --enable-pthreads
>> > --disable-libvo-amrwbenc --enable-libmp3lame --disable-libkvazaar
>> > --disable-libaom --disable-libopenh264 --disable-librav1e
>> > --disable-libsnappy --disable-libtheora --disable-libtwolame
>> > --disable-libwebp --disable-libx264 --disable-libx265 --disable-libxvid
>> > --disable-gnutls --disable-armv5te --disable-armv6 --disable-armv6t2
>> > --disable-neon --disable-vfp --disable-vfpv3 --disable-armv8
>> > --disable-mipsdsp --disable-mipsdspr2 --disable-mipsfpu
>> --disable-altivec
>> > --disable-vsx --disable-power8 --disable-amd3dnow --disable-amd3dnowext
>> > --disable-fma4 --disable-xop --cpu=host --enable-lto --disable-doc
>> > --disable-htmlpages --enable-manpages
>> >   libavutil  56. 64.100 / 56. 64.100
>> >   libavcodec 58.121.100 / 58.121.100
>> >   libavformat58. 67.100 / 58. 67.100
>> >   libavdevice58. 11.103 / 58. 11.103
>> >   libavfilter 7.102.100 /  7.102.100
>> >   libavresamp

Re: [FFmpeg-user] Removing a metadata tag from a specfic stream

2021-02-07 Thread Thibeau
Apologies,  it makes sense if it chooses from a list of recognized values.
Thx for all the help and patience!

On Sun, 7 Feb 2021 at 14:52, Paul B Mahol  wrote:

> This is because it does not allow arbitrary values, just some small set.
>
> On Sun, Feb 7, 2021 at 3:51 PM Paul B Mahol  wrote:
>
> >
> >
> > On Sun, Feb 7, 2021 at 3:49 PM Thibeau 
> > wrote:
> >
> >> It is very strange that if you change the value you set comment from
> >> 'Cover
> >> (front)' to e.g 'Cover' it will set the tag to cover but ffmpeg won't
> >> recognize it and display it as Other any ideas why this is?
> >>
> >
> > Because if your set value does not match any from specification section I
> > linked previously
> > it will pick first entry, And first entry is "Other".
> >
> >
> >>
> >> On Sun, 7 Feb 2021 at 11:03, Thibeau 
> >> wrote:
> >>
> >> > First ffprobe shows before executing ffmpeg command . I installed the
> >> git
> >> > version for ffmpeg to make sure it was the same as yours. It seems
> >> you're
> >> > infact corrrect and it allows for you to set the tag to another and
> >> value
> >> > and will default to Other. Thx for the help of explaining it. Didn't
> >> find
> >> > the docs on my own so thx for giving a link to them.
> >> > Don't know alot about ffmpeg either but adding -vsync 2 to your
> command
> >> > would seem like a good idea no? Than the error in the command (see
> >> second
> >> > command [2]) would go away. Unless I'm mistaken and it's intent to be
> >> not
> >> > use vsync 2 method.
> >> > -- [1]
> >> > ffprobe '29 My Girl.flac'
> >> > ffprobe version N-100998-g134193a2ff Copyright (c) 2007-2021 the
> FFmpeg
> >> > developers
> >> >   built with gcc 9.3.0 (Gentoo 9.3.0-r2 p4)
> >> >   configuration: --prefix=/usr --libdir=/usr/lib64
> --shlibdir=/usr/lib64
> >> > --docdir=/usr/share/doc/ffmpeg-/html --mandir=/usr/share/man
> >> > --enable-shared --cc=x86_64-pc-linux-gnu-gcc
> >> --cxx=x86_64-pc-linux-gnu-g++
> >> > --ar=x86_64-pc-linux-gnu-ar --nm=x86_64-pc-linux-gnu-nm
> >> > --ranlib=x86_64-pc-linux-gnu-ranlib
> >> > --pkg-config=x86_64-pc-linux-gnu-pkg-config --optflags='-march=native
> >> -O3
> >> > -pipe -flto=5 -fgraphite-identity -floop-nest-optimize
> -ftree-vectorize
> >> > -fsched-pressure -fipa-pta -fno-semantic-interposition
> >> -fuse-linker-plugin
> >> > -fno-common -fdevirtualize-at-ltrans -falign-functions=32
> >> > --param=l1-cache-size=32 --param=l1-cache-line-size=64
> >> > --param=l2-cache-size=6144' --disable-static --enable-avfilter
> >> > --enable-avresample --disable-stripping --disable-optimizations
> >> > --disable-libcelt --enable-nonfree --disable-indev=v4l2
> >> > --disable-outdev=v4l2 --disable-indev=oss --disable-indev=jack
> >> > --disable-outdev=oss --enable-bzlib --disable-runtime-cpudetect
> >> > --disable-debug --disable-gcrypt --enable-gnutls --disable-gmp
> >> --enable-gpl
> >> > --disable-hardcoded-tables --enable-iconv --disable-libtls
> >> > --disable-libxml2 --disable-lzma --disable-network --disable-opencl
> >> > --enable-openssl --enable-postproc --disable-libsmbclient
> >> --disable-ffplay
> >> > --disable-sdl2 --disable-vaapi --disable-vdpau --disable-vulkan
> >> > --enable-xlib --enable-libxcb --enable-libxcb-shm
> --enable-libxcb-xfixes
> >> > --enable-zlib --disable-libcdio --disable-libiec61883
> >> --disable-libdc1394
> >> > --enable-libcaca --disable-openal --disable-opengl --disable-libv4l2
> >> > --disable-libpulse --enable-libdrm --disable-libjack
> >> > --disable-libopencore-amrwb --disable-libopencore-amrnb
> >> --disable-libcodec2
> >> > --enable-libdav1d --disable-libfdk-aac --disable-libopenjpeg
> >> > --enable-libbluray --disable-libgme --disable-libgsm
> >> --disable-libaribb24
> >> > --disable-mmal --disable-libmodplug --enable-libopus --disable-libilbc
> >> > --disable-librtmp --disable-libssh --disable-libspeex --disable-libsrt
> >> > --enable-librsvg --disable-ffnvcodec --enable-libvorbis
> --disable-libvpx
> >> > --disable-libzvbi --disable-appkit --disable-libbs2b
> >> --disable-chromaprint
> >> > --disable-cuda-llvm --disable-libflite
> >> > --disable-frei0r --disable-libfribidi --enable-fontconfig
> >> --disable-ladspa
> >> > --disable-libass --disable-libtesseract --disable-lv2
> >> --enable-libfreetype
> >> > --disable-libvidstab --disable-librubberband --disable-libzmq
> >> > --disable-libzimg --disable-libsoxr --enable-pthreads
> >> > --disable-libvo-amrwbenc --enable-libmp3lame --disable-libkvazaar
> >> > --disable-libaom --disable-libopenh264 --disable-librav1e
> >> > --disable-libsnappy --disable-libtheora --disable-libtwolame
> >> > --disable-libwebp --disable-libx264 --disable-libx265
> --disable-libxvid
> >> > --disable-gnutls --disable-armv5te --disable-armv6 --disable-armv6t2
> >> > --disable-neon --disable-vfp --disable-vfpv3 --disable-armv8
> >> > --disable-mipsdsp --disable-mipsdspr2 --disable-mipsfpu
> >> --disable-altivec
> >> > --disable-vsx --disable-power8 --disable-amd3dnow
> --disable

Re: [FFmpeg-user] Removing a metadata tag from a specfic stream

2021-02-07 Thread MediaMouth
On Feb 7, 2021, at 6:51 AM, Paul B Mahol  wrote:
> 
> This is because it does not allow arbitrary values, just some small set.

Thanks for all the info Paul.  Very revealing.

A couple of side questions:

- I noticed on the https://id3.org/id3v2.4.0-frames 
 page they distinguish "Description" and 
"Picture type".  It's "Picture type" that seems to be accessed by ffmpeg's 
-metadata:s:v:0 comment="Cover (front)".  If that's correct, is there an ffmpeg 
-metadata key that accesses "Description"? (It's not 'description')

- From this page  
there's a note "id3 tags are not normally, and should not be used on flacs".  
Is the technique we're using here in ffmpeg to control the metadata an id3 tag 
or a flac tag, and does it matter?

- One of those "arbitrary values" listed at https://id3.org/id3v2.4.0-frames 
 is "A bright coloured fish".  I tested, and 
indeed it works as a valid entry.  I know this is more a question for the folks 
at id3.org , but I do wonder if that's a joke or  a meaning 
value.  I mean, why not, "A spectacularly unsheared sheep"?

___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".