[FFmpeg-user] Dolby E decoder

foo86 foobaz86 at gmail.com
Sat Sep 9 17:24:24 EEST 2017

On Fri, Sep 08, 2017 at 05:08:54PM -0500, Mike Brown wrote:
> On Fri, Sep 08, 2017 at 03:55:35PM +0200, Paul B Mahol wrote:
> > You need to override input decoder so S302 is not used.
> Any update on how I override the s302 decoder?

You don't want to override s302m decoder, it has to be used to process
non-PCM data in TS to obtain s337m compliant stream that FFmpeg will
recognize as such and decode as Dolby E.

-non_pcm_mode copy parameter has to be passed to s302m decoder since by
default it drops non-PCM.

Correct command line for your case (extract and decode 20-bit Dolby E)
would be:

    ffmpeg -non_pcm_mode copy -i input_test.ts -map 0:1 -c:a pcm_s24le -f s24le out.dat
    ffmpeg -i out.dat out.wav

For 16-bit Dolby E change output codec and format to s16le.

More information about the ffmpeg-user mailing list