ezstream encoding error "Unterminated quoted string"

Asked by Freek Boersma

When using ezstream 1.0.1 (1.0.2-1 has libshout bug) I encountered errors when encoding with lame.
I want to re-encode by decoding with madplay and encoding with lame. In the 0.5.6 version this worked well.
Using the new xml syntax the program returns for (I guess every file from the playlist)
"sh: 1: Syntax error: Unterminated quoted string
ezstream[2102]: shout_set_metadata: No error"

When documenting the encoder out of the <streams> section the madplay decoder works fine.
It turns out that in case of an mp3 source I actually do not need lame to re-encode. Madplay apparently streams to the icecast server in 128kbit and thus downsizing the high input bitrate. Which is the purpose of this re-encoding.

The related xml sections read:

   <stream>
..
       <mountpoint>/mymountpoint</mountpoint>
       <format>MP3</format>
        <stream_bitrate>128</stream_bitrate>
        <stream_samplerate>44100</stream_samplerate>
        <stream_channels>1</stream_channels>
..etcetera
and:
         <encoder>Lame</encoder>

the Intake is a playlist with mp3's.

  <decoder>
      <!-- Decoder name -->
      <name>Madplay</name>
      <!-- Program and options -->
      <program>madplay -b 16 -R 44100 -S -o raw:- "@T@</program>
      <!-- File extensions to use this decoder for -->
      <file_ext>.mp3</file_ext>
  </decoder>

  <encoder>
      <!-- Encoder name -->
      <name>Lame</name>
      <!-- Output stream format -->
      <format>MP3</format>
      <!-- Program and options -->
      <program>lame --preset cbr 128 -r -s 44.1 --bitwidth 16 - -</program>

The program options are those of the provided sample 'full' xml file and afaik the same as for the 0.5.6 version.
I am not stuck but this isnt very elegant.

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Manfred Hampl (m-hampl) said :
#1

I never used ezstream or lame, so please excuse if my answer is wrong.

Based on the error message: "Unterminated quoted string" I just look for unpaired quotes in your information and that is what I see:

      <program>madplay -b 16 -R 44100 -S -o raw:- "@T@</program>

I assume that this line needs an even number of quotes, either "@T@" (two) or @T@ (none).

Can you help with this problem?

Provide an answer of your own, or ask Freek Boersma for more information if necessary.

To post a message you must log in.