Bug #605

mythweb flash playback requires some perl modules

Added by bigb almost 15 years ago. Updated over 14 years ago.

Status:Closed Start date:
Priority:Normal Due date:
Assignee:mihanson % Done:

0%

Category:- Spent time: -
Target version:-

Description

Hi,

To get flash video playback in mythweb-22000 working, i had to install the perl module "Math::Round".

I think 0.21 requires perl modules "Fcntl" and "Sys::Hostname", but i'm not sure.

BigB.

History

Updated by nharris almost 15 years ago

I added perl-math-round and flash playback in mythweb still does not work. Did you do make any other changes? Can someone else try to duplicate this please.

Updated by bigb almost 15 years ago

which mythweb package version are you using?

pacman -Qe|grep mythweb

Also, try going to the video playback page in the settings page of mythweb. I had about
6 warnings there about permissions to access ffmpeg. I had to edit /etc/php/php.ini
and add ":/usr/bin" to the end of line 252 which starts with "open_basedir", this is
to allow php access to the ffmpeg executable. For reference, R5.5 had this line commented out.

I now only have this warning repeated twice.

Warning at /data/srv/httpd/htdocs/mythweb/modules/mythweb/tmpl/default/set_flvplayer.php, line 31: file_exists() [function.file-exists]: open_basedir restriction in effect. File(/bin/ffmpeg) is not within the allowed path(s): (/data/srv/httpd/htdocs/:/home/:/tmp/:/usr/share/pear/:/data/srv/tmp:/usr/share/mythtv/mythweather/scripts/:/data/srv/httpd/htdocs/mythweb/data/video:/myth/ipodfeed:/data/srv/httpd/htdocs/archive:/etc:/myth/icons:/usr/bin)

Updated by nharris almost 15 years ago

I'm running 0.22 and have /usr/bin in the php path (fixed this earlier). I do not have errors on the mythweb video playback setup screen (enabled, width=320, video bitrate=256, audio bitrate=64).

When I try to play the stream (flowplayer), I get the error:
200, Stream not found,
NetStream.Play...etc...

could not cut and paste error message unfortunately.

Updated by mihanson almost 15 years ago

[mythtv@mythbox-mbe ~]$ mythbackend --version Please include all output in bug reports. MythTV Version : 23069 MythTV Branch : branches/release-0-22-fixes Network Protocol : 50 Library API : 0.22.20091023-1 QT Version : 4.5.2 I simply ran $ sudo cpan -i Math::Round and $ sudo sv restart lighttpd and now mythweb streaming with flowplayer works great when enabled on through mythweb ( Open mythweb in browser > Settings > Mythweb > Video Playback > tick Enable Video Playback. i do not have anything checked under Streaming > Protocol. I just wish I could seek past the commercials ;)

Updated by girkers almost 15 years ago

I found that I had to upgrade ffmpeg to the latest version. I am on the testing repos and found that I was getting the same error about 200 Stream not found, but when I upgraded ffmpeg from version 20081220-3 to ffmpeg-svn-19483-1 I was able to watch my video. I was also able to remove the other two warning messages on the MythWEB Video Playback settings page by adding :/bin:/sbin to the /etc/php.ini in the section open_basedir (Not sure of security implications of this). By upgrading ffmpeg it also removed the warning about ffmpeg not having mp3 support.

Updated by nharris almost 15 years ago

Mike & Garth,

Thanks for the responses. Unfortunately, none of this works for me. Same stream not found error. I probably have messed something else up. I do hack on my machine a lot (of course). I had it working in previous 0.22 svn builds, but have not tired it out in a long time. If I do manage to figure it out, I will try to get it into the repo. Until then, I can add a perl-math-round package for you guys.

Updated by mihanson over 14 years ago

This worked for me. Nathan, did you get to the bottom of your issue?

Updated by nharris over 14 years ago

Nope. It still does not work. But it's probably my machine which could use a clean reinstall after all the mucking around I have done.

Also available in: Atom PDF