[FFmpeg-user] Could not find codec parameters for stream for mp3 audio stream in HLS segment
Gabriel Balaich
roderrooder at gmail.com
Wed Dec 15 18:01:55 EET 2021
0
On Sun, 21 Nov 2021 at 17:42, Gabriel Balaich <roderrooder at gmail.com> wrote:
> I'm attempting to concatenate some but not all segments in a m3u8 HLS
> segment list, but when I use stream copy I get this error:
>
> Could not find codec parameters for stream 1 (Audio: mp3 (mp3float)
> ([3][0][0][0] / 0x0003), 0 channels, fltp): unspecified frame size
> Consider increasing the value for the 'analyzeduration' (0) and
> 'probesize' (5000000) options
> Changing
>
>
> Changing the analyzeduration and probesize to max INT or anything between
> has no effect, as the warning suggests. As I dug deeper I noticed that when
> probing the initial segment in the new HLS segment list that I generate
> (with some but not all segments) many of the audio parameters are not set:
>
> I think the issue is that sometimes these audio devices aren't playing any
> audio for the duration of the segment, and thus even though I've given the
> segment audio parameters they don't populate because there is no data.
> Maybe this is wrong? If that is the case though... I wonder if what I need
> is some sort of audio filter that just packs in dummy audio when there
> isn't any audio in its place.
>
> Whatever the solution I'm hoping this can be solved upon generation of the
> segment files and not in post, any help is much appreciated.
>
Any ideas? Just to recap, it seems that when there's no activity on my
audio interface FFmpeg just ommits audio data entirely for any given
segment (at least it would appear). I'd think someone else out there is
doing something similar; generating a segment list, and then modifying the
segment list to build only part of the total buffer. For example, I keep 3
hours of segments, but I want to build only the last 5 minutes, or 10
minutes of footage from 30 minutes ago.
Think I may have to resort to re-encoding the audio instead of using stream
copy, which could add a lot of time to building the concatenated files 😬
More information about the ffmpeg-user
mailing list