I haven\'t been able to get ffmpeg\'s drawtext video filter to draw apostrophes/single quotes when they are in drawtext\'s \"text=\" parameter, even when I escape them. Doub
// This works for me
public function replaceSpecialFfmpegChars($text) { return str_replace( ":", "\\\\\\\\\\\:", str_replace( "%", "\\\\\\\\\\\%", str_replace( "'", "'\\\\\\\\\\\\''", str_replace( "\"", "\\\\\\\\\\\"", str_replace( "\\", "\\\\\\\\\\\\\\\\", $text ) ) ) ) ); }