[FFmpeg-trac] #10217(undetermined:new): mlp enc: broken output when input is 8-bit 44kHz
FFmpeg
trac at avcodec.org
Thu Feb 23 18:22:45 EET 2023
#10217: mlp enc: broken output when input is 8-bit 44kHz
-------------------------------------+-------------------------------------
Reporter: ami_stuff | Type: defect
Status: new | Priority: normal
Component: | Version:
undetermined | unspecified
Keywords: | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
-------------------------------------+-------------------------------------
FFmpeg's mlp/truehd encoder produces broken files when the input is 8-bit
and has exactly 44100Hz.
When the input is for example 8-bit 44099Hz, this problem doesn't happen.
The encoder is still in experimental state, but this issue shouldn't be
missed.
{{{
./ffmpeg -i 8_1_44100.wav -strict -2 -y out.mlp
ffmpeg version N-109867-g5247dab6b1 Copyright (c) 2000-2023 the FFmpeg
developers
built with gcc 9 (Ubuntu 9.4.0-1ubuntu1~20.04.1)
configuration:
libavutil 58. 1.100 / 58. 1.100
libavcodec 60. 2.100 / 60. 2.100
libavformat 60. 2.100 / 60. 2.100
libavdevice 60. 0.100 / 60. 0.100
libavfilter 9. 1.100 / 9. 1.100
libswscale 7. 0.100 / 7. 0.100
libswresample 4. 9.100 / 4. 9.100
Guessed Channel Layout for Input Stream #0.0 : mono
Input #0, wav, from '8_1_44100.wav':
Duration: 00:00:10.00, bitrate: 352 kb/s
Stream #0:0: Audio: pcm_u8 ([1][0][0][0] / 0x0001), 44100 Hz, 1
channels, u8, 352 kb/s
Stream mapping:
Stream #0:0 -> #0:0 (pcm_u8 (native) -> mlp (native))
Press [q] to stop, [?] for help
Output #0, mlp, to 'out.mlp':
Metadata:
encoder : Lavf60.2.100
Stream #0:0: Audio: mlp, 44100 Hz, mono, s16, 128 kb/s
Metadata:
encoder : Lavc60.2.100 mlp
size= 324kB time=00:00:09.99 bitrate= 265.5kbits/s speed= 146x
video:0kB audio:324kB subtitle:0kB other streams:0kB global headers:0kB
muxing overhead: 0.000000%
}}}
{{{
./ffmpeg -i out.mlp -f null -
ffmpeg version N-109867-g5247dab6b1 Copyright (c) 2000-2023 the FFmpeg
developers
built with gcc 9 (Ubuntu 9.4.0-1ubuntu1~20.04.1)
configuration:
libavutil 58. 1.100 / 58. 1.100
libavcodec 60. 2.100 / 60. 2.100
libavformat 60. 2.100 / 60. 2.100
libavdevice 60. 0.100 / 60. 0.100
libavfilter 9. 1.100 / 9. 1.100
libswscale 7. 0.100 / 7. 0.100
libswresample 4. 9.100 / 4. 9.100
[mlp @ 0x561a02261640] Invalid channel 10 specified as output from matrix.
Input #0, mlp, from 'out.mlp':
Duration: N/A, start: 0.000000, bitrate: N/A
Stream #0:0: Audio: mlp, 44100 Hz, mono, s16
Stream mapping:
Stream #0:0 -> #0:0 (mlp (native) -> pcm_s16le (native))
Press [q] to stop, [?] for help
[mlp @ 0x561a02262680] Invalid channel 10 specified as output from matrix.
Output #0, null, to 'pipe:':
Metadata:
encoder : Lavf60.2.100
Stream #0:0: Audio: pcm_s16le, 44100 Hz, mono, s16, 705 kb/s
Metadata:
encoder : Lavc60.2.100 pcm_s16le
Error while decoding stream #0:0: Invalid data found when processing input
Last message repeated 14 times
[mlp @ 0x561a02262680] Lossless check failed - expected d1, calculated a7.
Error while decoding stream #0:0: Invalid data found when processing input
Last message repeated 15 times
[mlp @ 0x561a02262680] Lossless check failed - expected d4, calculated 00.
Error while decoding stream #0:0: Invalid data found when processing input
Last message repeated 15 times
[mlp @ 0x561a02262680] Lossless check failed - expected 35, calculated 00.
Error while decoding stream #0:0: Invalid data found when processing input
Last message repeated 15 times
[mlp @ 0x561a02262680] Lossless check failed - expected dd, calculated 00.
Error while decoding stream #0:0: Invalid data found when processing input
Last message repeated 15 times
[mlp @ 0x561a02262680] Lossless check failed - expected c0, calculated 00.
Error while decoding stream #0:0: Invalid data found when processing input
Last message repeated 15 times
[mlp @ 0x561a02262680] Lossless check failed - expected 10, calculated 00.
[mlp @ 0x561a02262680] restart header sync incorrect (got 0x19f7)
Error while decoding stream #0:0: Invalid data found when processing input
Last message repeated 14 times
[mlp @ 0x561a02262680] Lossless check failed - expected 3d, calculated fe.
Error while decoding stream #0:0: Invalid data found when processing input
Last message repeated 15 times
[mlp @ 0x561a02262680] Lossless check failed - expected c6, calculated 00.
Error while decoding stream #0:0: Invalid data found when processing input
Last message repeated 15 times
Error while decoding stream #0:0: Invalid data found when processing input
Last message repeated 15 times
[mlp @ 0x561a02262680] Lossless check failed - expected 28, calculated 00.
Error while decoding stream #0:0: Invalid data found when processing input
Last message repeated 15 times
[mlp @ 0x561a02262680] Lossless check failed - expected ec, calculated 00.
Error while decoding stream #0:0: Invalid data found when processing input
Last message repeated 15 times
[mlp @ 0x561a02262680] Lossless check failed - expected eb, calculated 00.
Error while decoding stream #0:0: Invalid data found when processing input
[mlp @ 0x561a02262680] substream 0 length mismatch
Error while decoding stream #0:0: Invalid data found when processing input
[mlp @ 0x561a02262680] substream 0 length mismatch
Error while decoding stream #0:0: Invalid data found when processing input
[mlp @ 0x561a02262680] substream 0 length mismatch
Error while decoding stream #0:0: Invalid data found when processing input
[mlp @ 0x561a02262680] substream 0 length mismatch
Error while decoding stream #0:0: Invalid data found when processing input
[mlp @ 0x561a02262680] substream 0 length mismatch
Error while decoding stream #0:0: Invalid data found when processing input
[mlp @ 0x561a02262680] substream 0 length mismatch
Error while decoding stream #0:0: Invalid data found when processing input
[mlp @ 0x561a02262680] substream 0 length mismatch
Error while decoding stream #0:0: Invalid data found when processing input
[mlp @ 0x561a02262680] substream 0 length mismatch
Error while decoding stream #0:0: Invalid data found when processing input
[mlp @ 0x561a02262680] substream 0 length mismatch
Error while decoding stream #0:0: Invalid data found when processing input
[mlp @ 0x561a02262680] substream 0 length mismatch
Error while decoding stream #0:0: Invalid data found when processing input
[mlp @ 0x561a02262680] substream 0 length mismatch
Error while decoding stream #0:0: Invalid data found when processing input
[mlp @ 0x561a02262680] substream 0 length mismatch
Error while decoding stream #0:0: Invalid data found when processing input
[mlp @ 0x561a02262680] substream 0 length mismatch
Error while decoding stream #0:0: Invalid data found when processing input
[mlp @ 0x561a02262680] substream 0 length mismatch
Error while decoding stream #0:0: Invalid data found when processing input
[mlp @ 0x561a02262680] substream 0 length mismatch
Error while decoding stream #0:0: Invalid data found when processing input
[mlp @ 0x561a02262680] Lossless check failed - expected eb, calculated 00.
[mlp @ 0x561a02262680] substream 0 length mismatch
Error while decoding stream #0:0: Invalid data found when processing input
[mlp @ 0x561a02262680] substream 0 length mismatch
Error while decoding stream #0:0: Invalid data found when processing input
[mlp @ 0x561a02262680] substream 0 length mismatch
Error while decoding stream #0:0: Invalid data found when processing input
[mlp @ 0x561a02262680] substream 0 length mismatch
Error while decoding stream #0:0: Invalid data found when processing input
[mlp @ 0x561a02262680] substream 0 length mismatch
Error while decoding stream #0:0: Invalid data found when processing input
[mlp @ 0x561a02262680] substream 0 length mismatch
Error while decoding stream #0:0: Invalid data found when processing input
[mlp @ 0x561a02262680] substream 0 length mismatch
Error while decoding stream #0:0: Invalid data found when processing input
[mlp @ 0x561a02262680] substream 0 length mismatch
Error while decoding stream #0:0: Invalid data found when processing input
[mlp @ 0x561a02262680] substream 0 length mismatch
Error while decoding stream #0:0: Invalid data found when processing input
[mlp @ 0x561a02262680] substream 0 length mismatch
Error while decoding stream #0:0: Invalid data found when processing input
[mlp @ 0x561a02262680] substream 0 length mismatch
Error while decoding stream #0:0: Invalid data found when processing input
[mlp @ 0x561a02262680] substream 0 length mismatch
Error while decoding stream #0:0: Invalid data found when processing input
[mlp @ 0x561a02262680] substream 0 length mismatch
Error while decoding stream #0:0: Invalid data found when processing input
[mlp @ 0x561a02262680] substream 0 length mismatch
Error while decoding stream #0:0: Invalid data found when processing input
[mlp @ 0x561a02262680] substream 0 length mismatch
Error while decoding stream #0:0: Invalid data found when processing input
[mlp @ 0x561a02262680] substream 0 length mismatch
Error while decoding stream #0:0: Invalid data found when processing input
[mlp @ 0x561a02262680] Lossless check failed - expected e3, calculated 00.
Error while decoding stream #0:0: Invalid data found when processing input
Last message repeated 15 times
[mlp @ 0x561a02262680] Lossless check failed - expected ec, calculated 00.
[mlp @ 0x561a02262680] restart header sync incorrect (got 0x1200)
Error while decoding stream #0:0: Invalid data found when processing input
Last message repeated 14 times
[mlp @ 0x561a02262680] Lossless check failed - expected 63, calculated 88.
Error while decoding stream #0:0: Invalid data found when processing input
Last message repeated 15 times
[mlp @ 0x561a02262680] Lossless check failed - expected 1e, calculated 00.
Error while decoding stream #0:0: Invalid data found when processing input
Last message repeated 15 times
[mlp @ 0x561a02262680] Lossless check failed - expected 88, calculated 00.
Error while decoding stream #0:0: Invalid data found when processing input
size=N/A time=00:00:09.95 bitrate=N/A speed=86.7x
video:0kB audio:2kB subtitle:0kB other streams:0kB global headers:0kB
muxing overhead: unknown
Conversion failed!
}}}
{{{
./ffmpeg -i 8_1_44099.wav -strict -2 -y out2.mlp
ffmpeg version N-109867-g5247dab6b1 Copyright (c) 2000-2023 the FFmpeg
developers
built with gcc 9 (Ubuntu 9.4.0-1ubuntu1~20.04.1)
configuration:
libavutil 58. 1.100 / 58. 1.100
libavcodec 60. 2.100 / 60. 2.100
libavformat 60. 2.100 / 60. 2.100
libavdevice 60. 0.100 / 60. 0.100
libavfilter 9. 1.100 / 9. 1.100
libswscale 7. 0.100 / 7. 0.100
libswresample 4. 9.100 / 4. 9.100
Guessed Channel Layout for Input Stream #0.0 : mono
Input #0, wav, from '8_1_44099.wav':
Metadata:
encoder : Lavf60.2.100
Duration: 00:00:10.00, bitrate: 705 kb/s
Stream #0:0: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 44099 Hz, 1
channels, s16, 705 kb/s
Stream mapping:
Stream #0:0 -> #0:0 (pcm_s16le (native) -> mlp (native))
Press [q] to stop, [?] for help
Output #0, mlp, to 'out2.mlp':
Metadata:
encoder : Lavf60.2.100
Stream #0:0: Audio: mlp, 44100 Hz, mono, s16, 128 kb/s
Metadata:
encoder : Lavc60.2.100 mlp
size= 732kB time=00:00:09.99 bitrate= 599.4kbits/s speed= 132x
video:0kB audio:732kB subtitle:0kB other streams:0kB global headers:0kB
muxing overhead: 0.000000%
}}}
{{{
./ffmpeg -i out2.mlp -f null -
ffmpeg version N-109867-g5247dab6b1 Copyright (c) 2000-2023 the FFmpeg
developers
built with gcc 9 (Ubuntu 9.4.0-1ubuntu1~20.04.1)
configuration:
libavutil 58. 1.100 / 58. 1.100
libavcodec 60. 2.100 / 60. 2.100
libavformat 60. 2.100 / 60. 2.100
libavdevice 60. 0.100 / 60. 0.100
libavfilter 9. 1.100 / 9. 1.100
libswscale 7. 0.100 / 7. 0.100
libswresample 4. 9.100 / 4. 9.100
Input #0, mlp, from 'out2.mlp':
Duration: N/A, start: 0.000000, bitrate: N/A
Stream #0:0: Audio: mlp, 44100 Hz, mono, s16
Stream mapping:
Stream #0:0 -> #0:0 (mlp (native) -> pcm_s16le (native))
Press [q] to stop, [?] for help
Output #0, null, to 'pipe:':
Metadata:
encoder : Lavf60.2.100
Stream #0:0: Audio: pcm_s16le, 44100 Hz, mono, s16, 705 kb/s
Metadata:
encoder : Lavc60.2.100 pcm_s16le
size=N/A time=00:00:09.99 bitrate=N/A speed=90.6x A
video:0kB audio:861kB subtitle:0kB other streams:0kB global headers:0kB
muxing overhead: unknown
}}}
--
Ticket URL: <https://trac.ffmpeg.org/ticket/10217>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list