View Single Post
Old 22 February 2016, 12:49 am   #4
doppletune
Member
 
Join Date: Feb 2016
Posts: 3
Default

I discovered that this is a well-known problem with output from ffmpeg to stdout. I would like to suggest an option for mpcenc, which is a --ignorelength flag. This informs the encoder to disregard the "length" field in the header of the input WAV file. Apparently some codecs when piping to streams will write zero for length, and others write 0xfff.... to represent infinity. These are meant as flags or placeholders to represent unknown duration. So an encoder that receives WAV data like this could have an option to disregard the fictional duration in the input WAV header, then figure out the real duration based on actual data.

This is what is discussed in the following thread, regarding two other encoders (qaac and lossywav) handling input from a pipe from ffmpeg: https://hydrogenaud.io/index.php/topic,103191.0.html

I think it is worthwhile having this option, as WAV is the expected intermediate format that gets piped from one codec to another.
doppletune is offline   Reply With Quote