```
**Note:** `ffpreview` does _not_ recursively traverse subdirectories.
+## Known issues
+
+* Subtitle rendering is flaky at best. In particular, it does not work
+ when setting a start time and currently chokes on Windows paths.
+ Consider it an experimental feature.
+
## License
Ffpreview is distributed under the Modified ("3-clause") BSD License.
# to learn more about video filter expressions.
customvf=scdet=s=1:t=12
+# EXPERIMENTAL:
# Add rendered captions from specified subtitle stream. Stream numbering
# starts at 0, set to -1 to disable. If the specified stream is not found,
# this setting is silently ignored. Also, this setting only works when
# start time is zero, i.e. the video is processed from the beginning.
+# To top it off it will choke on Windows paths.
addss=-1
# EOF
def fff_esc(s):
# 1. escape ' and :
s = s.replace("'", r"\'").replace(':', r'\:')
- # 2. escape \ and ' and ,
+ # 2. escape \ and ' (again!) plus [ and ] and , and ;
s = s.replace('\\', '\\\\').replace("'", r"\'")
- # 3. apparently [ and ] also have to be escaped?!
- s = s.replace('[', r'\[').replace(']', r'\]')
- # 4. time will tell, if we're still missing some
+ s = s.replace('[', r'\[').replace(']', r'\]').replace(',', r'\,').replace(';', r'\;')
return s
# generate thumbnail images from video