Skip to content

Error parsing ffmpeg stats: strconv.ParseFloat: parsing "N": invalid syntax #24

Description

@IoIxD

The error in the title clogs the terminal as the library struggles to play the first few seconds of any audio file without stuttering, and it eventually just outright changes to Voice connection closed, then inevitably timeout waiting for voice, then inevitably it panics with invalid memory address or nil pointer dereference.

A video of the error can be seen here

My code is as follows:

// start the audio session
options := dca.StdEncodeOptions
encodingSession, r := dca.EncodeFile("HOTEL_MARIO_TONE.mp3", options)
er(r)
defer encodingSession.Cleanup()

done := make(chan error)
dca.NewStream(encodingSession, vc, done)
err = <- done
if(err != nil && err != io.EOF) {
	// keep trucking, actually.
	fmt.Println(err)
}

My ffmpeg version is 5.1, however this happened on 5.0 as well. I don't think the audio file is important because this error persists across three of them, but here it is (note that the fact that it's one second long doesn't matter, it does this with many other longer fiels as mentioned previously)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions