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

Thibeau vercruyssen.thibeau at gmail.com
Sun Feb 7 12:38:38 EET 2021


That’s what I didn’t know. Thanks for the help and the link!

> On 7 Feb 2021, at 11:35, Paul B Mahol <onemda at gmail.com> wrote:
> 
> On Sun, Feb 7, 2021 at 11:19 AM Paul B Mahol <onemda at gmail.com> wrote:
> 
>> 
>> 
>>> On Sun, Feb 7, 2021 at 12:59 AM MediaMouth <communque at gmail.com> wrote:
>>> 
>>> On Feb 6, 2021, at 3:32 PM, Paul B Mahol <onemda at gmail.com> 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 at ffmpeg.org
>>> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>>> 
>>> To unsubscribe, visit link above, or email
>>> ffmpeg-user-request at ffmpeg.org with subject "unsubscribe".
>> 
>> 
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
> 
> To unsubscribe, visit link above, or email
> ffmpeg-user-request at ffmpeg.org with subject "unsubscribe".


More information about the ffmpeg-user mailing list