Ticket #6401: flv_ffmpeg_mp3_detection.2.patch

File flv_ffmpeg_mp3_detection.2.patch, 741 bytes (added by Michelle Agnew <mythtvtrac@…>, 15 years ago)

ffmpeg mp3 support detection patch

  • mythweb/modules/mythweb/tmpl/default/set_flvplayer.php

     
    3737                    break;
    3838                }
    3939            }
    40             $ffmpeg_output = shell_exec ("$ffmpeg --help 2>&1");
    41             $has_mp3_support = strpos ($ffmpeg_output, "mp3");
     40            $ffmpeg_output = shell_exec ("$ffmpeg -formats 2>&1");
     41            $has_mp3_support = preg_match('/E\s+mp3/', $ffmpeg_output);
    4242            if (!$has_mp3_support)
    4343                echo ' DISABLED';
    4444            if (setting('WebFLV_on'))