Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Prevent libavformat (FFmpeg) from adding "ENCODER" tag to output / help stripping the tags

I made a bash script that transfers audio or video metadata from one file to another, regardless of media container format, via FFMpeg. My problem is that FFMpeg consistently adds a 'ENCODER' tag.

Example:

Before running through FFMpeg:

     File: track01.cdda.flac

  Metadata:
    ALBUM           : Wish You Were Here
    ARTIST          : Pink Floyd
    COPYRIGHT       : 1975 Harvest Records
    DATE            : 1975
    GENRE           : Experimental Rock
    TITLE           : Shine On You Crazy Diamond
    track           : 1

After running through FFMpeg:

     File: track01-iphone-alac.m4a

  Metadata:
    ALBUM=Wish You Were Here
    ARTIST=Pink Floyd
    COPYRIGHT=1975 Harvest Records
    DATE=1975
    GENRE=Experimental Rock
    TITLE=Shine On You Crazy Diamond
    track=1
    ENCODER=Lavf55.12.100

So really, I want to either force FFMpeg to not add the 'ENCODER' tag, or I want to strip that tag off afterwards. Is there a way to do this? I really don't want to spend hours trying to compile FFMpeg again on my Pentium 4 HT - the only working computer I have at the moment. I'd prefer not to have to use another program unless it's related enough to FFMpeg or MPlayer/Mencoder that I won't have to install anything new if I have those installed.

like image 995
Wyatt Ward Avatar asked Mar 01 '14 20:03

Wyatt Ward


People also ask

What is Probesize FFmpeg?

The use of –probesize and –analyzeduration help FFMPEG to recognize the audio and video stream parameters of a file, and while they are by no means necessary, their use can help reduce input processing errors, especially when moving across codecs.

What is Flag FFmpeg?

-t specifies the duration of the clip (same format). Recent ffmpeg also has a flag to supply the end time with -to . -c copy copies the first video, audio, and subtitle bitstream from the input to the output file without re-encoding them. This won't harm the quality and make the command run within seconds.

What is FFmpeg option?

FFmpeg is an industry standard, open source, widely used utility for handling video. FFmpeg has many capabilities, including encoding and decoding all video compression formats, encoding and decoding audio, encapsulating, and extracting audio, and video from transport streams, and many more.

What is FFmpeg format?

ffmpeg is a command-line tool that converts audio or video formats. It can also capture and encode in real-time from various hardware and software sources such as a TV capture card. ffplay is a simple media player utilizing SDL and the FFmpeg libraries.


2 Answers

Old question but in case someone needs it, I found this works to prevent the creation of the Encoder tag, at least on MP4 files.

-fflags +bitexact
like image 65
AndreasT Avatar answered Oct 23 '22 04:10

AndreasT


Doesn't -metadata encoder='my encoder' command-line option work?

like image 35
George Y. Avatar answered Oct 23 '22 04:10

George Y.