Internet Radio i Televizija - Pitanja i Odgovori

Učlanjen(a)
03.03.2010
Poruka
2.135
zašto neće ,nisi ga dobro iskonfigurirao.Radio sam na fos i radi najnormalnije.
Inače ovaj je puno bolji ima više opcija i laše se upravlja sa userima nema bugova,dok ih fos ima.
 
Učlanjen(a)
03.03.2010
Poruka
2.135
- wget http://fos-streaming.com/install.sh
- chmod 755 install.sh
- ./install.sh

ovo sam uradio, pa sam konfiguriro phpmyadmin i config.php, onda ponovo palio i nece
Kod:
go to http://host/phpmyadmin and create a database
edit database connection in config.php

Create database tables - 2 versions
normal install (first install) URL: http://xxx.xxx.xxx.xxx/install.php?install
Fresh install (clean database)URL: http://xxx.xxx.xxx.xxx/install.php?install=fresh
also run this
http://xxx.xxx.xxx.xxx:8000/install.php?install (will add new tables)
http://xxx.xxx.xxx.xxx:8000/install.php?update (updates your tables)
Go to the website and login with username: admin and password: admin

crontab
nano /etc/crontab add this
*/2 * * * * www-data /usr/bin/php /usr/local/nginx/html/cron.php

Login
login: http://host:8000 username: admin - password: admin
 
Učlanjen(a)
03.03.2010
Poruka
2.135
Kod:
FOS-Streaming -- Free IPTV panel for streaming video content

Installation

wget http://tyfix.nl/fos/update1.sh
chmod 755 update1.sh
./update1.sh

After installation open and edit the configuration file "/usr/local/nginx/html/config.php", it looks like

$databasemanagar->addConnection([
    'driver'    => 'mysql',
    'host'      => 'localhost',
    'database'  => 'panelo',
    'username'  => 'root',
    'password'  => '',
    'charset'   => 'utf8',
    'collation' => 'utf8_unicode_ci',
    'prefix'    => '',
]);

Next Create your database with phpmyadmin or mysql (command line)

Finally, do not install the database "/usr/local/nginx/html/database.sql"  it is not full (thanks to the developers !!!) copy and install the next database
Kod:
-- MySQL dump 10.13  Distrib 5.5.44, for debian-linux-gnu (x86_64)
--
-- Host: localhost    Database: FOS-Streaming
-- ------------------------------------------------------
-- Server version    5.5.44-0ubuntu0.14.04.1

/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8 */;
/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
/*!40103 SET TIME_ZONE='+00:00' */;
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;

--
-- Table structure for table `admins`
--

DROP TABLE IF EXISTS `admins`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `admins` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `username` varchar(50) NOT NULL,
  `password` varchar(50) NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`),
  UNIQUE KEY `id` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `categories`
--

DROP TABLE IF EXISTS `categories`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `categories` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(30) NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  UNIQUE KEY `id` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `category_user`
--

DROP TABLE IF EXISTS `category_user`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `category_user` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `user_id` int(11) NOT NULL,
  `category_id` int(11) NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `settings`
--

DROP TABLE IF EXISTS `settings`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `settings` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `ffmpeg_path` varchar(200) NOT NULL,
  `ffprobe_path` varchar(200) NOT NULL DEFAULT '/usr/local/bin/ffprobe',
  `webport` varchar(7) NOT NULL,
  `webip` varchar(200) NOT NULL,
  `hlsfolder` varchar(200) NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `streams`
--

DROP TABLE IF EXISTS `streams`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `streams` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(100) NOT NULL,
  `streamurl` varchar(200) NOT NULL,
  `streamurl2` varchar(200) NOT NULL,
  `streamurl3` varchar(200) NOT NULL,
  `status` int(2) DEFAULT NULL,
  `running` int(2) DEFAULT NULL,
  `cat_id` varchar(30) NOT NULL,
  `trans_id` varchar(30) NOT NULL,
  `action` int(11) NOT NULL,
  `pid` varchar(255) NOT NULL,
  `restream` tinyint(1) NOT NULL,
  `bitstreamfilter` tinyint(1) NOT NULL,
  `video_codec_name` varchar(200) NOT NULL,
  `audio_codec_name` varchar(200) NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `checker` tinyint(1) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `transcodes`
--

DROP TABLE IF EXISTS `transcodes`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `transcodes` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(30) NOT NULL,
  `probesize` varchar(30) DEFAULT NULL,
  `analyzeduration` varchar(30) DEFAULT NULL,
  `video_codec` varchar(30) DEFAULT NULL,
  `audio_codec` varchar(30) DEFAULT NULL,
  `profile` varchar(30) DEFAULT NULL,
  `preset_values` varchar(30) DEFAULT NULL,
  `bufsize` varchar(30) DEFAULT NULL,
  `scale` varchar(30) DEFAULT NULL,
  `aspect_ratio` varchar(30) DEFAULT NULL,
  `video_bitrate` varchar(30) DEFAULT NULL,
  `audio_channel` varchar(30) DEFAULT NULL,
  `audio_bitrate` varchar(30) DEFAULT NULL,
  `fps` varchar(30) DEFAULT NULL,
  `minrate` varchar(30) DEFAULT NULL,
  `maxrate` varchar(30) DEFAULT NULL,
  `audio_sampling_rate` varchar(30) DEFAULT NULL,
  `crf` varchar(30) DEFAULT NULL,
  `threads` varchar(30) DEFAULT NULL,
  `deinterlance` int(11) DEFAULT NULL,
  `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  UNIQUE KEY `id` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `users`
--

DROP TABLE IF EXISTS `users`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `users` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `username` varchar(30) NOT NULL,
  `password` varchar(60) NOT NULL,
  `exp_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `active` tinyint(1) NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  UNIQUE KEY `id` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;

/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
 
Natrag
Top