[Support] Snoopy - Logitech Media Server, Emoncms, Ubuntu, FFmpeg


Recommended Posts

Update on this - I've done some more digging and it seems that the problem is exclusive to wav encoding in shairtunes, it's working fine on flac and mp3. Not sure if this is directly a shairtunes issue or a missing/incompatible enconding library, the logs don't seem to help, but will carry on investigating, but for now have it working :)

Link to comment
  • 3 months later...

I've been running LMS on my UnRaid box for about 5 years now, things have been running so well until about 6 months ago.  I run multiple raspberry pi clients with PiCorePlayer, and control the system with Android Orange Squeeze.  

 

As mentioned, about 6 months ago the server seems to be creating phantom clients named after existing clients, but having the IP address of the UnRaid LMS server.  They are fully controllable, and I guess if I had a soundcard and speakers connected to the server, I would most likely hear audio from these phantom clients, but I'm trying to figure out why this is occurring.  I've actually just been renaming them as clientzone_fake so I can easily determine the actual client to the fake one.

 

The most recent has been I just added a raspberry pi and called it OutdoorZone...which the server quickly added the phantom channel.

 

Any advice on why this is happening...and more importantly, how do I stop it from happening?  I've even logged into mysqueezebox and deleted extra clients showing there, but it hasn't transferred over to the server.

 

Shown is my LMS Information screen that shows these phantom clients with their actual client and additional phantoms created that just reside on the server such as the Denon-AVR-X2000, and the HTPC.

 

*EDIT* is it something to do with that RaopBridge Player Type?  Not sure what that is.

 

*EDIT UPDATE*

Figured it out.  I was using the AirPlay Bridge plugin, and it was configuring these device clients.  Removed the plugin, all went back to normal and only the actaul clients are showing up.  

 

 

 

LMS_Issue.png

Edited by Marbles_00
Link to comment
  • 3 weeks later...
On 9/1/2020 at 7:27 AM, randomtask1 said:

looks like its reporting an udpate

 

A new version of Logitech Media Server is available (8.0.0 - 1598791476). Click here for further information.

 

 

Hi @randomtask1

 

you will see this message lots of times as the version that is inside the docker is not always the latest one. There is no issue with that whatsoever so you can just ignore this message.

Link to comment
  • 1 month later...
On 8/15/2016 at 6:18 PM, manorfan said:

Hello. Please bear with me as I'm still new to Linux/Docker. I've installed ubuntu-xrdp with the stock settings and bridged mode. It seems to start successfully, but I have no success connecting to it via windows rdp. On the same network. With no other dockers running, I've put in the web address of the unraid server, ubuntu as the user name, PASSWD as the password. Windows 10 RDP always comes back with a protocol error. I've tried turning off the firewall.

 

What else might I try?

 

Thanks so much!!

 

Bobby

 

 

UPDATE: The issue turned out to be WIN 10 Remote Desktop App from the app store. It would not connect. The original RDP App (yeah, their both called Remote Desktop App) that comes in Windows worked fine.

Where the heck does it say this is the user and password??? Why isn't this stated on the description for the Docker?

Link to comment
  • 2 weeks later...
On 10/3/2020 at 8:22 AM, ceyo14 said:

Where the heck does it say this is the user and password??? Why isn't this stated on the description for the Docker?

Thanks to your comment I found out the user and passwd as well lol. Cannot find it in the front page or installation page. Not sure how to edit it either.

  • Haha 1
Link to comment
On 10/17/2020 at 8:35 AM, Reilz said:

Thanks to your comment I found out the user and passwd as well lol. Cannot find it in the front page or installation page. Not sure how to edit it either.

I think once you are able to login it is just the ubuntu password that you need to change

Link to comment
  • 2 weeks later...
  • 1 month later...

Hello,

 

I discover your docker ffmpeg, which i am trying to setup.

I don't really understand how the watch folder is working (i drop file in it, but ffmpeg doesn't start encoding) so i tried manually.

 

And it seems that ffmpeg is not up to date :

- ffmpeg version 4.1.6 inside the docker

- ffmpeg version 4.3.1 on my macbook pro

And, some new commands for libx265 are not supported by 4.1.6 as i receive this message :

[libx265 @ 0x562634b31800] Unknown option: selective-sao.
[libx265 @ 0x562634b31800] Unknown option: scenecut-aware-qp.
[libx265 @ 0x562634b31800] Unknown option: scenecut-window.

 

Using :

ffmpeg -i watch/HDM6.mkv -c:v libx265 -c:a copy -preset slow -crf 23 -profile:v main10 -x265-params "allow-non-conformanc
e=1:wpp=1:tu-intra-depth=1:tu-inter-depth=1:cutree=1:early-skip=1:limit-refs=3:cu-lossless=1:aq-mode=1:b-intra=1:constrained-
intra=1:rc-lookahead=72:rc-grain=1:weightb=1:weightp=1:deblock='0:0':sao=1:sao-non-deblock=1:selective-sao=4:subme=7:me=3:rec
t=1:amp=1:rd=4:psy-rd=0.8:psy-rdoq=1.80:rdoq-level=1:signhide=1:temporal-mvp=1:strong-intra-smoothing=1:bframes=8:ref=4:b-ada
pt=2:qcomp=0.7:cbqpoffs=-1:crqpoffs=-1:qpmax=54:qpmin=0:analyze-src-pics=1:no-fast-intra=1:pass=3:stats=1:analysis-reuse-file
=1:multi-pass-opt-analysis=1:multi-pass-opt-distortion=1:opt-qp-pps=1:opt-ref-list-length-pps=1:multi-pass-opt-rps=1:scenecut
-aware-qp=1:scenecut-window=650:fades=1"  output/HDM6.mkv

 

According to the documentation, it should work : https://x265.readthedocs.io/en/master/cli.html

 

Did you know how can i update ffmpeg ?

 

Thank you for your work !

Link to comment
On 12/18/2020 at 10:33 PM, Keichi said:

Hello,

 

I discover your docker ffmpeg, which i am trying to setup.

I don't really understand how the watch folder is working (i drop file in it, but ffmpeg doesn't start encoding) so i tried manually.

 

And it seems that ffmpeg is not up to date :

- ffmpeg version 4.1.6 inside the docker

- ffmpeg version 4.3.1 on my macbook pro

And, some new commands for libx265 are not supported by 4.1.6 as i receive this message :

[libx265 @ 0x562634b31800] Unknown option: selective-sao.
[libx265 @ 0x562634b31800] Unknown option: scenecut-aware-qp.
[libx265 @ 0x562634b31800] Unknown option: scenecut-window.

 

Using :

ffmpeg -i watch/HDM6.mkv -c:v libx265 -c:a copy -preset slow -crf 23 -profile:v main10 -x265-params "allow-non-conformanc
e=1:wpp=1:tu-intra-depth=1:tu-inter-depth=1:cutree=1:early-skip=1:limit-refs=3:cu-lossless=1:aq-mode=1:b-intra=1:constrained-
intra=1:rc-lookahead=72:rc-grain=1:weightb=1:weightp=1:deblock='0:0':sao=1:sao-non-deblock=1:selective-sao=4:subme=7:me=3:rec
t=1:amp=1:rd=4:psy-rd=0.8:psy-rdoq=1.80:rdoq-level=1:signhide=1:temporal-mvp=1:strong-intra-smoothing=1:bframes=8:ref=4:b-ada
pt=2:qcomp=0.7:cbqpoffs=-1:crqpoffs=-1:qpmax=54:qpmin=0:analyze-src-pics=1:no-fast-intra=1:pass=3:stats=1:analysis-reuse-file
=1:multi-pass-opt-analysis=1:multi-pass-opt-distortion=1:opt-qp-pps=1:opt-ref-list-length-pps=1:multi-pass-opt-rps=1:scenecut
-aware-qp=1:scenecut-window=650:fades=1"  output/HDM6.mkv

 

According to the documentation, it should work : https://x265.readthedocs.io/en/master/cli.html

 

Did you know how can i update ffmpeg ?

 

Thank you for your work !

Post a screenshot of your "Parameters for FFmpeg". You will need to have a separator ; between each parameter.

 

Link to comment

Hello snoopy,

 

Thanks for the quick answer !

So, i delete ffmpeg, did a fresh install :

1726746660_Capturedecran2020-12-20a12_42_57.thumb.png.ac513f552261e93e4aded57951596be3.png

(with read/write access to /Handbrake/)

 

Then, i add a file to output/ for testing and try to launch from the console :

484625542_Capturedecran2020-12-20a12_46_07.thumb.png.75a308708eb47f29c47c4640269bfa4e.png

347979001_Capturedecran2020-12-20a12_46_29.thumb.png.8bbcbabdf3a14f71c611377b3ab6372d.png

1255636834_Capturedecran2020-12-20a12_46_36.thumb.png.be48102d36ff36033d1fedb1733d43b7.png

1385064729_Capturedecran2020-12-20a12_56_33.thumb.png.49d7dd44b655a060108ef16bc2a12ffb.png

I think here, the only issue is that libx265 is not up to date, so some parameters are unknown.

 

Then, i edit Parameters :

546236517_Capturedecran2020-12-20a12_52_11.png.af8114bbf0528564f0c72d2c65f6f382.png

 

Full Value line  (same as previously, only with ; intead of space) :

-c:v libx265;-c:a copy;-preset slow;-crf 23;-profile:v main10;-x265-params "allow-non-conformance=1:wpp=1:tu-intra-depth=1:tu-inter-depth=1:cutree=1:early-skip=1:limit-refs=3:cu-lossless=1:aq-mode=1:b-intra=1:constrained-intra=1:rc-lookahead=72:rc-grain=1:weightb=1:weightp=1:deblock=0,0:sao=1:sao-non-deblock=1:selective-sao=4:subme=7:me=3:rect=1:amp=1:rd=4:psy-rd=0.8:psy-rdoq=1.80:rdoq-level=1:signhide=1:temporal-mvp=1:strong-intra-smoothing=1:bframes=8:ref=4:b-adapt=2:qcomp=0.7:cbqpoffs=-1:crqpoffs=-1:qpmax=54:qpmin=0:analyze-src-pics=1:no-fast-intra=1:pass=3:stats=1:analysis-reuse-file=1:multi-pass-opt-analysis=1:multi-pass-opt-distortion=1:opt-qp-pps=1:opt-ref-list-length-pps=1:multi-pass-opt-rps=1:scenecut-aware-qp=1:scenecut-window=650:fades=1"

 

Then ffmpeg restart, but even with a file in /watch, the CPU isn't kick in, so i guess, the encode does not start :

1006105074_Capturedecran2020-12-20a12_53_23.thumb.png.9e8b42d34dcf8b4a2f1af0180995ef09.png

 

Thanks for your help :)

 

K.

Link to comment

For the log, i didn't think about it and it seems to be because the file is know :

  crond: USER root pid 1406 cmd /usr/bin/flock -n /tmp/my.lockfile /bin/bash /ffmpeg-dtsac3/encode.sh -i /watch -o /output -m /copy
  2020-12-20-12:54:00
  Not a file.
  HDM6.mkv
  Allready exists in files.txt

 

After renaming the file, ffmpeg start right now with the encode.

 

BUT

 

Even with ffmpeg v4.3.1, i still have my issue :

Capture d’écran 2020-12-20 à 21.15.19.png785864363_Capturedecran2020-12-20a21_21_44.thumb.png.8fa0624bfa50dc2bfc57cbbb6095cbda.png

I think this is because libx265 is in version 3.1.1+1-04b37fdfd2dc.

The latest is 3.4.

According to the Version History :

- selective-sao was added in 3.2

- scenecut-aware-qp was added in 3.3

- scenecut-window was added in 3.3

 

Thanks !!

 

Edited by Keichi
Adding some informations about libx265
Link to comment

Hello,

 

LMS has been running for years on my Unraid. Suddenly today it is down. Checked on the Unraid console itself, says it is running. Webui is dead. Restart, reboot, didn't help.
I uninstalled the version I had, not this one, the other docker available, deleting all the remainder on my server. Clean slate.
Then I installed this one, the 8.0 version. Same exact problem.
At install I noticed that some stuff failed to install, some conflict at port 5353 !????
Cleaned all and reinstalled, modifying the 5353 port to 5354. This time the install was successful.
But in the end same problem. Console says LMS runs. Webui is dead. LMS is not available at port 9000 as it should be.

What is going on?????

Link to comment
On 12/21/2020 at 6:48 PM, xtrips said:

Hello,

 

LMS has been running for years on my Unraid. Suddenly today it is down. Checked on the Unraid console itself, says it is running. Webui is dead. Restart, reboot, didn't help.
I uninstalled the version I had, not this one, the other docker available, deleting all the remainder on my server. Clean slate.
Then I installed this one, the 8.0 version. Same exact problem.
At install I noticed that some stuff failed to install, some conflict at port 5353 !????
Cleaned all and reinstalled, modifying the 5353 port to 5354. This time the install was successful.
But in the end same problem. Console says LMS runs. Webui is dead. LMS is not available at port 9000 as it should be.

What is going on?????

Attach the log files and the configuration settings of the lms docker so we can check. 

Link to comment
29 minutes ago, snoopy86 said:

Attach the log files and the configuration settings of the lms docker so we can check. 

I've had the same issues on two fresh installs of Unraid 6.90r2 & also running it on a Ubuntu instance.
 

usermod: no changes
2020-12-24 13:13:28,734 CRIT Set uid to user 0
2020-12-24 13:13:28,740 INFO supervisord started with pid 13
2020-12-24 13:13:29,744 INFO spawned: 'dbus' with pid 16
2020-12-24 13:13:29,747 INFO spawned: 'avahi-daemon' with pid 17
2020-12-24 13:13:29,749 INFO spawned: 'squeezeboxserver' with pid 18
2020-12-24 13:13:29,775 INFO exited: avahi-daemon (exit status 255; not expected)
2020-12-24 13:13:30,777 INFO success: dbus entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2020-12-24 13:13:30,778 INFO spawned: 'avahi-daemon' with pid 19
2020-12-24 13:13:30,778 INFO success: squeezeboxserver entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2020-12-24 13:13:31,059 INFO exited: squeezeboxserver (exit status 0; expected)
2020-12-24 13:13:32,061 INFO success: avahi-daemon entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2020-12-24 13:13:32,064 INFO spawned: 'squeezeboxserver' with pid 22
2020-12-24 13:13:32,959 INFO exited: squeezeboxserver (exit status 0; not expected)
2020-12-24 13:13:33,964 INFO spawned: 'squeezeboxserver' with pid 25
2020-12-24 13:13:34,820 INFO exited: squeezeboxserver (exit status 0; not expected)
2020-12-24 13:13:36,827 INFO spawned: 'squeezeboxserver' with pid 28
2020-12-24 13:13:37,701 INFO exited: squeezeboxserver (exit status 0; not expected)
2020-12-24 13:13:40,709 INFO spawned: 'squeezeboxserver' with pid 31
2020-12-24 13:13:41,591 INFO exited: squeezeboxserver (exit status 0; not expected)
2020-12-24 13:13:42,592 INFO gave up: squeezeboxserver entered FATAL state, too many start retries too quickly

 

Link to comment
On 12/24/2020 at 10:18 PM, doxdump said:

I've had the same issues on two fresh installs of Unraid 6.90r2 & also running it on a Ubuntu instance.
 


usermod: no changes
2020-12-24 13:13:28,734 CRIT Set uid to user 0
2020-12-24 13:13:28,740 INFO supervisord started with pid 13
2020-12-24 13:13:29,744 INFO spawned: 'dbus' with pid 16
2020-12-24 13:13:29,747 INFO spawned: 'avahi-daemon' with pid 17
2020-12-24 13:13:29,749 INFO spawned: 'squeezeboxserver' with pid 18
2020-12-24 13:13:29,775 INFO exited: avahi-daemon (exit status 255; not expected)
2020-12-24 13:13:30,777 INFO success: dbus entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2020-12-24 13:13:30,778 INFO spawned: 'avahi-daemon' with pid 19
2020-12-24 13:13:30,778 INFO success: squeezeboxserver entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2020-12-24 13:13:31,059 INFO exited: squeezeboxserver (exit status 0; expected)
2020-12-24 13:13:32,061 INFO success: avahi-daemon entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2020-12-24 13:13:32,064 INFO spawned: 'squeezeboxserver' with pid 22
2020-12-24 13:13:32,959 INFO exited: squeezeboxserver (exit status 0; not expected)
2020-12-24 13:13:33,964 INFO spawned: 'squeezeboxserver' with pid 25
2020-12-24 13:13:34,820 INFO exited: squeezeboxserver (exit status 0; not expected)
2020-12-24 13:13:36,827 INFO spawned: 'squeezeboxserver' with pid 28
2020-12-24 13:13:37,701 INFO exited: squeezeboxserver (exit status 0; not expected)
2020-12-24 13:13:40,709 INFO spawned: 'squeezeboxserver' with pid 31
2020-12-24 13:13:41,591 INFO exited: squeezeboxserver (exit status 0; not expected)
2020-12-24 13:13:42,592 INFO gave up: squeezeboxserver entered FATAL state, too many start retries too quickly

 

What is inside config\logs\server.log? From the top of my head i would say there is some issue with how you configured ports. Maybe something is already running on those ports you have configured for lms. I don't see any issues at my test server.

Link to comment
9 hours ago, snoopy86 said:

What is inside config\logs\server.log? From the top of my head i would say there is some issue with how you configured ports. Maybe something is already running on those ports you have configured for lms. I don't see any issues at my test server.

looks like a new install is not setting the proper permissions:
 

root:root rwxrwxr-x /LogitechMediaServer-8.0/cache
root:root rwxrwxr-x /LogitechMediaServer-8.0/logs
root:root rwxrwxr-x /LogitechMediaServer-8.0/prefs

I have a working LMS on another unRAID. the same directories are set as:

users:nobody rwxr-xr-x /LogitechMediaServer-8.0/cache
users:nobody rwxr-xr-x /LogitechMediaServer-8.0/logs
users:nobody rwxr-xr-x /LogitechMediaServer-8.0/prefs

 

Once I set these on the new install, everything worked!

  • Thanks 1
Link to comment
3 hours ago, doxdump said:

looks like a new install is not setting the proper permissions:
 

root:root rwxrwxr-x /LogitechMediaServer-8.0/cache
root:root rwxrwxr-x /LogitechMediaServer-8.0/logs
root:root rwxrwxr-x /LogitechMediaServer-8.0/prefs

I have a working LMS on another unRAID. the same directories are set as:

users:nobody rwxr-xr-x /LogitechMediaServer-8.0/cache
users:nobody rwxr-xr-x /LogitechMediaServer-8.0/logs
users:nobody rwxr-xr-x /LogitechMediaServer-8.0/prefs

 

Once I set these on the new install, everything worked!

How did you do this? I cant chown in unraid terminal or docker terminal to change root:root to nobody:user. The plugin script for LMS is logging an error when i try to install shairtunes2 or airplaybridge 

 

[20-12-26 21:54:58.5860] Slim::Utils::Misc::msg (1266) Warning: [21:54:58.5859] error: Can't chmod() /config/cache/InstalledPlugins/Plugins/RaopBridge/Async/HTTP.pm: Operation not permitted at /usr/share/perl5/Slim/Utils/PluginManager.pm line 861.

Link to comment
  • 1 month later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.