[FFmpeg-trac] #6283(undetermined:new): TrueHD and DTS-HD convertion to s16be format give a non readable output
FFmpeg
trac at avcodec.org
Fri Mar 31 20:01:40 EEST 2017
#6283: TrueHD and DTS-HD convertion to s16be format give a non readable output
-------------------------------------+-------------------------------------
Reporter: Sami32 | Owner:
Type: defect | Status: new
Priority: normal | Component:
Version: git-master | undetermined
Keywords: TrueHD, | Resolution:
DTS-HD s16be | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
-------------------------------------+-------------------------------------
Comment (by Sami32):
Replying to [ticket:6283 Sami32]:
> Summary of the bug:
> Converting TrueHD or DTS-HD give an output no playable by the renderers
(over DLNA)
>
> How to reproduce:
> % ffmpeg -i hd_dthd_7.1_track2_ger_TrueHD.thd -vn -f s16be -ar 48000 -ac
2 output.raw
>
> Though we use pipe: output for the streaming.
> {{{
> ffmpeg version N-80999-gf41e37b Copyright (c) 2000-2016 the FFmpeg
developers
> built with gcc 5.4.0 (GCC)
> configuration: --enable-gpl --enable-version3 --disable-w32threads
--enable-dxva2 --enable-libmfx --enable-nvenc --enable-avisynth --enable-
bzlib --enable-libebur128 --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-libopenjpeg
--enable-libopus --enable-librtmp --enable-libschroedinger --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-decklink --enable-zlib
> libavutil 55. 28.100 / 55. 28.100
> libavcodec 57. 50.100 / 57. 50.100
> libavformat 57. 41.100 / 57. 41.100
> libavdevice 57. 0.102 / 57. 0.102
> libavfilter 6. 47.100 / 6. 47.100
> libswscale 4. 1.100 / 4. 1.100
> libswresample 2. 1.100 / 2. 1.100
> libpostproc 54. 0.100 / 54. 0.100
> Splitting the commandline.
> Reading option '-v' ... matched as option 'v' (set logging level) with
argument '9'.
> Reading option '-loglevel' ... matched as option 'loglevel' (set logging
level) with argument '99'.
> Reading option '-report' ... matched as option 'report' (generate a
report) with argument '1'.
> Reading option '-y' ... matched as option 'y' (overwrite output files)
with argument '1'.
> Reading option '-i' ... matched as input file with argument
'hd_dthd_7.1_track2_ger_TrueHD.thd'.
> Reading option '-vn' ... matched as option 'vn' (disable video) with
argument '1'.
> Reading option '-f' ... matched as option 'f' (force format) with
argument 's16be'.
> Reading option '-ar' ... matched as option 'ar' (set audio sampling rate
(in Hz)) with argument '48000'.
> Reading option '-ac' ... matched as option 'ac' (set number of audio
channels) with argument '2'.
> Reading option 'output.raw' ... matched as output file.
> Finished splitting the commandline.
> Parsing a group of options: global .
> Applying option v (set logging level) with argument 9.
> Applying option loglevel (set logging level) with argument 99.
> Applying option report (generate a report) with argument 1.
> Applying option y (overwrite output files) with argument 1.
> Successfully parsed a group of options.
> Parsing a group of options: input file
hd_dthd_7.1_track2_ger_TrueHD.thd.
> Successfully parsed a group of options.
> Opening an input file: hd_dthd_7.1_track2_ger_TrueHD.thd.
> [file @ 033da6c0] Setting default whitelist 'file,crypto'
> [truehd @ 033d9d40] Format truehd probed with size=65536 and score=100
> [truehd @ 033d9d40] Before avformat_find_stream_info() pos: 0 bytes
read:65536 seeks:0 nb_streams:1
> [truehd @ 033d9d40] All info found
> [truehd @ 033d9d40] After avformat_find_stream_info() pos: 1024 bytes
read:65536 seeks:0 frames:1
> Input #0, truehd, from 'hd_dthd_7.1_track2_ger_TrueHD.thd':
> Duration: N/A, start: 0.000000, bitrate: N/A
> Stream #0:0, 1, 1/90000: Audio: truehd, 48000 Hz, 7.1, s32 (24 bit)
> Successfully opened the file.
> Parsing a group of options: output file output.raw.
> Applying option vn (disable video) with argument 1.
> Applying option f (force format) with argument s16be.
> Applying option ar (set audio sampling rate (in Hz)) with argument
48000.
> Applying option ac (set number of audio channels) with argument 2.
> Successfully parsed a group of options.
> Opening an output file: output.raw.
> [file @ 033da820] Setting default whitelist 'file,crypto'
> Successfully opened the file.
> detected 1 logical cores
> [graph 0 input from stream 0:0 @ 034c9240] Setting 'time_base' to value
'1/48000'
> [graph 0 input from stream 0:0 @ 034c9240] Setting 'sample_rate' to
value '48000'
> [graph 0 input from stream 0:0 @ 034c9240] Setting 'sample_fmt' to value
's32'
> [graph 0 input from stream 0:0 @ 034c9240] Setting 'channel_layout' to
value '0x63f'
> [graph 0 input from stream 0:0 @ 034c9240] tb:1/48000 samplefmt:s32
samplerate:48000 chlayout:0x63f
> [audio format for output stream 0:0 @ 034c9c80] Setting 'sample_fmts' to
value 's16'
> [audio format for output stream 0:0 @ 034c9c80] Setting 'sample_rates'
to value '48000'
> [audio format for output stream 0:0 @ 034c9c80] Setting
'channel_layouts' to value '0x3'
> [audio format for output stream 0:0 @ 034c9c80] auto-inserting filter
'auto-inserted resampler 0' between the filter 'Parsed_anull_0' and the
filter 'audio format for output stream 0:0'
> [AVFilterGraph @ 033d9c60] query_formats: 4 queried, 6 merged, 3 already
done, 0 delayed
> [auto-inserted resampler 0 @ 033dcda0] [SWR @ 034e9000] Using fltp
internally between filters
> [auto-inserted resampler 0 @ 033dcda0] [SWR @ 034e9000] Matrix
coefficients:
> [auto-inserted resampler 0 @ 033dcda0] [SWR @ 034e9000] FL: FL:0.320377
FR:0.000000 FC:0.226541 LFE:0.000000 BL:0.226541 BR:0.000000 SL:0.226541
SR:0.000000
> [auto-inserted resampler 0 @ 033dcda0] [SWR @ 034e9000] FR: FL:0.000000
FR:0.320377 FC:0.226541 LFE:0.000000 BL:0.000000 BR:0.226541 SL:0.000000
SR:0.226541
> [auto-inserted resampler 0 @ 033dcda0] ch:8 chl:7.1 fmt:s32 r:48000Hz ->
ch:2 chl:stereo fmt:s16 r:48000Hz
> [s16be @ 033db140] Using AVStream.codec to pass codec parameters to
muxers is deprecated, use AVStream.codecpar instead.
> Output #0, s16be, to 'output.raw':
> Metadata:
> encoder : Lavf57.41.100
> Stream #0:0, 0, 1/48000: Audio: pcm_s16be, 48000 Hz, stereo, s16 (24
bit), 1536 kb/s
> Metadata:
> encoder : Lavc57.50.100 pcm_s16be
> Stream mapping:
> Stream #0:0 -> #0:0 (truehd (native) -> pcm_s16be (native))
> Press [q] to stop, [?] for help
> cur_dts is invalid (this is harmless if it occurs once at the start per
stream)
> size= 758kB time=00:00:04.04 bitrate=1536.0kbits/s speed=8.09x
> size= 1459kB time=00:00:07.78 bitrate=1536.0kbits/s speed=7.78x
> [truehd @ 033dad20] End of stream indicated.
> [output stream 0:0 @ 034c94c0] EOF on sink link output stream
0:0:default.
> No more output streams to write to, finishing.
> size= 2065kB time=00:00:11.01 bitrate=1536.0kbits/s speed= 7.9x
> video:0kB audio:2065kB subtitle:0kB other streams:0kB global headers:0kB
muxing overhead: 0.000000%
> Input file #0 (hd_dthd_7.1_track2_ger_TrueHD.thd):
> Input stream #0:0 (audio): 13214 packets read (5296266 bytes); 13214
frames decoded (528528 samples);
> Total: 13214 packets (5296266 bytes) demuxed
> Output file #0 (output.raw):
> Output stream #0:0 (audio): 13214 frames encoded (528528 samples);
13214 packets muxed (2114112 bytes);
> Total: 13214 packets (2114112 bytes) muxed
> 13214 frames successfully decoded, 0 decoding errors
> [AVIOContext @ 034c9080] Statistics: 0 seeks, 13214 writeouts
> [AVIOContext @ 033da880] Statistics: 5296266 bytes read, 0 seeks
>
> }}}
--
Ticket URL: <https://trac.ffmpeg.org/ticket/6283#comment:2>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list