Yev
Yev

Reputation: 337

Xuggler - Getting snapshots from RTMP stream

I'm using the last xuggler lib on Java 7 (MacOs Maverix). I need to get a

png snapshot from a live rtmp stream served by wowza.

For this I'm using the default com.xuggle.xuggler.demos.DecodeAndCaptureFrames. There are some problems:

  1. reader.readPacket() has a delay of ~5 minutes (it seems xuggler tries to buffer or guess the format, difficult to explain)
  2. After this delay, some external process starts (I guess it's ffmpeg) and my CPU usage is 100%.
  3. In parallel with high CPU load, I see the png files created correctly, but after 2-3 minutes I get always the following exception

    14:40:35.785 [main] ERROR org.ffmpeg - WriteN, RTMP send error 32 (14 bytes) 14:40:35.790 [main] ERROR org.ffmpeg - WriteN, RTMP send error 32 (42 bytes)

Any idea?

Upvotes: 0

Views: 325

Answers (1)

Yev
Yev

Reputation: 337

I found a solution: I had to manually set the probesize property on IContainer to 2048 and it works.

Upvotes: 1

Related Questions