Skip to content
Browse files

Attempt to use mythffmpeg for flv creation and allow async audio so m…

…issing frames dont desync the video
  • Loading branch information...
1 parent 05caea0 commit 2c1f4429801ae56756457b4774f564fdc9b12014 @kormoc kormoc committed Mar 1, 2011
Showing with 5 additions and 0 deletions.
  1. +5 −0 modules/stream/stream_flv.pl
View
5 modules/stream/stream_flv.pl
@@ -35,6 +35,10 @@
# Find ffmpeg
$ffmpeg = '';
foreach my $path (split(/:/, $ENV{'PATH'}.':/usr/local/bin:/usr/bin'), '.') {
+ if (-e "$path/mythffmpeg") {
+ $ffmpeg = "$path/mythffmpeg";
+ last;
+ }
if (-e "$path/ffmpeg") {
$ffmpeg = "$path/ffmpeg";
last;
@@ -80,6 +84,7 @@
.' -r 24'
.' -f flv'
.' -deinterlace'
+ .' -async 2'
.' -ac 2'
.' -ar 11025'
.' -ab '.shell_escape("${abitrate}k")

0 comments on commit 2c1f442

Please sign in to comment.
Something went wrong with that request. Please try again.