Skip to content

Single frame is streamed then times out, not a performance issue #9

@mckenziec

Description

@mckenziec

Hi.

This is exactly the project I've been meaning to use my Zero W for. I managed to get npm and everything setup for HomeKitCam but I'm finding the stream from iPhone shows the 1st frame when connected, then times out.

The npm/PiCamera_accessory.js script shows the following options when I connect with my iPhone:

bitrate: 299
avconv stream: -f video4linux2 -i /dev/video0 -s 640:480 -threads auto -vcodec h264 -an -pix_fmt yuv420p -f rawvideo -tune zerolatency -vf scale=w=640:h=480 -b:v 100k -bufsize 200k -payload_type 99 -ssrc 1 -f rtp -srtp_out_suite AES_CM_128_HMAC_SHA1_80 -srtp_out_params wuxFurc9azRuIgjC98gWfSsmwIDjOdBtRpfu1UtQ srtp://192.168.2.133:64011?rtcpport=64011&localrtcpport=64011&pkt_size=1378

My iPhone shows a frame, then nothing happens until I finally get a "No response" message.

I ran top on another term on the Zero and there's no CPU usage after the 1st frame. When the connection is established, the avconv process will pop at the top with 20% CPU, then disappear from the list while the streaming stalls out.

Is there anyway to figure out the problem that avconv is happen?

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