We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e2b4b14 commit d6cb440Copy full SHA for d6cb440
modules/stream/stream_flv.pl
@@ -138,7 +138,7 @@
138
}
139
# Guess the filesize based on duration and bitrate. This allows for progressive download behavior
140
my $lengthSec;
141
- $dur = `ffmpeg -i $filename 2>&1 | grep "Duration" | cut -d ' ' -f 4 | sed s/,//`;
+ $dur = `$ffmpeg -i $filename 2>&1 | grep "Duration" | cut -d ' ' -f 4 | sed s/,//`;
142
if ($dur && $dur =~ /\d*:\d*:.*/) {
143
@times = split(':',$dur);
144
$lengthSec = $times[0]*3600+$times[1]*60+$times[2];
0 commit comments