[FFmpeg-user] Dolby E decoder

Mike Brown brown at mrvideo.vidiot.com
Fri Sep 8 16:46:47 EEST 2017


On Fri, Sep 08, 2017 at 03:13:46PM +0200, Paul B Mahol wrote:
> On 9/8/17, Mike Brown <brown at mrvideo.vidiot.com> wrote:
> > Are you saying that it takes a version newer than what I am using in order
> > to decode Dolby-E to ac3?
> 
> Yes.

Well, I have the latest available from the website installed on the Win7
box and the test file copied over as well.

> > I have a Win7 box that I recently brought up and can do some testing with
> > a later version of ffmpeg.  In this case, what do I need to do for this
> > override you are talking about?
> 
> Override is doable only with wav files i think.
> TS files are not possible, last time I tried.

That is where the -map is used to only deal with the PCM audio stream, but:

ffmpeg -i input_test.ts -map 0:1 -c:a copy -f u8 output_test.u8
ffmpeg version N-87196-g6cadbb1 Copyright (c) 2000-2017 the FFmpeg developers
  built with gcc 7.1.0 (GCC)
  configuration: --enable-gpl --enable-version3 --enable-cuda --enable-cuvid --enable-d3d11va --enable-dxva2 --enable-libmfx --enable-nvenc --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenh264 --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-libzimg --enable-lzma --enable-zlib
  libavutil      55. 74.100 / 55. 74.100
  libavcodec     57.105.100 / 57.105.100
  libavformat    57. 81.100 / 57. 81.100
  libavdevice    57.  8.100 / 57.  8.100
  libavfilter     6.101.100 /  6.101.100
  libswscale      4.  7.103 /  4.  7.103
  libswresample   2.  8.100 /  2.  8.100
  libpostproc    54.  6.100 / 54.  6.100
[s302m @ 000000000051d420] S302 non PCM mode with data type 28 not supported
    Last message repeated 1 times
[mpeg2video @ 000000000051c4e0] Invalid frame dimensions 0x0.
[s302m @ 000000000051d420] S302 non PCM mode with data type 28 not supported
[mpeg2video @ 000000000051c4e0] Invalid frame dimensions 0x0.
[s302m @ 000000000051d420] S302 non PCM mode with data type 28 not supported
[mpeg2video @ 000000000051c4e0] Invalid frame dimensions 0x0.
[s302m @ 000000000051d420] S302 non PCM mode with data type 28 not supported
[mpeg2video @ 000000000051c4e0] Invalid frame dimensions 0x0.
[s302m @ 000000000051d420] S302 non PCM mode with data type 28 not supported
[mpeg2video @ 000000000051c4e0] Invalid frame dimensions 0x0.
[s302m @ 000000000051d420] S302 non PCM mode with data type 28 not supported
[mpeg2video @ 000000000051c4e0] Invalid frame dimensions 0x0.
[s302m @ 000000000051d420] S302 non PCM mode with data type 28 not supported
[mpeg2video @ 000000000051c4e0] Invalid frame dimensions 0x0.
[s302m @ 000000000051d420] S302 non PCM mode with data type 28 not supported
[mpeg2video @ 000000000051c4e0] Invalid frame dimensions 0x0.
[s302m @ 000000000051d420] S302 non PCM mode with data type 28 not supported
[mpeg2video @ 000000000051c4e0] Invalid frame dimensions 0x0.
[s302m @ 000000000051d420] S302 non PCM mode with data type 28 not supported
    Last message repeated 18 times
[mpegts @ 000000000051a9c0] decoding for stream 1 failed
[mpegts @ 000000000051a9c0] PES packet size mismatch
    Last message repeated 2 times
[mpegts @ 000000000051a9c0] Could not find codec parameters for stream 1 (Audio: s302m (BSSD / 0x44535342), stereo, s32 (20 bit), 2304 kb/s): unspecified sample rate
Consider increasing the value for the 'analyzeduration' and 'probesize' options
Input #0, mpegts, from 'input_test.ts':
  Duration: 00:00:19.19, start: 94349.992444, bitrate: 43715 kb/s
  Program 1
    Stream #0:0[0x31]: Video: mpeg2video (Main) ([2][0][0][0] / 0x0002), yuv420p(tv, bt709, top first), 1920x1080 [SAR 1:1 DAR 16:9], Closed Captions, 40266 kb/s, 29.97 fps, 29.97 tbr, 90k tbn, 59.94 tbc
    Stream #0:1[0x33](eng): Audio: s302m (BSSD / 0x44535342), stereo, s32 (20 bit), 2304 kb/s
    Stream #0:2[0x34](eng): Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz, stereo, s16p, 256 kb/s
    Stream #0:3[0x35](eng): Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz, stereo, s16p, 256 kb/s
    Stream #0:4[0x3b]: Data: bin_data (LU-A / 0x412D554C)
[u8 @ 0000000002330f80] sample rate not set
Could not write header for output file #0 (incorrect codec parameters ?): Invalid argument
Stream mapping:
  Stream #0:1 -> #0:0 (copy)
    Last message repeated 1 times


I also tried to run the command that I normally use to extract the wav file
from the PCM stream and I got the above errors.  The newest ffmpeg has been
broken.  I remember this issue.  I think I found a newer version that ran
under XP, but it had the above errors.  There is history of this in the archive.
So, I had to go back to a version where ffmpeg would extract the PCM data
and place it into the wav file.

MB
-- 
e-mail: vidiot at vidiot.com | vidiot at vidiot.net            /~\ The ASCII
        6082066843 at email.uscc.net (140 char limit)       \ / Ribbon Campaign
Visit - URL: http://vidiot.com/                           X  Against
             http://vidiot.net/                          / \ HTML Email
"You're Sherlock Holmes, wear the damn hat!" - Watson to Sherlock
Sherlock - The Abominable Bride - 1/01/16


More information about the ffmpeg-user mailing list