Home of the Squeezebox™ & Transporter® network music players.
Page 2 of 2 FirstFirst 12
Results 11 to 18 of 18
  1. #11
    Junior Member
    Join Date
    Mar 2019
    Posts
    19
    Quote Originally Posted by bpa View Post
    The "wma mp3" line inthe custom-convert.conf file in PlayWMA should be - the error is an extra "$PATH"
    Code:
    wma mp3 * *
    	# F:{PATH=%f}R:{PATH=%F}T:{START=-ss %s}B:{BITRATE=--abr %B}
    	[ffmpeg] -loglevel quiet -i $PATH$ -f wav - | [lame] --silent -q $QUALITY$ $BITRATE$ - -

    After you did
    Code:
     ffmpeg -i  Sorhin\ -\ I\ Det\ Glimrande\ Morkrets\ Djup\ -\ 01\ -\ Godhetens\ Fall.wma  123.mp3
    Was the 123.mp3 playable and a good conversion of the original ? if so then messages are only warnings and can be ignored.
    Yes, the above line is different from original WMA MP3 line in custom-convert.conf file. But correction does not work for me Still no sound. Player just skipping tracks loaded in playlist.

    Here is current custom-convert.conf

    Code:
    root@debian-LMS:/var/lib/squeezeboxserver/cache/InstalledPlugins/Plugins/PlayWMA# cat custom-convert.conf
    #
    # wma transcode using ffmpeg instead of wmadec
    #
    wma mp3 * *
            # F:{PATH=%f}R:{PATH=%F}T:{START=-ss %s}B:{BITRATE=--abr %B}
            [ffmpeg] -loglevel quiet -i $PATH$ -f wav - | [lame] --silent -q $QUALITY$ $BITRATE$ - -
    
    wma flc * *
            # F:{PATH=%f}R:{PATH=%F}T:{START=-ss %s}
            [ffmpeg] -v 0 $START$ -i $PATH$ -f flac -
    
    wma wav * *
            # F:{PATH=%f}R:{PATH=%F}T:{START=-ss %s}
            [ffmpeg] -v 0 $START$ -i $PATH$ -f wav -
    
    wma pcm * *
            # F:{PATH=%f}R:{PATH=%F}T:{START=-ss %s}
            [ffmpeg] -v 0 -i $FILE$ -f s16le -
    
    
    # wma lossless
    wmal mp3 * *
            # F:{PATH=%f}R:{PATH=%F}T:{START=-ss %s}B:{BITRATE=--abr %B}
            [ffmpeg] -loglevel quiet $PATH$  -i $FILE$ -f wav - | [lame] --silent -q $QUALITY$ $BITRATE$ - -
    
    wmal flc * *
            # F:{PATH=%f}R:{PATH=%F}T:{START=-ss %s}
            [ffmpeg] -v 0 $START$ -i $PATH$ -f flac -
    
    wmal wav * *
            # F:{PATH=%f}R:{PATH=%F}T:{START=-ss %s}
            [ffmpeg] -v 0 $START$ -i $PATH$ -f wav -
    
    wmal pcm * *
            # F:{PATH=%f}T:{START=-ss %s}
            [ffmpeg] -v 0 -i $FILE$ -f s16le -
    
    
    # wma pro
    wmap mp3 * *
            # F:{PATH=%f}T:{START=-ss %s}B:{BITRATE=--abr %B}
            [ffmpeg] -loglevel quiet $PATH$  -i $FILE$ -f wav - | [lame] --silent -q $QUALITY$ $BITRATE$ - -
    
    wmap flc * *
            # F:{PATH=%f}R:{PATH=%F}T:{START=-ss %s}
            [ffmpeg] -v 0 $START$ -i $PATH$ -f flac -
    
    wmap wav * *
            # F:{PATH=%f}R:{PATH=%F}T:{START=-ss %s}
            [ffmpeg] -v 0 $START$ -i $PATH$ -f wav -
    
    wmap pcm * *
            # F:{PATH=%f}R:{PATH=%F}T:{START=-ss %s}
            [ffmpeg] -v 0 -i $FILE$ -f s16le -
    root@debian-LMS:/var/lib/squeezeboxserver/cache/InstalledPlugins/Plugins/PlayWMA#
    As far your second question:

    yes, ffmpeg conversion from wma to mp3 produced playable file. No glitches or whatsoever.

  2. #12
    Junior Member
    Join Date
    Mar 2019
    Posts
    19
    Sadly, but same situation is with *mpc files ( MusePack encoded )

    There are musepack tools package for debian and I have installed it.
    Now Advanced tab ---> File extension have the fields not gray out but also nothing played

    Name:  musepack.PNG
Views: 71
Size:  6.2 KB

    As per output of mpcdec binary file can work from/to standart IN and OUT:

    Code:
    root@debian-LMS:~# mpcdec -h
    mpcdec - Musepack (MPC) decoder v1.0.0 (C) 2006-2009 MDT
    Built May 14 2018 07:06:01
    Usage: mpcdec [-i] [-h] <infile.mpc> [<outfile.wav>]
    -i : print file information on stdout
    -c : check the file for stream errors
         (doesn't fully decode, outfile will be ignored)
    -r : output raw data (left/right) in machine native endian
    -e : reverse raw data endianness
    -h : print this help
    you can use stdin and stdout as resp. <infile.mpc> and
    <outfile.wav> replacing the file name by "-"
    
    
    root@debian-LMS:~# mpcdec -i somempcfile.mpc
    mpcdec - Musepack (MPC) decoder v1.0.0 (C) 2006-2009 MDT
    Built May 14 2018 07:06:01
    file: somempcfile.mpc
    stream version 7
    encoder: Beta 1.14
    profile: 'Insane' (q=7.00)
    PNS: off
    mid/side stereo: on
    gapless: on
    average bitrate:  227.4 kbps
    samplerate: 44100 Hz
    channels: 2
    length: 2:49 (7485240 samples)
    file size: 4824644 Bytes
    track peak: 0.00 dB
    track gain: 0.00 dB / 0.00 dB
    album peak: 0.00 dB
    album gain: 0.00 dB / 0.00 dB
    
    root@debian-LMS:~#
    Excerpt from convert.conf file:

    Code:
    mpc mp3 * *
       # IRB:{BITRATE=--abr %B}D:{RESAMPLE=--resample %D}
       [mpcdec] --silent --prev --gain 3 - - | [lame] --silent -q $QUALITY$ $RESAMPLE$ $BITRATE$ - -
    Last edited by caball; 2021-01-29 at 02:48.

  3. #13
    Senior Member
    Join Date
    Oct 2005
    Location
    Ireland
    Posts
    20,405
    Quote Originally Posted by caball View Post
    Sadly, but same situation is with *mpc files ( MusePack encoded )

    There are musepack tools package for debian and I have installed it.
    Now Advanced tab ---> File extension have the fields not gray out but also nothing played
    I'm not goinf to go near musepac until WMA is sorted. One problem at a time.

    If the issue is also with playing on stream.mp3 - then it may be your use of stream.mp3.

  4. #14
    Senior Member
    Join Date
    Oct 2005
    Location
    Ireland
    Posts
    20,405
    Quote Originally Posted by caball View Post
    Yes, the above line is different from original WMA MP3 line in custom-convert.conf file. But correction does not work for me Still no sound. Player just skipping tracks loaded in playlist.
    1. Did you restart LMS after making the change ?
    2. On WebUI - what does the track playing progress bar show when playing your WMA track ? A clock stuck at low values ? a clock a mid value but cycling ? a clock at mid values and progressing ? something else ?
    3. Please be explicit on which player you are testing. If you are testing on stream.mp3 you need to be careful of buffering - can be 2-3 minutes on a browser. LMS sends silence when no track is playing so minutes of silence may be in buffer also. After starting to play a stream - refresh the browser window with stream.mp3 to clear buffer.

  5. #15
    Junior Member
    Join Date
    Mar 2019
    Posts
    19
    Quote Originally Posted by bpa View Post
    1. Did you restart LMS after making the change ?
    2. On WebUI - what does the track playing progress bar show when playing your WMA track ? A clock stuck at low values ? a clock a mid value but cycling ? a clock at mid values and progressing ? something else ?
    3. Please be explicit on which player you are testing. If you are testing on stream.mp3 you need to be careful of buffering - can be 2-3 minutes on a browser. LMS sends silence when no track is playing so minutes of silence may be in buffer also. After starting to play a stream - refresh the browser window with stream.mp3 to clear buffer.
    Yes, the restart fix it and now it works. I thought that configuration file is dynamically read by transcoder. Now listening to WMA files is working fine.

    Thank you very much

    I'm testing on foobar2000 which takes streams from my Debian LMS server - http://mydebianserverIP:9000/stream.mp3
    Could you please look at MPC section for any errors also?

    Thank you very much.

  6. #16
    Junior Member
    Join Date
    Mar 2019
    Posts
    19
    Hello bpa,

    I have managed to fix MPC playing by modifying custom-convert.conf like this:

    Code:
    mpc mp3 * *
            # FB:{BITRATE=-B %B}T:{START=-ss %s}
            [ffmpeg] -loglevel quiet  -i $FILE$ -f wav - | [lame] --silent -q $QUALITY$ $BITRATE$ - -
    Now is playing normally Problems are fixed now for me

    Many Many thanks for your support and collaboration.

  7. #17
    Senior Member
    Join Date
    Oct 2005
    Location
    Ireland
    Posts
    20,405
    Quote Originally Posted by caball View Post
    Could you please look at MPC section for any errors also?
    I don't use Musepack so this is a paper exercise.

    Standard LMS convert.conf has "[mppdec]" yet you have "[mpcdec]" in your convert.conf file

    Did you edit the conf file ? if so you should be using a custom-convert.conf ?

    mpcdec is from V8 tools pack whereas mppdec is from V7.

    edit:

    Checking old posts and it seems we've been here before
    https://forums.slimdevices.com/showt...berry-Pi/page2

  8. #18
    Senior Member
    Join Date
    Oct 2005
    Location
    Ireland
    Posts
    20,405
    Lookign at old thread.

    mpcdec is not a straight swap for mppdec. The command line options are totally different. Furthermore , although mpcdec is supposed to support stdin and stdout - it doesn't seem to work.

    Summary:
    If you musepack7 only files then LMS provided mppdec will work fine.
    If you musepack8 files then you need a musepack8 decoder. mpcdec will not work within LMS context so need to use ffmpeg with a custom-convert.conf

    A custom-convert.conf for MPC - the PCM and AIFF support is not correct - homework. Also this will not work unless files have "mpc" extension - this is a ffmpeg requirement.

    Code:
    mpc mp3 * *
    	# F:{PATH=%f}R:{PATH=%F}B:{BITRATE=--abr %B}T:{START=-ss %s}
    	[ffmpeg] -loglevel quiet $START$ -i $PATH$ -f wav - | [lame] --silent -q $QUALITY$ $BITRATE$ - -
    
    mpc flc * *
    	# F:{PATH=%f}R:{PATH=%F}T:{START=-ss %s}
    	[ffmpeg] -loglevel quiet $START$ -i $PATH$ -f flac - 
    
    mpc pcm * *
    	# F:{PATH=%f}R:{PATH=%F}T:{START=-ss %s}
    	[ffmpeg] -loglevel quiet $START$ -i $PATH$ -f s16le -

Tags for this Thread

Posting Permissions

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