IPB

Welcome Guest ( Log In | Register )

> foobar2000 Tech Support Forum Rules

Please read foobar2000 Tech Support Forum Rules before posting and comply with all the points.
Failure to provide all the information pointed out in the above document in your post is considered wasting other people's time and in extreme cases will lead to your topic getting locked without a reply.


See also: Hydrogenaudio Terms of Service.

Converter: problem piping to speexenc
romor
post Feb 4 2011, 17:31
Post #1





Group: Members
Posts: 682
Joined: 16-January 09
Member No.: 65630



I tried speex for some of my audiobooks and very satisfied with the results. Speexdrop works fine, so does CLI, but I have problem with foobar converter (latest speexenc from rarewares)

Example parameter setting: -w --vbr - %d

Problem:
QUOTE
Encoder stream format: 32000Hz / 1ch / 16bps
Command line: "C:\Program Files\encoders\speexenc.exe" -w --vbr - "out.spx"
Working folder: C:\temp\audiobooks\
An error occurred while writing to file (The encoder has terminated prematurely with code 0 (0x00000000); please re-check parameters)


Now if I use temporary input file "%s" instead pipe "-", conversion is done fine, but not on the fly. However speexenc accepts piping just fine:

CODE
sox in.wav -p | speexenc.exe -w --vbr -V - out.spx


Any comments?


--------------------
scripts: http://goo.gl/M1qVLQ
Go to the top of the page
+Quote Post
 
Start new topic
Replies
kode54
post Mar 30 2011, 12:50
Post #2





Group: Admin
Posts: 4687
Joined: 15-December 02
Member No.: 4082



Is the Speex encoder designed to accept weird WAV files? Foobar2000 emits piped WAV files with a 0xFFFFFFFF length for both the RIFF chunk and the data chunk, since knowing the lengths ahead of time would require decoding the files twice, as the reported lengths on some files are not exact, or may even be rounded. (For instance, WMA, due to limitations of the ASF container, reports lengths rounded down to the nearest millisecond. Even WMA Lossless.)
Go to the top of the page
+Quote Post
romor
post Mar 31 2011, 05:42
Post #3





Group: Members
Posts: 682
Joined: 16-January 09
Member No.: 65630



QUOTE (kode54 @ Mar 30 2011, 12:50) *
Is the Speex encoder designed to accept weird WAV files? Foobar2000 emits piped WAV files with a 0xFFFFFFFF length for both the RIFF chunk and the data chunk, since knowing the lengths ahead of time would require decoding the files twice, as the reported lengths on some files are not exact, or may even be rounded.

I don't know such technicalities, but am curious how does speexenc handle sox piping then. And it's not only sox - output from other decoders (like flac.exe etc) which supports writing to stdout is handled just fine


--------------------
scripts: http://goo.gl/M1qVLQ
Go to the top of the page
+Quote Post

Posts in this topic


Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 18th December 2014 - 18:26