XBMC Video Server: stream/download your library contents

  Thread Rating:
  • 9 Vote(s) - 4.22 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
ubik Offline
Junior Member
Posts: 13
Joined: Aug 2015
Reputation: 0
Post: #826
hi negge,
thanks for the commits !

I've added some features on my xbmc-video-server if someone want the code :
- for the TvShow API i added : 'premiered', 'studio', 'fanart...',
- for the Movies the array of the director, and i added those directors in the list view
- the youtube trailer for the movies and tv shows
- and the most important for me and my friends : the possibility to download the subtitles in the widget if they are present in the directory of the movie) but if i removed them, i have the same idle.

Thanks for your time and your great work on this project !
(This post was last modified: 2016-08-24 03:14 by ubik.)
find quote
willburstyle06 Offline
Member
Posts: 90
Joined: Sep 2012
Reputation: 0
Post: #827
It seems like the only thing preventing the server from being able to stream all the videos with the watch in browser feature is the type of audio the file is encoded in.
For instance every movie on my server streams in Chrome that has AAC audio (2.0-5.1 channel). But movies with Dolby Digital / DTS I have to use the watch as playlist feature. Is this more of a problem with Chrome Players video player audio codecs capabilities and can you possibly update the server to automatically convert audio to AAC like Plex does?
(This post was last modified: 2016-09-14 16:51 by willburstyle06.)
find quote
negge Offline
yo guysv7may bd latr tomorroe
Posts: 3,694
Joined: Dec 2010
Reputation: 53
Location: Finland
Post: #828
What formats your browser can play is totally up to the browser. Chrome is probably the one that can play most formats (it supports .mkv containers while Firefox doesn't do that, etc.).

There was some work done on transcoding a few years ago, but it never got finished. It would be great if someone would pick it up because I don't really have the motivation for it. I use the "watch as playlist" all the time as well.
find quote
willburstyle06 Offline
Member
Posts: 90
Joined: Sep 2012
Reputation: 0
Post: #829
So theoretically if I could find a browser that supported the audio codecs ( Dolby / Flac / DTS) I could play every movie in browser?
find quote
negge Offline
yo guysv7may bd latr tomorroe
Posts: 3,694
Joined: Dec 2010
Reputation: 53
Location: Finland
Post: #830
Theoretically yes, although you'd have to edit the checks done in the code to actually get the option to play in browser (it's done based on container and codec formats).
find quote
itsmaxdd Offline
Junior Member
Posts: 6
Joined: Oct 2016
Reputation: 0
Post: #831
Is there a way to stream other sources through this web server or only files on the hdd? Can i for example stream free channels or similar?

Regards,
find quote
negge Offline
yo guysv7may bd latr tomorroe
Posts: 3,694
Joined: Dec 2010
Reputation: 53
Location: Finland
Post: #832
No.
find quote
grazzor Offline
Junior Member
Posts: 2
Joined: Feb 2017
Reputation: 0
Post: #833
i get this error if i try to connect:

Notice: Trying to get property of non-object in H:\xampp\htdocs\xbmc-video-server\vendor\yiisoft\yii\framework\db\ar\CActiveRecord.php on line 658

Notice: Trying to get property of non-object in H:\xampp\htdocs\xbmc-video-server\vendor\yiisoft\yii\framework\db\schema\CDbCommandBuilder.php on line 92
CDbException

CDbCommand failed to execute the SQL statement: CDbCommand failed to prepare the SQL statement: SQLSTATE[HY000]: General error: 1 no such table: t


application.log shows me:
2017/02/03 23:58:27 [error] [system.db.CDbCommand] Error in preparing SQL: DELETE FROM 'log' WHERE 0=1
2017/02/03 23:58:27 [error] [system.db.CDbCommand] CDbCommand::execute() failed: CDbCommand failed to prepare the SQL statement: SQLSTATE[HY000]: General error: 1 no such table: log. The SQL statement executed was: DELETE FROM 'log' WHERE 0=1.
2017/02/03 23:58:27 [error] [exception.CDbException] exception 'CDbException' with message 'The table "settings" for active record class "Setting" cannot be found in the database.' in H:\xampp\htdocs\xbmc-video-server\vendor\yiisoft\yii\framework\db\ar\CActiveRecord.php:2362
Stack trace:
#0 H:\xampp\htdocs\xbmc-video-server\vendor\yiisoft\yii\framework\db\ar\CActiveRecord.php(411): CActiveRecordMetaData->__construct(Object(Setting))
#1 H:\xampp\htdocs\xbmc-video-server\vendor\yiisoft\yii\framework\db\ar\CActiveRecord.php(658): CActiveRecord->getMetaData()
#2 H:\xampp\htdocs\xbmc-video-server\vendor\yiisoft\yii\framework\db\ar\CActiveRecord.php(1350): CActiveRecord->getTableSchema()
#3 H:\xampp\htdocs\xbmc-video-server\vendor\yiisoft\yii\framework\db\ar\CActiveRecord.php(1470): CActiveRecord->query(Object(CDbCriteria), true)
#4 H:\xampp\htdocs\xbmc-video-server\src\protected\models\Setting.php(104): CActiveRecord->findAll()
#5 H:\xampp\htdocs\xbmc-video-server\src\protected\models\Setting.php(81): Setting::getValue('requestTimeout')
#6 H:\xampp\htdocs\xbmc-video-server\src\protected\controllers\base\Controller.php(19): Setting::getInteger('requestTimeout')
#7 H:\xampp\htdocs\xbmc-video-server\vendor\yiisoft\yii\framework\web\CWebApplication.php(281): Controller->init()
#8 H:\xampp\htdocs\xbmc-video-server\vendor\yiisoft\yii\framework\web\CWebApplication.php(141): CWebApplication->runController('')
#9 H:\xampp\htdocs\xbmc-video-server\vendor\yiisoft\yii\framework\base\CApplication.php(180): CWebApplication->processRequest()
#10 H:\xampp\htdocs\xbmc-video-server\src\index.php(21): CApplication->run()
#11 {main}
REQUEST_URI=/xbmc-video-server/
---
2017/02/03 23:58:27 [error] [system.db.CDbCommand] Error in preparing SQL: SELECT * FROM 't'
2017/02/03 23:58:27 [error] [system.db.CDbCommand] CDbCommand::fetchAll() failed: CDbCommand failed to prepare the SQL statement: SQLSTATE[HY000]: General error: 1 no such table: t. The SQL statement executed was: SELECT * FROM 't'.
2017/02/04 00:01:54 [error] [exception.CDbException] exception 'CDbException' with message 'The table "settings" for active record class "Setting" cannot be found in the database.' in H:\xampp\htdocs\xbmc-video-server\vendor\yiisoft\yii\framework\db\ar\CActiveRecord.php:2362
Stack trace:
#0 H:\xampp\htdocs\xbmc-video-server\vendor\yiisoft\yii\framework\db\ar\CActiveRecord.php(411): CActiveRecordMetaData->__construct(Object(Setting))
#1 H:\xampp\htdocs\xbmc-video-server\vendor\yiisoft\yii\framework\db\ar\CActiveRecord.php(658): CActiveRecord->getMetaData()
#2 H:\xampp\htdocs\xbmc-video-server\vendor\yiisoft\yii\framework\db\ar\CActiveRecord.php(1350): CActiveRecord->getTableSchema()
#3 H:\xampp\htdocs\xbmc-video-server\vendor\yiisoft\yii\framework\db\ar\CActiveRecord.php(1470): CActiveRecord->query(Object(CDbCriteria), true)
#4 H:\xampp\htdocs\xbmc-video-server\src\protected\models\Setting.php(104): CActiveRecord->findAll()
#5 H:\xampp\htdocs\xbmc-video-server\src\protected\models\Setting.php(81): Setting::getValue('requestTimeout')
#6 H:\xampp\htdocs\xbmc-video-server\src\protected\controllers\base\Controller.php(19): Setting::getInteger('requestTimeout')
#7 H:\xampp\htdocs\xbmc-video-server\vendor\yiisoft\yii\framework\web\CWebApplication.php(281): Controller->init()
#8 H:\xampp\htdocs\xbmc-video-server\vendor\yiisoft\yii\framework\web\CWebApplication.php(141): CWebApplication->runController('')
#9 H:\xampp\htdocs\xbmc-video-server\vendor\yiisoft\yii\framework\base\CApplication.php(180): CWebApplication->processRequest()
#10 H:\xampp\htdocs\xbmc-video-server\src\index.php(21): CApplication->run()
#11 {main}
REQUEST_URI=/xbmc-video-server/
---
2017/02/04 00:01:54 [error] [system.db.CDbCommand] Error in preparing SQL: SELECT * FROM 't'
2017/02/04 00:01:54 [error] [system.db.CDbCommand] CDbCommand::fetchAll() failed: CDbCommand failed to prepare the SQL statement: SQLSTATE[HY000]: General error: 1 no such table: t. The SQL statement executed was: SELECT * FROM 't'.
find quote
negge Offline
yo guysv7may bd latr tomorroe
Posts: 3,694
Joined: Dec 2010
Reputation: 53
Location: Finland
Post: #834
@grazzor are you sure you followed the instructions properly? It looks like you either didn't create the database or didn't run the migrations.
find quote
grazzor Offline
Junior Member
Posts: 2
Joined: Feb 2017
Reputation: 0
Wink  RE: XBMC Video Server: stream/download your library contents
Post: #835
followed the instructions: https://github.com/Jalle19/xbmc-video-se...-(Windows)

double check everything
find quote
negge Offline
yo guysv7may bd latr tomorroe
Posts: 3,694
Joined: Dec 2010
Reputation: 53
Location: Finland
Post: #836
Are you sure you ran ".\src\protected\yiic createinitialdatabase"? Does the file "src/protected/data/xbmc-video-server.db" exist for you?
find quote
Post Reply