[FFmpeg-trac] #1813(documentation:open): ASS filter does not accept filenames with '

FFmpeg trac at avcodec.org
Mon Oct 29 12:33:16 CET 2012


#1813: ASS filter does not accept filenames with '
-------------------------------------+-------------------------------------
             Reporter:  Atarikid     |                    Owner:
                 Type:  defect       |                   Status:  open
             Priority:  important    |                Component:
              Version:  1.0          |  documentation
             Keywords:  syntax       |               Resolution:
  quoting escaping                   |               Blocked By:
             Blocking:               |  Reproduced by developer:  1
Analyzed by developer:  1            |
-------------------------------------+-------------------------------------
Changes (by saste):

 * cc: stefasab@… (added)


Comment:

 Keep in mind that you need two levels of escaping (which I myself forgot
 in my first reply), the first one for separating arguments for the filter
 description, separated by the ":" special char, second level for
 separating filter descriptions in the filtergraph, separated by ";,".

 First level (you escape the '):
 {{{
 crime d\'amour.ass
 }}}

 Second level (you quote the string):
 {{{
 ass='crime d'\''amour.ass'
 }}}
 or alternatively you keep escaping again:
 {{{
 ass=crime d\\\'amour.ass
 }}}

 Finally you embed it in a string for the shell (e.g. you double each \ -
 depends on the shell):
 {{{
 -vf "ass=crime d\\\\\\'amour.ass"
 }}}

 Unfortunately there is no elegant solution to this problem, I tried to
 document the escaping/quote rules in the manual, and added a tool
 (tools/ffescape) to help automation, but the truth is that the filtergraph
 syntax was not designed to be handy when embedding generic strings which
 may contain special characters.

-- 
Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/1813#comment:5>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list