I tried to record audio.webm using HTML5 MediaRecorder on Chrome and it cannot seek. Which is a known bug for Chrome. And I'm using ffmpeg to fix this problem with billion different ways, but still haven't succeeded.
ffmpeg -i <source> -fflags +genpts output.webm
It works if the source file has a video stream, but it didn't work for only audio stream with opus encoding. When I try to seek, Chrome dev tools network timeline keep downloading the entire file:
I even tried to play with VLC and still cannot seek. Then I tried to convert webm to MP3:
ffmpeg -i <source> output.mp3
Now I can seek in the browser and any other media players, but the output file's duration and start time is incorrect:
What is the correct ffmpeg parameters to fix this problem?

