artclarke / humble-video

Humble Video: Demuxing, Decoding, Filtering, Encoding and Muxing of 100's of video and audio formats and Codecs from the JVM
GNU Affero General Public License v3.0
551 stars 113 forks source link

Invalid data found when processing input (-1094995529) #129

Closed Tank-Missile closed 3 years ago

Tank-Missile commented 5 years ago

I'm hoping you can help diagnose this issue with a personal project I'm working on, as it's either a bug on your end, or something I'm missing on mine. What exactly is needed to serialize packets, send them over the network, and de-serialize them on the other end? The MediaPacket class has a bunch of setters, so I started by storing the data needed to set them in a serializable class. I also serialized the data from the decoders. Let me make it clear that I am getting both the packet data and decoder data across the network, and I even got audio packets to play remotely. However, the audio works inconsistently, and frequently causes crashes. Trying to decode a video packet results in the exception "Invalid data found when processing input (-1094995529)".

jmhirsch commented 3 years ago

Did you ever resolve this?

Tank-Missile commented 3 years ago

Unfortunatley no. To be honest, I probably should have used ffmpeg instead of making my life more difficult with a straight UDP library. It has streaming built right into it.

jmhirsch commented 3 years ago

Thanks ! I was looking at ffmpeg as well. I'll probably use that instead