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

FFmpeg trac at avcodec.org
Mon Oct 15 10:46:05 CEST 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):

 * status:  new => open
 * reproduced:  0 => 1
 * component:  avfilter => documentation
 * priority:  normal => important
 * keywords:   => syntax quoting escaping
 * analyzed:  0 => 1


Comment:

 That's a problem related to the quoting mechanism employed by FFmpeg.

 Let's start from the string:
 {{{
 /Volumes/Data/Movies/Crime? d'Amour.srt
 }}}

 "'" is a special character (since it is used for quoting), so the first
 level of escaping should be:
 {{{
 /Volumes/Data/Movies/Crime? d\'Amour.srt
 }}}

 Add to this a second level of escaping (which may required by your shell),
 and you get:
 {{{
 "Volumes/Data/Movies/Crime? d\'Amour.srt"
 }}}

 As for the second string:
 {{{
 /Volumes/Data/Movies/Gaming test: Galaxy S II vs. Galaxy S Plus vs.
 Optimus 2X - YouTube.mp4
 }}}

 it contains the ":" special character (used to separate options), so
 proper escaping would be:
 {{{
 /Volumes/Data/Movies/Gaming test\: Galaxy S II vs. Galaxy S Plus vs.
 Optimus 2X - YouTube.mp4
 }}}

 or alternatively:
 {{{
 '/Volumes/Data/Movies/Gaming test: Galaxy S II vs. Galaxy S Plus vs.
 Optimus 2X - YouTube.mp4'
 }}}
 which with shell-escaping becomes:
 {{{
 "'/Volumes/Data/Movies/Gaming test: Galaxy S II vs. Galaxy S Plus vs.
 Optimus 2X - YouTube.mp4'"
 }}}

 I'm aware that the quoting syntax is not currently documented (and we may
 add some tools for performing automatic escaping/quoting), this is a WIP,
 for the moment check the av_get_token() doxy.

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


More information about the FFmpeg-trac mailing list