Jump to content

Emby Server on Raspberry Pi 2


tuxevil

Recommended Posts

tuxevil

Hi all, I have a RPI2 board for the last 2 days, and i installed Emby server on raspbian, but i have a problem when i try to play any video.

 

The player on my android tablet show an error on the query and stops.

 

I already recompile ffmpeg, but i cant make it works

 

What else can be, im just about to try with kodi, there are 3 different specialized distros with kodi but i would preffer to stay in emby, i like it, i have premium account

 

 

 

some suggestions?

Edited by tuxevil
Link to comment
Share on other sites

tuxevil
hi Luke

 

ok, I have been using Emby server on windows for a month, i loved it, but now i want to build a smaller (and cheaper) system so i got a rpi2

 

i installed on raspbian following the debian installation  procedure and no problem with it but, when i try to play any video it gives me an error

 

here are the screenshots of brower playing and android playing error and also the complete logs, i dont really know wich one is the one you want

 

 

PD: embylogs.txt file is in fact a rar file but i couldnt upload it in that format

it contains several logs that i found on the log folder

post-112577-0-78245400-1457454240_thumb.png

post-112577-0-77291900-1457454243_thumb.png

embylogs.txt

Edited by tuxevil
Link to comment
Share on other sites

tuxevil

I found this in the logs

2016-03-07 18:05:47.8671 Warn App: ffmpeg is missing decoder h264_qsv
2016-03-07 18:05:47.8671 Warn App: ffmpeg is missing decoder mpeg2_qsv
2016-03-07 18:05:47.8671 Warn App: ffmpeg is missing decoder vc1_qsv
2016-03-07 18:05:47.8972 Info ActivityRepository: Sqlite 3.8.7.1 opening /var/lib/emby-server/data/activitylog.db
2016-03-07 18:05:47.9728 Warn App: ffmpeg is missing encoder libx264
2016-03-07 18:05:47.9728 Warn App: ffmpeg is missing encoder libx265
2016-03-07 18:05:47.9728 Warn App: ffmpeg is missing encoder mpeg4
2016-03-07 18:05:47.9728 Warn App: ffmpeg is missing encoder msmpeg4
2016-03-07 18:05:47.9728 Warn App: ffmpeg is missing encoder aac
2016-03-07 18:05:47.9728 Warn App: ffmpeg is missing encoder ac3
2016-03-07 18:05:47.9728 Warn App: ffmpeg is missing encoder libmp3lame
2016-03-07 18:05:47.9728 Warn App: ffmpeg is missing encoder srt
2016-03-07 18:27:57.8287 Error HttpAsyncTaskHandler: Error occured while Processing Request: Access token is required.
	*** Error Report ***
	Version: 3.0.5871.0
	Command line: /usr/lib/emby-server/bin/MediaBrowser.Server.Mono.exe -programdata /var/lib/emby-server -restartpath /usr/lib/emby-server/restart.sh
	Operating system: Unix 4.1.18.7
	Processor count: 4
	64-Bit OS: False
	64-Bit Process: False
	Program data path: /var/lib/emby-server
	Mono: 4.2.2 (Stable 4.2.2.30/996df3c Mon Feb 15 18:07:01 UTC 2016)
	Application Path: /usr/lib/emby-server/bin/MediaBrowser.Server.Mono.exe
	Access token is required.
	MediaBrowser.Controller.Net.SecurityException
	  at MediaBrowser.Server.Implementations.HttpServer.Security.AuthService.ValidateSecurityToken (IServiceRequest request, System.String token) <0x71948be0 + 0x000e0> in <filename unknown>:0 
	  at MediaBrowser.Server.Implementations.HttpServer.Security.AuthService.ValidateUser (IServiceRequest request, IAuthenticationAttributes authAttribtues) <0x719419e8 + 0x00083> in <filename unknown>:0 
	  at MediaBrowser.Server.Implementations.HttpServer.Security.AuthService.Authenticate (IServiceRequest request, IAuthenticationAttributes authAttribtues) <0x71940f78 + 0x00023> in <filename unknown>:0 
	  at MediaBrowser.Controller.Net.AuthenticatedAttribute.RequestFilter (IRequest request, IResponse response, System.Object requestDto) <0x71940ee0 + 0x00073> in <filename unknown>:0 
	  at ServiceStack.ServiceStackHost.ApplyRequestFiltersSingle (IRequest req, IResponse res, System.Object requestDto) <0x65f5da78 + 0x0032b> in <filename unknown>:0 
	  at ServiceStack.ServiceStackHost.ApplyRequestFilters (IRequest req, IResponse res, System.Object requestDto) <0x65f5d438 + 0x000af> in <filename unknown>:0 
	  at ServiceStack.Host.RestHandler.ProcessRequestAsync (IRequest httpReq, IResponse httpRes, System.String operationName) <0x65f76990 + 0x004cf> in <filename unknown>:0 

Link to comment
Share on other sites

tuxevil

well, kodi and plex are working perfect on raspberry pi 2, with their own OS, really nice, maybe next step for emby?

 

meanwhile, somebody knows how to fix this, i want to stay on this platform

Link to comment
Share on other sites

djonnie

Did you include x264 when compiling ffmpeg?

 

This is the procedure to compile ffmpeg for the PI 2:

 

cd /usr/src

git clone git://git.videolan.org/x264

cd x264

sudo ./configure --host=arm-unknown-linux-gnueabi --enable-static --disable-opencl

sudo make

sudo make install

 

git clone git://source.ffmpeg.org/ffmpeg.git
cd ffmpeg

sudo ./configure --arch=armel --target-os=linux --enable-gpl --enable-libx264

sudo make

sudo make install

 

 

Then don't forget to edit /usr/lib/emby-server/emby-server.sh

 

change the lines:

 

# ffmpeg
FFMPEG_BIN=$(which ffmpeg)
[ -n "$FFMPEG_BIN" ] && FFMPEG_OPTS="-ffmpeg $FFMPEG_BIN"

# ffprobe
FFPROBE_BIN=$(which ffprobe)
[ -n "$FFPROBE_BIN" ] && FFPROBE_OPTS="-ffprobe $FFPROBE_BIN"
 

to...

 

# ffmpeg
#FFMPEG_BIN=$(which ffmpeg)
FFMPEG_BIN=/usr/local/bin/ffmpeg
[ -n "$FFMPEG_BIN" ] && FFMPEG_OPTS="-ffmpeg $FFMPEG_BIN"

# ffprobe
#FFPROBE_BIN=$(which ffprobe)
FFPROBE_BIN=/usr/local/bin/ffprobe
[ -n "$FFPROBE_BIN" ] && FFPROBE_OPTS="-ffprobe $FFPROBE_BIN"

 

Then it should work.

Link to comment
Share on other sites

tuxevil

Did you include x264 when compiling ffmpeg?

 

This is the procedure to compile ffmpeg for the PI 2:

 

cd /usr/src

git clone git://git.videolan.org/x264

cd x264

sudo ./configure --host=arm-unknown-linux-gnueabi --enable-static --disable-opencl

sudo make

sudo make install

 

git clone git://source.ffmpeg.org/ffmpeg.git

cd ffmpeg

sudo ./configure --arch=armel --target-os=linux --enable-gpl --enable-libx264

sudo make

sudo make install

 

 

Then don't forget to edit /usr/lib/emby-server/emby-server.sh

 

change the lines:

 

# ffmpeg

FFMPEG_BIN=$(which ffmpeg)

[ -n "$FFMPEG_BIN" ] && FFMPEG_OPTS="-ffmpeg $FFMPEG_BIN"

 

# ffprobe

FFPROBE_BIN=$(which ffprobe)

[ -n "$FFPROBE_BIN" ] && FFPROBE_OPTS="-ffprobe $FFPROBE_BIN"

 

to...

 

# ffmpeg

#FFMPEG_BIN=$(which ffmpeg)

FFMPEG_BIN=/usr/local/bin/ffmpeg

[ -n "$FFMPEG_BIN" ] && FFMPEG_OPTS="-ffmpeg $FFMPEG_BIN"

 

# ffprobe

#FFPROBE_BIN=$(which ffprobe)

FFPROBE_BIN=/usr/local/bin/ffprobe

[ -n "$FFPROBE_BIN" ] && FFPROBE_OPTS="-ffprobe $FFPROBE_BIN"

 

Then it should work.

i did but i will try again following your steps, thanks a lot!

Link to comment
Share on other sites

tuxevil

 

Then don't forget to edit /usr/lib/emby-server/emby-server.sh

 

 

 

i dont have that file, just one, wich name is restart.sh and a folder called bin

Link to comment
Share on other sites

djonnie

i dont have that file, just one, wich name is restart.sh and a folder called bin

 

cat /lib/systemd/system/emby-server.service

 

find the line ExecStart= ....

 

mine says:

ExecStart=/usr/lib/emby-server/emby-server.sh start

 

Link to comment
Share on other sites

tuxevil

cat /lib/systemd/system/emby-server.service

 

find the line ExecStart= ....

 

mine says:

ExecStart=/usr/lib/emby-server/emby-server.sh start

 

mine says this:

56e03a7bc4c1a_emby.png

 

today i will reinstall/recompile everything, to try to find why my installation is different

Link to comment
Share on other sites

tuxevil

djonnie GENIUS!!!!!!!!!!

 

it works!!!!!!!

 

i just change those lines to my emby-server file in /usr/bin and it works!!!!

 

thanks a lot man!!

Link to comment
Share on other sites

tuxevil

sorry if i do stupid question but linux is not my strength

 

​if i want to start emby-server automatically on startup

 

​i already tried with:

  • sudo update-rc.d emby-server defaults
  • editing /etc/rc.local and adding: sh /usr/bin/emby-server echo 'Emby Server Started!'

neither of both worked

 

then i used

  • editing /etc/rc.local and adding: sh /usr/bin/emby-server start echo 'Emby Server Started!'
     

and it didnt works neither :(

 

 

so, how i can set embyserver to start automatically on startup

 

thanks

Edited by tuxevil
Link to comment
Share on other sites

djonnie
so, how i can set embyserver to start automatically on startup

 

thanks

 

sudo systemctl enable emby-server

Link to comment
Share on other sites

tuxevil

somebody knows why my emby server dont show me the videos in my external usb drive

i already mounted the drive in /mnt/external

i can see it and navigate in side it from add library menu

 

but i do the library refresh and when i go to the player, the library is empty

 

thanks

Link to comment
Share on other sites

djonnie

Not sure if this is your problem, but you need to re-run the library scan after restarting the service, or you'll have an empty library.

 

The easiest way is to add an "On application startup" trigger to the "Scan media library" scheduled task.

Link to comment
Share on other sites

tuxevil

Not sure if this is your problem, but you need to re-run the library scan after restarting the service, or you'll have an empty library.

 

The easiest way is to add an "On application startup" trigger to the "Scan media library" scheduled task.

 

it should be done everytime it starts?

Link to comment
Share on other sites

tuxevil

Not sure if this is your problem, but you need to re-run the library scan after restarting the service, or you'll have an empty library.

 

The easiest way is to add an "On application startup" trigger to the "Scan media library" scheduled task.

 

i restarted the full raspi to check if autorun was working, it was, flawlesly, thanks so much

 

and i did a manuall library refresh, but still, nothing, empty library

Link to comment
Share on other sites

djonnie

hmm, I think you need to update a log file so more experienced people on this forum can help you out

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...