Jump to content

Emby Theater for Linux


xnappo

Recommended Posts

ngc1975

So basically you're saying you need to force it to always be full screen?

 

Yes, because the maximize button has no effect.

Link to comment
Share on other sites

daldana

I was having a problem on my RPI with very low volume from either the HDMI or analog outputs and tried everything to get it louder. I initially thought the problem was with the OS use of alsamixer so I tried installing pulseaudio, but that didn't work no matter how many settings I changed, so I dumped it and went back to alsamixer. Tried all kinds of tweaks in there and still couldn't get it work. Then I tried the Emby web client and found that the audio was just fine, so the problem was in the mpv player settings.

 

Long story, short, I added a line in the mpv.conf file that immediately fixed the problem on both outputs. The line is;

 

--af=lavfi=[acompressor=6]

 

You can play with the value (I've tried it at 12 and it increased even more), but I don't know where it will start distorting. Good luck!

Link to comment
Share on other sites

Interesting, thanks for the info. We'll have to get something for that into the settings UI.

  • Like 1
Link to comment
Share on other sites

ebike

Hi,

 

@@ellnic

I Agree a light-weight window manager like i3 is the way to go, though I prefer awesome, it is much more configurable .... (i.e you won't have any issues with bringing ET up full screen)

 

@@Luke

Is there any plans to put this build into a container, like FlatPak? Seems it would be much easier to get across to a lot of platforms that way ..

I would suggest a minimal Archlinux build with Xorg/Awesome window manager, electron and the bare minimum dependencies to have it work ..

 

My 2c.

Edited by ebike
  • Like 1
Link to comment
Share on other sites

ellnic

That was the first time I’d ever used i3. I’m normally in favour of more pleasing GUIs.. Will check out awesome though as more configurability is always good [emoji106]

 

I only chose i3 because it was pretty far up the list on the well known WM/DE memory use bar chart that’s been floating around for yonks (and wasn’t completely sucky).

 

post-38326-15331645304496_thumb.png

 

Obviously, that chart is years old so much may have changed.

 

Sent from my iPhone using Tapatalk

Edited by ellnic
Link to comment
Share on other sites

We are currently working on Pi packaging first, then we'll probably look at others. And yes, something that we could deploy universally would be very nice so that we don't have to go and build so many individually like we do with the server.

  • Like 1
Link to comment
Share on other sites

We've pushed some improvements for Raspberry Pi, specific to opening the video OSD. please try it out. Thanks !

  • Like 1
Link to comment
Share on other sites

daldana

Hi, I did an "git pull" to perform an update, restarted Pi, and tried Emby, but I don't see any changes in the OSD (other than the Blue Radiance backdrop). What was the update supposed to do? Thank you.

Link to comment
Share on other sites

Ok guys, we finally have a one-click install for this. I'll post the builds here in the community during early testing stages. Please see the instructions in the first post.

 

The video player is mpv with support for hardware acceleration and de-interlacing. Enjoy !

  • Like 2
Link to comment
Share on other sites

haraldov

The video player is mpv with support for hardware acceleration and de-interlacing. Enjoy !

 

I have installed the deb package in post 1 but I do not find the mpv binary file included in the deb package. Should it be?

pi@raspberrypi:~/Downloads $ whereis mpv
mpv:

The deb package complain about some missing packages. 

pi@raspberrypi:~/Downloads $ sudo dpkg -i emby-theater_3.0.1_armhf.deb 
Selecting previously unselected package emby-theater.
(Leser database ... 115937 filer og kataloger er for øyeblikket installerte.)
Preparing to unpack emby-theater_3.0.1_armhf.deb ...
Unpacking emby-theater (3.0.1-1) ...
dpkg: dependency problems prevent configuration of emby-theater:
 emby-theater krever libgconf2-4. Men:
Pakken libgconf2-4 er ikke installert.
 emby-theater krever liblua5.2-0. Men:
Pakken liblua5.2-0 er ikke installert.
 emby-theater krever libsdl2-2.0-0. Men:
Pakken libsdl2-2.0-0 er ikke installert.

dpkg: error processing package emby-theater (--install):
 kravproblem - setter ikke opp pakken
Processing triggers for gnome-menus (3.13.3-9) ...
Processing triggers for desktop-file-utils (0.23-1) ...
Processing triggers for mime-support (3.60) ...
Det oppsto feil ved behandling av:
 emby-theater
pi@raspberrypi:~/Downloads $ 

You can install these packages like this:

i@raspberrypi:~/Downloads $ sudo apt --fix-broken install
Link to comment
Share on other sites

ellnic

Ok, I don’t get the error on a Pi2. So I think that’s probably the minimum requirement. Very easy to get up and running now. Nice :-D

 

 

Sent from my iPhone using Tapatalk

Link to comment
Share on other sites

haraldov

I want to share how to compile mpv master from git running on rpi3 with the last (June 18) Raspbian Stretch.



# On recent Raspbian Stretch, you have to run RPi-update
# to obtain /opt/vc/lib/pkgconfig Source: https://github.com/mpv-player/mpv-build/issues/84
sudo apt install rpi-update && sudo rpi-update && sudo reboot 


# Add PKG_CONFIG_PATH and LIBRARY_PATH before running mpv-build
# Source: https://github.com/mpv-player/mpv-build/issues/84, https://github.com/mpv-player/mpv-build/issues/83
# and https://github.com/mpv-player/mpv-build/issues/98
export PKG_CONFIG_PATH=/opt/vc/lib/pkgconfig
export LIBRARY_PATH=/opt/vc/lib
export LDFLAGS=-L/opt/vc/lib
export CPATH=/opt/vc/include

# Prepare Ubuntu build packages Source: https://help.ubuntu.com/community/CompilingEasyHowTo
sudo apt-get install build-essential
sudo apt-get install cvs subversion git-core mercurial

# Use mpv-build helper scripts to compile mpv on Raspbian. Source: https://github.com/mpv-player/mpv-build
sudo apt-get install git devscripts equivs
git clone https://github.com/mpv-player/mpv-build.git
cd mpv-build
echo --enable-mmal >> ffmpeg_options
./use-mpv-master
./update
rm -f mpv-build-deps_*_*.deb
mk-build-deps -s sudo -i
dpkg-buildpackage -uc -us -b -j4
# Install deb package: sudo dpkg -i ../mpv_<version>_<architecture>.deb
sudo dpkg -i ../mpv_2018.08.05.cfecbac863_armhf.deb

# Mpv need 256 Mb on rpi2 and 3
echo "gpu_mem=256" >> /boot/config.txt



Check available video outputs where you need the gpu video option

pi@raspberrypi:~ $ mpv --vo=help
Available video outputs:
libmpv render API for libmpv
rpi Raspberry Pi (MMAL)
gpu Shader-based GPU Renderer
vdpau VDPAU with X11
xv X11/Xv
vaapi VA API with X11
x11 X11 (slow, old crap)
null Null video output
image Write video frames to image files
tct true-color terminals
caca libcaca
drm Direct Rendering Manager

With the master mpv version in ET choose under setting-->hardware accellaration Auto instead of Rpi option.

#Source: https://mpv.io/manual/master/#video-output-drivers
The RPI option is deprecated. Use --vo=gpu instead, which is the default and provides the same functionality.
The rpi VO will be removed in mpv 0.23.0.


Edited by haraldov
  • Like 1
Link to comment
Share on other sites

haraldov
I have installed the deb package in post 1 but I do not find the mpv binary file included in the deb package. Should it be?

@@Luke, sorry if I have misunderstood something here. 

I needed to install mpv after I have installed the ET deb package. In the orginal post #68 (page 4) I made an howto compile mpv, which I updated for the master mpv and posted above. Have the Emby developers made a mpv deb package for raspbian we can use? 

With the master mpv version in ET choose under setting-->hardware accellaration Auto instead of Rpi option. 

When I choose the RPI option in ET recorded ts videos play choppy. When I choose Auto the video plays fine because I think mpv choose the gpu video option. I am going to check this more. 

Edited by haraldov
Link to comment
Share on other sites

haraldov
With the master mpv version in ET choose under setting-->hardware accellaration Auto instead of Rpi option. 

When I play the recorded video with the RPI option setting in ET streamed from the Emby server the video plays slow and the video and sound is not in sync. When I play it with the Auto option setting in ET the video plays perfect.

Is RPI and Auto the same option? If so you can forget the post above. 

 

When I play the same video from local disk everythink i fine with the mpv video option rpi.

pi@raspberrypi:~/Videos/Michael Mosley - blodets magiske egenskaper $ mpv --vo=rpi "Michael Mosley - blodets magiske egenskaper 2018_08_05_12_45_00.ts" 
Playing: Michael Mosley - blodets magiske egenskaper 2018_08_05_12_45_00.ts
[ffmpeg/demuxer] mpegts: PES packet size mismatch
[ffmpeg/video] h264: SPS unavailable in decode_picture_timing
[ffmpeg/video] h264: non-existing PPS 0 referenced
[ffmpeg/video] h264: SPS unavailable in decode_picture_timing
[ffmpeg/video] h264: non-existing PPS 0 referenced
[ffmpeg/video] h264: decode_slice_header error
[ffmpeg/video] h264: no frame!
[ffmpeg/video] h264: SPS unavailable in decode_picture_timing
[ffmpeg/video] h264: non-existing PPS 0 referenced
[ffmpeg/video] h264: SPS unavailable in decode_picture_timing
[ffmpeg/video] h264: non-existing PPS 0 referenced
[ffmpeg/video] h264: decode_slice_header error
[ffmpeg/video] h264: no frame!
[ffmpeg/video] h264: SPS unavailable in decode_picture_timing
[ffmpeg/video] h264: non-existing PPS 0 referenced
[ffmpeg/video] h264: SPS unavailable in decode_picture_timing
[ffmpeg/video] h264: non-existing PPS 0 referenced
[ffmpeg/video] h264: decode_slice_header error
[ffmpeg/video] h264: no frame!
[ffmpeg/demuxer] mpegts: start time for stream 4 is not set in estimate_timings_from_pts
[ffmpeg/demuxer] mpegts: start time for stream 5 is not set in estimate_timings_from_pts
[ffmpeg/demuxer] mpegts: PES packet size mismatch
[ffmpeg/demuxer] mpegts: PES packet size mismatch
[ffmpeg/demuxer] mpegts: PES packet size mismatch
 (+) Video --vid=1 (h264 1280x720 50.000fps)
 (+) Audio --aid=1 --alang=nor (ac3 2ch 48000Hz)
     Audio --aid=2 --alang=nor (aac_latm 2ch 48000Hz)
     Subs  --sid=1 --slang=nor (dvb_teletext)
     Subs  --sid=2 --slang=nor (dvb_subtitle)
     Subs  --sid=3 --slang=nor 'hearing impaired' (dvb_subtitle)
Using hardware decoding (mmal).
AO: [alsa] 48000Hz stereo 2ch float
VO: [rpi] 1280x720 mmal
AV: 00:00:12 / 01:04:59 (0%) A-V:  0.000
[input] No key binding found for key '0x16'.
AV: 00:00:13 / 01:04:59 (0%) A-V:  0.000


Exiting... (Quit)
^C

When I play the video with the mpv video option gpu I do not get any video only sound.

pi@raspberrypi:~/Videos/Michael Mosley - blodets magiske egenskaper $ mpv --vo=gpu "Michael Mosley - blodets magiske egenskaper 2018_08_05_12_45_00.ts" 
Playing: Michael Mosley - blodets magiske egenskaper 2018_08_05_12_45_00.ts
[ffmpeg/demuxer] mpegts: PES packet size mismatch
[ffmpeg/video] h264: SPS unavailable in decode_picture_timing
[ffmpeg/video] h264: non-existing PPS 0 referenced
[ffmpeg/video] h264: SPS unavailable in decode_picture_timing
[ffmpeg/video] h264: non-existing PPS 0 referenced
[ffmpeg/video] h264: decode_slice_header error
[ffmpeg/video] h264: no frame!
[ffmpeg/video] h264: SPS unavailable in decode_picture_timing
[ffmpeg/video] h264: non-existing PPS 0 referenced
[ffmpeg/video] h264: SPS unavailable in decode_picture_timing
[ffmpeg/video] h264: non-existing PPS 0 referenced
[ffmpeg/video] h264: decode_slice_header error
[ffmpeg/video] h264: no frame!
[ffmpeg/video] h264: SPS unavailable in decode_picture_timing
[ffmpeg/video] h264: non-existing PPS 0 referenced
[ffmpeg/video] h264: SPS unavailable in decode_picture_timing
[ffmpeg/video] h264: non-existing PPS 0 referenced
[ffmpeg/video] h264: decode_slice_header error
[ffmpeg/video] h264: no frame!
[ffmpeg/demuxer] mpegts: start time for stream 4 is not set in estimate_timings_from_pts
[ffmpeg/demuxer] mpegts: start time for stream 5 is not set in estimate_timings_from_pts
[ffmpeg/demuxer] mpegts: PES packet size mismatch
[ffmpeg/demuxer] mpegts: PES packet size mismatch
[ffmpeg/demuxer] mpegts: PES packet size mismatch
 (+) Video --vid=1 (h264 1280x720 50.000fps)
 (+) Audio --aid=1 --alang=nor (ac3 2ch 48000Hz)
     Audio --aid=2 --alang=nor (aac_latm 2ch 48000Hz)
     Subs  --sid=1 --slang=nor (dvb_teletext)
     Subs  --sid=2 --slang=nor (dvb_subtitle)
     Subs  --sid=3 --slang=nor 'hearing impaired' (dvb_subtitle)
Using hardware decoding (mmal).
AO: [alsa] 48000Hz stereo 2ch float
VO: [gpu] 1280x720 mmal
[vo/gpu] Using HW-overlay mode. No GL filtering is performed on the video!
AV: 00:00:11 / 01:04:59 (0%) A-V: -0.000


Exiting... (Quit)
Edited by haraldov
Link to comment
Share on other sites

@@haraldov i think the issue is you didn't follow the instructions in the first post. 

dpkg -i" does not install dependencies. 

 

"sudo apt install *.deb" does install dependencies. this is what you should have done, and what the instructions tell you to do.

 

Is this correct?

Link to comment
Share on other sites

FYI to those testing, I just updated both the ARM and X64 .debs. They are just packaging updates. Thanks.

Link to comment
Share on other sites

ebike

Thanks Luke .. great job.

 

I tried installing on Archlinux with debtap from AUR. All was good apart from video playing, just a blank screen, but sound ok ... everything else looked great.

 

Any chance of an Arch package?

Edited by ebike
  • Like 1
Link to comment
Share on other sites

I'd love to do lots of packages just like we have with the server. Hopefully we will get there. 

  • Like 1
Link to comment
Share on other sites

ebike

I'd love to do lots of packages just like we have with the server. Hopefully we will get there. 

Any idea's with the blank screen for video?

Link to comment
Share on other sites

haraldov
"sudo apt install *.deb" does install dependencies. this is what you should have done, and what the instructions tell you to do. 

Post 363. @@Luke, this is confirmed and is correct. 

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...