mmdtsdec writing to standard output
Posted: Sat May 03, 2014 1:58 pm
Would it be possible to allow mmdtsdec to write to standard output instead of a file?
Using the following command I was able to pipe the audio directly into flac. (Channel map is due to the input being a 7.1 file.)
mmdtsdec -d dtsdecoderdll.dll dts_logo.dtshd /dev/stdout | flac --channel-map=none -8 - --ignore-chunk-sizes -o test-out2.flac
However, this causes mmdtsdec to fail with an error code due to being unable to seek to update the wav header. I also created a wav file normally using mmdtsdec and encoded it with flac. I decoded the two flac files and the results were identical.
Using /dev/stdin for the input file appears to work properly.
Is there any chance this could be implemented in such a way that mmdtsdec would not fail? It would also be nice if it was possible to use "-" to refer to stdin and stdout.
Using the following command I was able to pipe the audio directly into flac. (Channel map is due to the input being a 7.1 file.)
mmdtsdec -d dtsdecoderdll.dll dts_logo.dtshd /dev/stdout | flac --channel-map=none -8 - --ignore-chunk-sizes -o test-out2.flac
However, this causes mmdtsdec to fail with an error code due to being unable to seek to update the wav header. I also created a wav file normally using mmdtsdec and encoded it with flac. I decoded the two flac files and the results were identical.
Using /dev/stdin for the input file appears to work properly.
Is there any chance this could be implemented in such a way that mmdtsdec would not fail? It would also be nice if it was possible to use "-" to refer to stdin and stdout.