[FFmpeg-trac] #11096(undetermined:new): Chaotic escaping rules

FFmpeg trac at avcodec.org
Thu Jul 25 22:37:00 EEST 2024


#11096: Chaotic escaping rules
-------------------------------------+-------------------------------------
             Reporter:  ManDay       |                    Owner:  (none)
                 Type:  enhancement  |                   Status:  new
             Priority:  normal       |                Component:
                                     |  undetermined
              Version:  git-master   |               Resolution:
             Keywords:               |               Blocked By:
  filter_complex expression          |
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------
Comment (by superbonaci):

 Question: which characters need to be escaped in `;FFMETADATA1` files?

 According to this https://ffmpeg.org/ffmpeg-utils.html#Quoting-and-
 escaping only the `'` and `\` need to be escaped, but according to
 https://ffmpeg.org/ffmpeg-formats.html#metadata it's `=`, `;`, `#`, `\`
 and a `newline`.

 According to some tests we make in the project
 https://github.com/lay295/TwitchDownloader/pull/1161 only the backslash
 has to be escaped, and the single quotes can be escaped or not works the
 same. Any idea?

 Of course, the backslash at end of line to continue in a new line must not
 be escaped, we just mean the literal values we want into the output
 metadata.

 Could you explain why each page has different values and how it works
 really, better with examples?
-- 
Ticket URL: <https://trac.ffmpeg.org/ticket/11096#comment:7>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list