I am encoding video on the fly using JavaCV & its JNDI binding for ffmpeg. I'm using the following settings:
On Wowza I have the following settings for "Cupertino Streaming Packetizer" properties:
FFmpegFrameRecorder fFmpegFrameRecorder = new FFmpegFrameRecorder("rtmp://localhost:1935/live/stream1", 400, 384); //rtmp destination, width and height
recorder.setGopSize(30 * 2); //60 frames
I want to keep these low because I'm trying to keep client's video roughly in sync with one another.
When I view the stream over HLS it seems to stutter every second, or more precisely every "cupertinoChunkDurationTarget" milliseconds. I have tried playing around with various encoder and Wowza settings but can't seem to get rid of it. Any suggestions?