|
|
MythTV talk.com - The MythTV forum Where the World comes to speak about MythTV !!
Welcome on the MythTV users community forum archive, 9023 users already joined the helping and friendly MythTV community! What are you waiting to be the next one?
Click HERE to view the official MythTV users community forum
|
[mythweb] divers petits problèmes
|
amorgen
|
Bonjour,
je rencontre divers problèmes avec mythweb, 3 en fait:
- j'ai réglé le problème du tv_grab_fr et du mythfilldatabase, les programmes sont dans la table "program" de la base "mythconverg", mais aucun n'apparait dans le listing par defaut de l'interface web. Si je schedule un enregistrement manuel je peux parcourir les programmes, mais l'interface me dit qu'il n'y a aucun "upcoming recording" ... Du coup j'ai le programme télé mais je ne peux l'utiliser (je testerai ce soir s'il est accessible avec le mythfrontend)
- j'ai un message d'erreur de session php: "Fatal error: Call to a member function query() on a non-object in /usr/share/mythtv/mythweb/includes/session.php on line 60"
- enfin, pour ce qui est de la musique et des videos dans mythweb apache me propose de les telecharger et pas de les streamer comme je peux le faire avec d'autres interfaces php comme jinzora ou mp3act. Cela viendrait t'il de mon htaccess?
Code:
#
# .htaccess file for MythWeb. Please read the descriptive comments for help
# using these directives in your own setup. If you so desire (and for a small
# increase in efficiency, you can put this entire block into the apache config
# for your MythWeb host configuration).
#
# See http://www.mythtv.org/ for information about MythTV itself.
#
# @url $URL$
# @date $Date: 2006-06-28 14:33:11 -0400 (Wed, 28 Jun 2006) $
# @version $Revision: 10338 $
# @author $Author: xris $
#
#
# I *strongly* urge you to turn on authentication for MythWeb. It is disabled
# by default because it requires you to set up your own password file. Please
# see the man page for htdigest and then configure the folowing four directives
# to suit your authentication needs.
#
# AuthType Digest
# AuthName "MythTV"
# AuthUserFile /var/www/htdigest
# Require valid-user
# BrowserMatch "MSIE" AuthDigestEnableQueryStringHack=On
#
# * If you're running Apache earlier than 2.2, you will need to use
# AuthDigestFile instead of AuthUserFile.
# MythTV now uses the correct file suffix for mpeg files, so all .nuv files
# should actually be NuppleVideo. However, apache probably doesn't know what
# those are, so we should tell it.
AddType video/nuppelvideo .nuv
# Specify the MIME type for favicon.ico in case the server configuration
# doesn't or in case the server configuration uses the IANA-approved MIME type
# (image/vnd.microsoft.icon)--which most browsers won't recognize.
AddType image/x-icon .ico
# perso: authentication
# AuthType Basic
# AuthName "Protected Area"
# AuthUserFile /etc/htpasswd
# require valid-user
# Some special instructions for the PHP files of MythWeb.
<Files mythweb.*>
#
# Use the following environment settings to tell MythWeb where you want it to
# look to connect to the database, the name of the database to connect to, and
# the authentication info to use to connect. The defaults will usually work
# fine unless you've changed mythtv's mysql.txt file, or are running MythWeb on
# a different server from your main backend. Make sure you have mod_env enabled.
#
setenv db_server "localhost"
setenv db_name "mythconverg"
setenv db_login "user"
setenv db_password "****"
# ce user a des droits (granted)
#
# By default, MythWeb uses the hostname program to look up the hostname of the
# machine it runs on. If this reports incorrect data, or you run MythWeb on a
# machine without the hostname program, set this to your current hostname.
#
# setenv hostname "my_mythbox"
#
# By default, php will always search the current directory for include files,
# but if you wish to install these directories outside of the current path
# (eg. for security reasons), set this variable to the directory that
# contains the directories like languages and templates. eg.
#
# setenv include_path "/usr/share/mythweb"
# If you want MythWeb to email php/database errors (and a backtrace) to you,
# uncomment and set the email address below.
#
# setenv error_email "mythweb_errors@example.com"
#
# If your local file system is something other than UTF-8, set this variable
# so that the music and video portions of MythWeb can provide proper links
# to your downloadable files.
#
# setenv fs_encoding "ISO-8859-1"
# These settings are intended for apache 2.x. If your version of apache
# doesn't support php_value, or things like memory_limit aren't working
# as expected, then use these settings as examples for your own php.ini
# files.
php_value safe_mode 0
php_value memory_limit 32M
php_value output_buffering 4096
php_value register_globals 0
php_value magic_quotes_gpc 0
php_value file_uploads 0
php_value allow_url_fopen On
php_value zlib.output_handler Off
php_value zlib.output_compression 16384
php_value zlib.output_compression_level 4
php_value url_rewriter.tags a=href,area=href,frame=src,input=src,form=action
# These values do not change - bug in php
php_value output_handler NULL
# php_flag does not work in older versions of php
php_flag output_handler "NULL"
php_flag short_open_tag "On"
</Files>
# Execute perl scripts in cgi mode (so we can stream properly)
<Files *.pl>
SetHandler cgi-script
Options +ExecCGI
</Files>
#
# The settings below relate specifically to mod_rewrite and the rewrite engine
# used to make the MythWeb user experience a little easier to deal with by
# simplifying the URL's neeced to access the various sections. Do not touch
# these settings unless you really know what you're doing..
#
# Turn on the rewrite engine
RewriteEngine on
# If MythWeb is installed outside of the document root (eg. using Alias) then
# you will need to set this directive to the base URL that MythWeb is visible
# from externally. If you do not, the web server will return 'not found'. eg.
# RewriteBase /mythweb
# Skip out early if we've already been through rewrites,
# or if this is a /css/, /js/ or /cache/ directory request.
RewriteRule ^(css|data|images|js|themes|skins|[a-z_]+\.(php|pl))(/|$) - [L]
# Redirect /pl/ requests to the perl cgi handler.
RewriteRule ^(pl(/.*)?)$ mythweb.pl/$1 [QSA,L]
# Redirect most of the remaining URL requests to the main mythweb script.
# It will then handle any requests given to it.
RewriteRule ^(.+)$ mythweb.php/$1 [QSA,L]
# If you're experiencing trouble with the previous two lines in your copy of
# apache, you could instead use something like:
# RewriteRule ^(pl(/.*)?)$ mythweb.pl?PATH_INFO=/$1 [L,QSA]
# RewriteRule ^(.+)$ mythweb.php?PATH_INFO=/$1 [L,QSA]
# Catch anything else that comes through and send it to mythweb.php with no parameters.
RewriteRule ^(.*)$ mythweb.php [QSA,L]
- enfin n'ayant pas reussi (pas trop eu le temps) d'installer mythstream je voudrais utiliser un script de mon cru:
Code:
#!/bin/bash
# v0.3 par Morgan Chamboredon (amorgen@la-base.org)
# Janvier 2007
# objet: utiliser le player vlc pour streamer des medias
# presents sur le disque dur de votre serveur (ou le flux
# tele freebox) lorsque vous etes loin de votre machine.
# variables:
VLC="/usr/bin/vlc"
logfile=".stream.log"
port="80"
options=""
vrate="520" # bitrate video
vcodec="mp4v" # codev video (ex: vcodec="mp4v")
arate="64" # bitrate audio
acodec="vorbis" # codec audio
scale="0.5"
if [ -z "$1" ]
then
#usage # null
echo "USAGE: lancez le script avec un des arguments suivants:"
echo "- \"tv\": on vous demandera quel est le numero id de la chaine freebox voulue"
echo "- \"zik <chemin>\": cree une liste de lecture avec le contenu du repertoire"
echo "- \"<fichier>\": vous lit le fichier"
exit 0
else
case "$1" in
"tv")
echo -n "Quel numero de chaine tv voulez vous regarder ?: "
read cid # (chaine id)
plist="rtsp://mafreebox.freebox.fr/freeboxtv/stream?id="$cid""
;;
"zik")
`fapg -r -f m3u -o ".zik.m3u" "$2"`
plist=".zik.m3u"
;;
*)
plist="$1"
;;
esac
fi
sudo \
"$VLC" \
-vvv \
-I dummy \
"$plist" \
--sout '#transcode{scale='$scale',vcodec='$vcodec',acodec='$acodec',vb='$vrate',ab='$arate',deinterlace}:standard{access=http,mux=ogg,dst=:'$port'}' \
#--sout '#transcode{scale='$scale',vcodec='$vcodec',acodec='$acodec',vb='$vrate',ab='$arate',deinterlace}' \
"$options"
#>> $logfile 2>&1
exit 0
je voudrais que le script soit appelé par mythweb pour me streamer les videos et le flux tv de ma freebox (tel qu'il le fait deja) et que le script soit appelé par php via "exec". Vous avez une idée de comment faire ?
Les deux problèmes sont certainement liés mais je ne plus d'idée de piste pour mes recherches.
Merci d'avance pour votre aide ! |
|
Go to the original "[mythweb] divers petits problèmes" thread |
|