Open onkrot opened 3 weeks ago
Generate a tone of 400 Hz sine wave (I have used this generator) Convert it to flv using FFmpeg with PCM 16 LE encoding
ffmpeg -i output.wav -acodec pcm_s16le -ar 22050 -ac 1 a.flv
FWIW, FFmpeg has a built-in signal generator, I used it to make the test inputs for #16526, like this for example:
ffmpeg -f lavfi -i "sine=frequency=444:duration=1:sample_rate=44100" -af "volume=5" -ac 2 -c:a aac tone_stereo_44100hz.flv
Describe the bug
Steps to reproduce:
ffmpeg -i output.wav -acodec pcm_s16le -ar 22050 -ac 1 a.flv
NetConnection
,NetStream
, andVideo
classes (see the attachment)Expected behavior
Tone plays normally
Content Location
a.zip
Affected platform
Desktop app
Operating system
Windows 11
Browser
No response
Additional information
I found the bug when I tried to create a test for #16570. This problem also affects the proposed decoder.
Error logs suggest some underflow when only a portion of the audio stream gets decoded and played (happens when I replace PCM encoded flv with a-law encoded one)