Home of the Squeezebox™ & Transporter® network music players.
Page 2 of 5 FirstFirst 1234 ... LastLast
Results 11 to 20 of 46
  1. #11
    Senior Member
    Join Date
    Oct 2005
    Location
    Ireland
    Posts
    19,540
    Quote Originally Posted by Hawkeyenl View Post
    Sorry, it seems my initial post came through twice with more information. Does the extended logging I posted provide more detail, or is an attachment with logging still required?

    Apologies for the multiple postings :/
    No I see them now.

    Code:
    20-10-25 17:45:40.7584] Slim::Player::TranscodingHelper::tokenizeConvertCo mmand2 (641) Using command for conversion: "/volume2/@appstore/SqueezeCenter/Bin/sox" -t opus - -t flac -C 0 -
    [20-10-25 17:45:40.7602] Slim::Player::Song:pen (565) Tokenized command: "/volume2/@appstore/SqueezeCenter/Bin/sox" -t opus - -t flac -C 0 -
    This shows that conversion is being done using sox to do opus to Flac.

    It looks like either
    1. sox on your system does not support opus
    2. sox does not run on your system.

    Test and get the version of sox on your system by running it on a command line
    Code:
    /volume2/@appstore/SqueezeCenter/Bin/sox --version
    If version runs then try just sox command and it will display formats supported.
    Code:
    /volume2/@appstore/SqueezeCenter/Bin/sox

  2. #12
    Quote Originally Posted by bpa View Post
    No I see them now.

    Code:
    20-10-25 17:45:40.7584] Slim::Player::TranscodingHelper::tokenizeConvertCo mmand2 (641) Using command for conversion: "/volume2/@appstore/SqueezeCenter/Bin/sox" -t opus - -t flac -C 0 -
    [20-10-25 17:45:40.7602] Slim::Player::Song:pen (565) Tokenized command: "/volume2/@appstore/SqueezeCenter/Bin/sox" -t opus - -t flac -C 0 -
    This shows that conversion is being done using sox to do opus to Flac.

    It looks like either
    1. sox on your system does not support opus
    2. sox does not run on your system.

    Test and get the version of sox on your system by running it on a command line
    Code:
    /volume2/@appstore/SqueezeCenter/Bin/sox --version
    If version runs then try just sox command and it will display formats supported.
    Code:
    /volume2/@appstore/SqueezeCenter/Bin/sox
    If I run it in a terminal, I get a positive response with a version (SoX v14.3.2), and the supported file formats (and a whole list of command arguments). Anything particular you need in this, or any specific command I should try? I agree with in that I think it must be something to do with this, although I don't understand why it does work on my google nest mini; does that issue a different argument to the sox-command or something?
    Last edited by Hawkeyenl; 2020-10-25 at 12:23.

  3. #13
    Senior Member
    Join Date
    Oct 2005
    Location
    Ireland
    Posts
    19,540
    Quote Originally Posted by Hawkeyenl View Post
    If I run it in a terminal, I get a positive response with a version (SoX v14.3.2), and the supported file formats (and a whole list of command arguments). Anything particular you need in this, or any specific command I should try? I agree with in that I think it must be something to do with this, although I don't understand why it does work on my google nest mini; does that issue a different argument to the sox-command or something?
    To see what happens - run the same log with a nest mini. I suspect no transcoding or a different command will be used.

    If it is the same command then it means something odd about the Pi player. What version of squeezelite is being used ?

    Otherwise, at a guess your build of sox does not have support for opus filetype as it is a build option. I don't know offhand a test to confirm this.

  4. #14
    Quote Originally Posted by bpa View Post
    To see what happens - run the same log with a nest mini. I suspect no transcoding or a different command will be used.

    If it is the same command then it means something odd about the Pi player. What version of squeezelite is being used ?

    Otherwise, at a guess your build of sox does not have support for opus filetype as it is a build option. I don't know offhand a test to confirm this.

    Hmm interesting, if I run a YouTube song on my google mini nest, judging by the logs, it doesn't seem to do transcoding at all (see below for the relevant log part, which is from the moment I click 'play' on the song, up to the point where it is playing). The version of squeezelite I'm running is v1.8; it's running on a clean raspbian installation, and installed using apt-get. I'm not sure if it's the latest version available?

    Code:
    [20-10-25 21:06:51.7398] Slim::Player::StreamingController::play (2120) cc:cc:90:32:57:6b
    [20-10-25 21:06:51.7548] Slim::Player::StreamingController::_Stop (610) Song queue is now 4
    [20-10-25 21:06:51.7565] Slim::Player::StreamingController::_setPlayingState (2377) new playing state STOPPED
    [20-10-25 21:06:51.7580] Slim::Player::StreamingController::_setStreamingState (2386) new streaming state IDLE
    [20-10-25 21:06:51.7633] Slim::Player::Song::new (108) index 5 -> youtube://www.youtube.com/v/MSgnf-tBN9s
    [20-10-25 21:06:51.7668] Slim::Player::StreamingController::_setStreamingState (2386) new streaming state TRACKWAIT
    [20-10-25 21:06:51.7720] Slim::Player::StreamingController::_playersMessage (796) Getting stream info...: youtube://www.youtube.com/v/MSgnf-tBN9s
    [20-10-25 21:06:51.7750] Slim::Player::Song::getNextSong (230) youtube://www.youtube.com/v/MSgnf-tBN9s
    [20-10-25 21:06:53.2395] Slim::Player::StreamingController::_nextTrackReady (744) cc:cc:90:32:57:6b: nextTrack will be index 5
    [20-10-25 21:06:53.2417] Slim::Player::StreamingController::_Stream (1210) Song queue is now 5
    [20-10-25 21:06:53.2434] Slim::Player::StreamingController::_Stream (1213) cc:cc:90:32:57:6b: preparing to stream song index 5
    [20-10-25 21:06:53.2453] Slim::Player::Song::open (367) youtube://www.youtube.com/v/MSgnf-tBN9s
    [20-10-25 21:06:53.2484] Slim::Player::Song::open (391) seek=false time=0 canSeek=1
    [20-10-25 21:06:53.2523] Slim::Player::TranscodingHelper::getConvertCommand2 (470) Matched: ops->ops via: -
    [20-10-25 21:06:53.2541] Slim::Player::Song::open (412) Transcoder: streamMode=I, streamformat=ops
    [20-10-25 21:06:53.2563] Slim::Player::Song::open (468) Opening stream (no direct streaming) using Plugins::YouTube::ProtocolHandler [youtube://www.youtube.com/v/MSgnf-tBN9s]
    [20-10-25 21:06:53.2587] Slim::Player::Song::open (489) URL is a song (audio): youtube://www.youtube.com/v/MSgnf-tBN9s, type=ops
    [20-10-25 21:06:53.2635] Slim::Player::StreamingController::_Stream (1282) cc:cc:90:32:57:6b: stream
    [20-10-25 21:06:53.2784] Slim::Player::StreamingController::_Stream (1319) Song queue is now 5
    [20-10-25 21:06:53.2805] Slim::Player::StreamingController::_setPlayingState (2377) new playing state BUFFERING
    [20-10-25 21:06:53.2822] Slim::Player::StreamingController::_setStreamingState (2386) new streaming state STREAMING
    [20-10-25 21:06:53.4020] Slim::Player::Player::_buffering (1144) Buffering... 0 / 61440
    [20-10-25 21:06:53.4037] Slim::Player::Player::_buffering (1145)   +output... 131072 / 1058400
    [20-10-25 21:06:53.7119] Slim::Player::Player::_buffering (1144) Buffering... 0 / 61440
    [20-10-25 21:06:53.7136] Slim::Player::Player::_buffering (1145)   +output... 2097152 / 1058400
    [20-10-25 21:06:57.7636] Slim::Player::StreamingController::playerTrackStarted (2200) cc:cc:90:32:57:6b
    [20-10-25 21:06:57.7654] Slim::Player::StreamingController::_setPlayingState (2377) new playing state PLAYING
    [20-10-25 21:06:57.7670] Slim::Player::StreamingController::_Playing (368) Song 5 has now started playing
    [20-10-25 21:06:57.7714] Slim::Player::StreamingController::_Playing (397) Song queue is now 5
    Small addition, I just noticed that the output of the sox command on my synology does not include opus as audio format, could this be the issue? And if so, what can I do about it? Below is the relevant snippet of running the sox-command on the synology.

    Code:
    AUDIO FILE FORMATS: 8svx aif aifc aiff aiffc al amb amr-nb amr-wb anb au avr awb cdda cdr cvs cvsd cvu dat dvms f32 f4 f64 f8 flac fssd gsm gsrt hcom htk ima ircam la lpc lpc10 lu maud nist prc raw s1 s16 s2 s24 s3 s32 s4 s8 sb sf sl smp snd sndr sndt sou sox sph sw txw u1 u16 u2 u24 u3 u32 u4 u8 ub ul uw vms voc vox wav wavpcm wve xa
    PLAYLIST FORMATS: m3u pls
    AUDIO DEVICE DRIVERS: oss ossdsp
    Last edited by Hawkeyenl; 2020-10-25 at 14:11.

  5. #15
    Did a bit more digging, and I found that there is a more recent squeezelite version (developed by Ralph, v1.9.7) which has built-in opus support. Native support for opus on squeezelite should remove the need for transcoding from Flac to opus, bypassing the issue that SOX doesn't support opus on the synology right? Would still be good to get opus support on sox on the synology I guess, in case a player is ever added that doesn't support opus

  6. #16
    Senior Member
    Join Date
    Oct 2005
    Location
    Ireland
    Posts
    19,540
    Quote Originally Posted by Hawkeyenl View Post
    Hmm interesting, if I run a YouTube song on my google mini nest, judging by the logs, it doesn't seem to do transcoding at all (see below for the relevant log part, which is from the moment I click 'play' on the song, up to the point where it is playing). The version of squeezelite I'm running is v1.8; it's running on a clean raspbian installation, and installed using apt-get. I'm not sure if it's the latest version available?
    Phillipe's bridge plugins are based on squeezelite with a lot of inbuilt decoers. Looks like it has native opus and so no opus decoding.


    Small addition, I just noticed that the output of the sox command on my synology does not include opus as audio format, could this be the issue? And if so, what can I do about it? Below is the relevant snippet of running the sox-command on the synology.
    I don;t know opus stuff but in generic sox 14.4.2 on my system look the same
    Code:
    8svx aif aifc aiff aiffc al amb amr-nb amr-wb anb au avr awb caf cdda cdr cvs cvsd cvu dat dvms f32 f4 f64 f8 fap flac fssd gsm gsrt hcom htk ima ircam la lpc lpc10 lu mat mat4 mat5 maud nist ogg paf prc pvf raw s1 s16 s2 s24 s3 s32 s4 s8 sb sd2 sds sf sl sln smp snd sndfile sndr sndt sou sox sph sw txw u1 u16 u2 u24 u3 u32 u4 u8 ub ul uw vms voc vorbis vox w64 wav wavpcm wv wve xa xi
    However LMS supplied sox 14.4.3 has opus
    Code:
    AUDIO FILE FORMATS: 8svx aif aifc aiff aiffc al amb au avr cdda cdr cvs cvsd cvu dat dff dsf dvms f32 f4 f64 f8 flac fssd gsm gsrt hcom htk ima ircam la lpc lpc10 lu maud mp2 mp3 nist ogg opus prc raw s1 s16 s2 s24 s3 s32 s4 s8 sb sf sl sln smp snd sndr sndt sou sox sph sw txw u1 u16 u2 u24 u3 u32 u4 u8 ub ul uw vms voc vorbis vox wav wavpcm wsd wv wve xa
    Check if there is a synology build of sox for LMS somewhere.

  7. #17
    Senior Member
    Join Date
    Oct 2005
    Location
    Ireland
    Posts
    19,540
    Quote Originally Posted by Hawkeyenl View Post
    Did a bit more digging, and I found that there is a more recent squeezelite version (developed by Ralph, v1.9.7) which has built-in opus support. Native support for opus on squeezelite should remove the need for transcoding from Flac to opus, bypassing the issue that SOX doesn't support opus on the synology right? Would still be good to get opus support on sox on the synology I guess, in case a player is ever added that doesn't support opus
    Better to get latest squeezelite - it also has bug fixes.

    There can be difficulty building programs like sox for NAS systems as they needs libraries of specific version etc. I think check out posts by pinkdot as I think they have up to date knowledge of synology and LMS.

    Try a post on https://forums.slimdevices.com/showt...8-0-*-packages

  8. #18
    I posted a reply there seeing if I can get somebody to help me with building sox with opus support on my synology, if that works we can git it working for other people in the future as well.

    I'll update my squeezelite installation for sure anyway, I have the same issue when playing back over ipeng on my iPhone, so I can still reproduce the issue after I update my squeezelite installation.

  9. #19
    Senior Member ralphy's Avatar
    Join Date
    Jan 2006
    Location
    Canada
    Posts
    2,638
    I think the DS212+ uses an arm cpu.

    You could try downloading the lms arm sox binary which has opus support and try running it on the NAS.

    If it works, you should be able to replace /volume2/@appstore/SqueezeCenter/Bin/sox with the updated one, keeping a copy of the original file first.

    You may also need to change the permissions to match that of the current sox program. Quite often the execute permissions are dropped from downloaded files.

    The source code and build script for the lms sox binary can be found here.
    Last edited by ralphy; 2020-10-26 at 05:33.
    Ralphy

    1-Touch, 5-Classics, 3-Booms, 1-UE Radio
    Squeezebox client builds donations always appreciated.

  10. #20
    Quote Originally Posted by ralphy View Post
    I think the DS212+ uses an arm cpu.

    You could try downloading the lms arm sox binary which has opus support and try running it on the NAS.

    If it works, you should be able to replace /volume2/@appstore/SqueezeCenter/Bin/sox with the updated one, keeping a copy of the original file first.

    You may also need to change the permissions to match that of the current sox program. Quite often the execute permissions are dropped from downloaded files.

    The source code and build script for the lms sox binary can be found here.
    You're the best, worked right away, didn't even need to restart LMS

    I'm still gonna update the Squeezelite-installation though

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •