title
Products            Buy            Support Forum            Professional            About            Codec Central
 

"Error writing audio data to StfIn pipe (dEncoder::EncoderBlock)"

Collapse
X
Collapse
Posts
 
  • Time
  • Show
Clear All
new posts
  • jacobacci

    • Dec 2014
    • 43

    "Error writing audio data to StfIn pipe (dEncoder::EncoderBlock)"

    After getting fhgaacenc to work, I am converting my library to lossy m4a. Some of the files do not convert correctly, giving "Error writing audio data to StdIn pipe (dEncoder::EncoderBlock)" error.

    I have attached one of the wav files in question.

    This is the debug.log:
    Code:
    Splitting Command Line:Done
    ->->  [dBCoreConverter::ReaddBCommandFile]
    <-<-  [dBCoreConverter::ReaddBCommandFile]
    Decodes  [clDecoder::Get]
    BatchID  [clDecoder::Set]
    ->->  [cldBCodecHandler::LoadEncoder]
      Loading Encoder 'C:\Program Files\dBpoweramp\encoder\fhgaacenc (Winamp).DLL'
    <-<-  [cldBCodecHandler::LoadEncoder]
    BatchID  [clEncoder::Set]
    ->->  [dBCoreConverter::StripCoreConverterCmds]
    <-<-  [dBCoreConverter::StripCoreConverterCmds]
    SendRawUnCompressed  [clEncoder::Get]
    Communicate  [clDecoder::Get]
    Communicate  [clEncoder::Get]
    NeedHQAudio  [clEncoder::Get]
    Decode As  [clDecoder::Set]
    ->->  [clDecoder::Open]
      Opening file 'D:\RF My Music\My Music Archive\2a CD 44.1\Chopin, Frédéric\Jonas, Maryla\18-Mazurka No 9.wav' for read access: Opened
      Reading Audio Information
      ->->  [clWaveDecoder::Initialize]
      <-<-  [clWaveDecoder::Initialize]
      ->->  [clRIFFHandler::Initialize]
        clRIFFHandler::CalcAllChunks: Ok
      <-<-  [clRIFFHandler::Initialize]
      ->->  [clRIFFHandler::ScanFile]
        clRIFFHandler::CalcAllChunks: Ok
          RIFF Header 'RIFF'  Length: 3029268  FormType 'WAVE'
          Got Chunk 'fmt '  Length: 16  RiffSizeLeft: 3029256  ChunkPosition: 12
          Got Chunk 'data'  Length: 2974946  RiffSizeLeft: 3029232  ChunkPosition: 36
          Got Chunk 'LIST'  Length: 118  RiffSizeLeft: 54278  ChunkPosition: 2974990
          Got Chunk 'id3 '  Length: 54152  RiffSizeLeft: 54152  ChunkPosition: 2975116
        clRIFFHandler::CalcAllChunks: Ok
      <-<-  [clRIFFHandler::ScanFile]
      Read Audio Information
      ->->  [clWaveDecoder::ReadIDTags]
        ->->  [clWaveDecoder::PullOutFMTnDATA]
          Finding 'fmt ' chunk.
          Finding 'data' chunk.
          Assigning 'fmt ' chunk to WFX
        <-<-  [clWaveDecoder::PullOutFMTnDATA]
        ->->  [clRIFFLISTChunk::InitFrom]
          Found Correct INFO ID, decoding LIST chunk:
        <-<-  [clRIFFLISTChunk::InitFrom]
        10 ID Tags:
    			Album: Jonas, Maryla
    			Album Artist: Chopin, Frédéric
    			Artist: Chopin, Frédéric
    			Genre: Classical
    			Title: Mazurka No 9
    			Track: 18
    			Year: 1946
    			_albumart_1_Front Album Cover: DATA Length: 53962   ......JFIF.....`.`..
    			_riff_1: DATA Length: 4   fmt 
    			_riff_2: DATA Length: 4   data
      <-<-  [clWaveDecoder::ReadIDTags]
      ->->  [clWaveDecoder::FillAudioProps]
    	Audio Quality: CD  (Lossless)
    	Encoder Settings: PCM
    	Wave Header: Wave Format PCM
    	Channel Mapping: Center
    	Sample Count: 1,487,473
    	Riff Chunks: 'fmt ' 16 bytes,  'data' 2.84 MB,  'LIST' 118 bytes,  'id3 ' 53 KB
    	ID Tag: LIST & ID3
    	Contains: Album Art, ID Tag[LIST & ID3]
    	Gapless: Yes
      <-<-  [clWaveDecoder::FillAudioProps]
      Writing Audio Information
      ->->  [clWaveDecoder::FillAudioInfo]
        Audio Length: 33729 mili-seconds  2974946 bytes  705 kbps
      <-<-  [clWaveDecoder::FillAudioInfo]
      Written Audio Information
      Preparing to Decode
      ->->  [clWaveDecoder::PrepareToDecodeAudio]
        Calling ACMDecoder.CreateNewConverter
        Compressed WFX (on file): Format Tag: 1  Channels: 1  Bits per Sample: 16  Samples Per Second: 44100  Bytes Per Second: 88200  Block Align: 2  CB Size: 0
        Uncompressed WFX (sent to db): Format Tag: 1  Channels: 1  Bits per Sample: 16  Samples Per Second: 44100  Bytes Per Second: 88200  Block Align: 2  CB Size: 0
        Setting Position in File
      <-<-  [clWaveDecoder::PrepareToDecodeAudio]
      Prepared Decoding
    <-<-  [clDecoder::Open]
    SendOverReplayGainTags  [clEncoder::Get]
    ->->  [clEncoder::BeginConversion]
      Converting to 'D:\RF My Music\My Music Archive\2a CD 44.1\Chopin, Frédéric\Jonas, Maryla\18-Mazurka No 9.m4a.tmp.m4a' encoder settings ' -cli_encoder="C:\Program Files\dBpoweramp\encoder\fhgaacenc (Winamp)\fhgaacenc.exe" -cli_cmd="--cbr 128 --profile he - {qt}[outfile]{qt}" -selection="1,9,2,0"'
      Using Encoder 'C:\Program Files\dBpoweramp\encoder\fhgaacenc (Winamp)\fhgaacenc.exe'
      Command Line '--cbr 128 --profile he - "D:\RF My Music\My Music Archive\2a CD 44.1\Chopin, Frédéric\Jonas, Maryla\18-Mazurka No 9.m4a.tmp.m4a"'
      Input Wave Format:Format Tag: 1  Channels: 1  Bits per Sample: 16  Samples Per Second: 44100  Bytes Per Second: 88200  Block Align: 2  CB Size: 0
      Output Wave Format:Format Tag: 1  Channels: 1  Bits per Sample: 16  Samples Per Second: 44100  Bytes Per Second: 88200  Block Align: 2  CB Size: 0
      Passing Wave Header: Yes
      Using StdInput Pipe: Yes
      dBpoweramp Writing Tags: Yes
    <-<-  [clEncoder::BeginConversion]
    Communicate  [clDecoder::Get]
    Communicate  [clEncoder::Get]
    Encoding To: fhgaacenc (Winamp)
    Encoder Cmd Line:  -cli_encoder="C:\Program Files\dBpoweramp\encoder\fhgaacenc (Winamp)\fhgaacenc.exe" -cli_cmd="--cbr 128 --profile he - {qt}[outfile]{qt}" -selection="1,9,2,0"
    ============= CONVERSION BEGIN =============
    *** Error: Error writing audio data to StdIn Pipe  [clEncoder::EncodeBlock]
    ============= CONVERSION END =============
    Communicate  [clDecoder::Get]
    Communicate  [clEncoder::Get]
    ->->  [dBCoreConverter::CloseDecoder]
    ->->  [clDecoder::Close]
      ->->  [clWaveDecoder::Close]
      <-<-  [clWaveDecoder::Close]
    <-<-  [clDecoder::Close]
    ->->  [clEncoder::EndConversion]
    <-<-  [clEncoder::EndConversion]
      File Size Check (before overwrite final): 0 bytes   Filename: D:\RF My Music\My Music Archive\2a CD 44.1\Chopin, Frédéric\Jonas, Maryla\18-Mazurka No 9.m4a.tmp.m4a
    Communicate  [clDecoder::Get]
    Communicate  [clEncoder::Get]
      Conversion completed in 15 mili-seconds x2248 realtime encoding
      File Size Check (core converter exit): 231056 bytes   Filename: D:\RF My Music\My Music Archive\2a CD 44.1\Chopin, Frédéric\Jonas, Maryla\18-Mazurka No 9.m4a
    The file converts without problems using fhgaacenc directly from the command line.
    What could be the problem with this file (except that it is mono).
    Last edited by jacobacci; April 22, 2015, 07:49 AM.
  • Spoon
    Administrator
    • Apr 2002
    • 44579

    #2
    Re: &quot;Error writing audio data to StdIn pipe (dEncoder::EncoderBlock)&quot;

    D:\RF My Music\My Music Archive\2a CD 44.1\Chopin, Frédéric\Jonas, Maryla\18-Mazurka No 9.m4a.tmp.m4a

    There are accents in the name, try instead of [inputfile] use the short input file option.
    Spoon
    www.dbpoweramp.com

    Comment

    • jacobacci

      • Dec 2014
      • 43

      #3
      Re: &quot;Error writing audio data to StdIn pipe (dEncoder::EncoderBlock)&quot;

      I removed the accents and the error still happens
      Interestingly, all the files in other directories under "Chopin, Frédéric" convert fine, even with the accents there.
      Here's the latest debug log, with the accents removed.

      Code:
      Splitting Command Line:Done
      ->->  [dBCoreConverter::ReaddBCommandFile]
      <-<-  [dBCoreConverter::ReaddBCommandFile]
      Decodes  [clDecoder::Get]
      BatchID  [clDecoder::Set]
      ->->  [cldBCodecHandler::LoadEncoder]
        Loading Encoder 'C:\Program Files\dBpoweramp\encoder\fhgaacenc (Winamp).DLL'
      <-<-  [cldBCodecHandler::LoadEncoder]
      BatchID  [clEncoder::Set]
      ->->  [dBCoreConverter::StripCoreConverterCmds]
      <-<-  [dBCoreConverter::StripCoreConverterCmds]
      SendRawUnCompressed  [clEncoder::Get]
      Communicate  [clDecoder::Get]
      Communicate  [clEncoder::Get]
      NeedHQAudio  [clEncoder::Get]
      Decode As  [clDecoder::Set]
      ->->  [clDecoder::Open]
        Opening file 'D:\RF My Music\My Music Archive\2a CD 44.1\Chopin, Frederic\Jonas, Maryla\18-Mazurka No 9.wav' for read access: Opened
        Reading Audio Information
        ->->  [clWaveDecoder::Initialize]
        <-<-  [clWaveDecoder::Initialize]
        ->->  [clRIFFHandler::Initialize]
          clRIFFHandler::CalcAllChunks: Ok
        <-<-  [clRIFFHandler::Initialize]
        ->->  [clRIFFHandler::ScanFile]
          clRIFFHandler::CalcAllChunks: Ok
            RIFF Header 'RIFF'  Length: 3029268  FormType 'WAVE'
            Got Chunk 'fmt '  Length: 16  RiffSizeLeft: 3029256  ChunkPosition: 12
            Got Chunk 'data'  Length: 2974946  RiffSizeLeft: 3029232  ChunkPosition: 36
            Got Chunk 'LIST'  Length: 118  RiffSizeLeft: 54278  ChunkPosition: 2974990
            Got Chunk 'id3 '  Length: 54152  RiffSizeLeft: 54152  ChunkPosition: 2975116
          clRIFFHandler::CalcAllChunks: Ok
        <-<-  [clRIFFHandler::ScanFile]
        Read Audio Information
        ->->  [clWaveDecoder::ReadIDTags]
          ->->  [clWaveDecoder::PullOutFMTnDATA]
            Finding 'fmt ' chunk.
            Finding 'data' chunk.
            Assigning 'fmt ' chunk to WFX
          <-<-  [clWaveDecoder::PullOutFMTnDATA]
          ->->  [clRIFFLISTChunk::InitFrom]
            Found Correct INFO ID, decoding LIST chunk:
          <-<-  [clRIFFLISTChunk::InitFrom]
          10 ID Tags:
      			Album: Jonas, Maryla
      			Album Artist: Chopin, Frédéric
      			Artist: Chopin, Frédéric
      			Genre: Classical
      			Title: Mazurka No 9
      			Track: 18
      			Year: 1946
      			_albumart_1_Front Album Cover: DATA Length: 53962   ......JFIF.....`.`..
      			_riff_1: DATA Length: 4   fmt 
      			_riff_2: DATA Length: 4   data
        <-<-  [clWaveDecoder::ReadIDTags]
        ->->  [clWaveDecoder::FillAudioProps]
      	Audio Quality: CD  (Lossless)
      	Encoder Settings: PCM
      	Wave Header: Wave Format PCM
      	Channel Mapping: Center
      	Sample Count: 1,487,473
      	Riff Chunks: 'fmt ' 16 bytes,  'data' 2.84 MB,  'LIST' 118 bytes,  'id3 ' 53 KB
      	ID Tag: LIST & ID3
      	Contains: Album Art, ID Tag[LIST & ID3]
      	Gapless: Yes
        <-<-  [clWaveDecoder::FillAudioProps]
        Writing Audio Information
        ->->  [clWaveDecoder::FillAudioInfo]
          Audio Length: 33729 mili-seconds  2974946 bytes  705 kbps
        <-<-  [clWaveDecoder::FillAudioInfo]
        Written Audio Information
        Preparing to Decode
        ->->  [clWaveDecoder::PrepareToDecodeAudio]
          Calling ACMDecoder.CreateNewConverter
          Compressed WFX (on file): Format Tag: 1  Channels: 1  Bits per Sample: 16  Samples Per Second: 44100  Bytes Per Second: 88200  Block Align: 2  CB Size: 0
          Uncompressed WFX (sent to db): Format Tag: 1  Channels: 1  Bits per Sample: 16  Samples Per Second: 44100  Bytes Per Second: 88200  Block Align: 2  CB Size: 0
          Setting Position in File
        <-<-  [clWaveDecoder::PrepareToDecodeAudio]
        Prepared Decoding
      <-<-  [clDecoder::Open]
      SendOverReplayGainTags  [clEncoder::Get]
      ->->  [clEncoder::BeginConversion]
        Converting to 'D:\RF My Music\My Music Archive\2a CD 44.1\Chopin, Frederic\Jonas, Maryla\18-Mazurka No 9.m4a' encoder settings ' -cli_encoder="C:\Program Files\dBpoweramp\encoder\fhgaacenc (Winamp)\fhgaacenc.exe" -cli_cmd="--cbr 128 --profile he - {qt}[outfile]{qt}" -selection="1,9,2,0"'
        Using Encoder 'C:\Program Files\dBpoweramp\encoder\fhgaacenc (Winamp)\fhgaacenc.exe'
        Command Line '--cbr 128 --profile he - "D:\RF My Music\My Music Archive\2a CD 44.1\Chopin, Frederic\Jonas, Maryla\18-Mazurka No 9.m4a"'
        Input Wave Format:Format Tag: 1  Channels: 1  Bits per Sample: 16  Samples Per Second: 44100  Bytes Per Second: 88200  Block Align: 2  CB Size: 0
        Output Wave Format:Format Tag: 1  Channels: 1  Bits per Sample: 16  Samples Per Second: 44100  Bytes Per Second: 88200  Block Align: 2  CB Size: 0
        Passing Wave Header: Yes
        Using StdInput Pipe: Yes
        dBpoweramp Writing Tags: Yes
      <-<-  [clEncoder::BeginConversion]
      Communicate  [clDecoder::Get]
      Communicate  [clEncoder::Get]
      Encoding To: fhgaacenc (Winamp)
      Encoder Cmd Line:  -cli_encoder="C:\Program Files\dBpoweramp\encoder\fhgaacenc (Winamp)\fhgaacenc.exe" -cli_cmd="--cbr 128 --profile he - {qt}[outfile]{qt}" -selection="1,9,2,0"
      ============= CONVERSION BEGIN =============
      *** Error: Error writing audio data to StdIn Pipe  [clEncoder::EncodeBlock]
      ============= CONVERSION END =============
      Communicate  [clDecoder::Get]
      Communicate  [clEncoder::Get]
      ->->  [dBCoreConverter::CloseDecoder]
      ->->  [clDecoder::Close]
        ->->  [clWaveDecoder::Close]
        <-<-  [clWaveDecoder::Close]
      <-<-  [clDecoder::Close]
      ->->  [clEncoder::EndConversion]
      <-<-  [clEncoder::EndConversion]
        File Size Check : 0 bytes   Filename: D:\RF My Music\My Music Archive\2a CD 44.1\Chopin, Frederic\Jonas, Maryla\18-Mazurka No 9.m4a
        File Size Check (before ID Tags Written): 0 bytes   Filename: D:\RF My Music\My Music Archive\2a CD 44.1\Chopin, Frederic\Jonas, Maryla\18-Mazurka No 9.m4a
        ->->  [dBCoreConverter::IDTagWriter]
      Decodes  [clDecoder::Get]
      IDTags  [clDecoder::Set]
        IDTags  [clDecoder::Set]
          IDTags  [clDecoder::Set]
            IDTags  [clDecoder::Set]
              IDTags  [clDecoder::Set]
                IDTags  [clDecoder::Set]
                  IDTags  [clDecoder::Set]
                    IDTags  [clDecoder::Set]
                      IDTags  [clDecoder::Set]
                        IDTags  [clDecoder::Set]
                          ->->  [clDecoder::Close]
                          <-<-  [clDecoder::Close]
                          ->->  [aacstream::clDecoder::Close]
                          <-<-  [aacstream::clDecoder::Close]
      *** Error: Unable to tag file 'D:\RF My Music\My Music Archive\2a CD 44.1\Chopin, Frederic\Jonas, Maryla\18-Mazurka No 9.m4a'
      Communicate  [clDecoder::Get]
      Communicate  [clEncoder::Get]
          Conversion completed in 16 mili-seconds x2108 realtime encoding
          File Size Check (core converter exit): 0 bytes   Filename: D:\RF My Music\My Music Archive\2a CD 44.1\Chopin, Frederic\Jonas, Maryla\18-Mazurka No 9.m4a

      Comment

      • jacobacci

        • Dec 2014
        • 43

        #4
        Re: &quot;Error writing audio data to StdIn pipe (dEncoder::EncoderBlock)&quot;

        ok, found the issue. fhgaacenc does not seem to be happy encoding mono files with the he option. Encoding to AAC-LC works without problems.

        Comment

        Working...

        ]]>