[mythtv-users] ffmpeg quality for Flash Files
Tom Lichti
tom at redpepperracing.com
Wed Jun 6 20:36:20 UTC 2007
Michael T. Dean wrote:
> On 06/06/2007 03:46 PM, Tom Lichti wrote:
>
>> Michael T. Dean wrote:
>>
>>
>>> On 06/05/2007 02:57 PM, Bob Cottingham wrote:
>>>
>>>
>>>
>>>> recording directory). Now I don't get the error, but nothing happens
>>>> and there's no error at all now.
>>>>
>>>>
>>>>
>> I am in the same situation, see below:
>>
>>
>>> What does your ffmpeg line look like in modules/stream/handler.pl?
>>>
>>> Have you tried running the ffmpeg command at the command line?
>>> /usr/bin/ffmpeg -y -i <recording filename> -s 320x240 -r 24 -f flv -ac 2
>>> -ar 11025 -ab 64k -b 256k /dev/stdout
>>>
>>>
>>>
>> When I run it as root I get data (well, gobbledegook, but data none the
>> less), but when su and run it as the apache user (nobody), I get:
>>
>> Could not open '/dev/stdout'
>>
>>
>
> Oops. I should have changed the /dev/stdout to <some output file name>.
>
> But, since you ran it as root, we know it's working.
>
> Did you remove the redirect from handler.pl and check the apache error
> log? See
>
I did. I get nothing in the error log at all. The access log shows a
request for the flv file, but that is it.
Here is what I changed it to:
First:
$ffmpeg_pid = open(DATA, "/usr/bin/ffmpeg -y -i $filename -s 320x240 -r
24 -f flv -ac 2 -ar 11025 -ab 64k -b 256k /dev/stdout |");
Second:
$ffmpeg_pid = open(DATA, "/usr/bin/ffmpeg -y -i $filename -s 320x240 -r
24 -f flv -ac 2 -ar 11025 -ab 64k -b 256k |");
Third:
$ffmpeg_pid = open(DATA, "/usr/bin/ffmpeg -y -i $filename -s 320x240 -r
24 -f flv -ac 2 -ar 11025 -ab 64k -b 256k
/usr/local/apache2/htdocs/test.mpg |");
None of them did anything. I am really starting to suspect it is a
permissions issue, but I'm not sure why. If I run the command as nobody,
I can't access /dev/stdout. In fact I can't access /dev/stdout as any
user other than root if I su to that user. I can access it if I ssh as
that same user. What the heck is going on?
Tom
More information about the mythtv-users
mailing list