Ticket #7575: stream_flv.diff

File stream_flv.diff, 1.1 KB (added by justin.johnson3@…, 16 years ago)
Line 
1*** stream_flv.pl 2009-10-29 19:58:53.000000000 -0500
2--- stream_flv.pl.new 2009-11-15 10:28:37.000000000 -0600
3***************
4*** 52,59 ****
5--- 52,61 ----
6 $width = round_even($width);
7 if ($x && $y) {
8 $height = round_even($width * ($y/$x));
9+ $aspect = $x/$y;
10 } else {
11 $height = round_even($width * 3/4);
12+ $aspect = 3/4;
13 }
14 $sh->finish();
15
16***************
17*** 70,76 ****
18 .' -r 24'
19 .' -f flv'
20 .' -deinterlace'
21! .' -ac 2'
22 .' -ar 11025'
23 .' -ab '.shell_escape("${abitrate}k")
24 .' -b '.shell_escape("${vbitrate}k")
25--- 72,79 ----
26 .' -r 24'
27 .' -f flv'
28 .' -deinterlace'
29! .' -aspect '.shell_escape($aspect)
30! .' -ac 2'
31 .' -ar 11025'
32 .' -ab '.shell_escape("${abitrate}k")
33 .' -b '.shell_escape("${vbitrate}k")