Nixes
Posts: 1
Joined: Fri Jun 10, 2016 1:54 pm

Camera V1 + VLC + RPI:A + Jessie = Bad Performance?

Fri Jun 10, 2016 2:11 pm

Hello all,
I've been having issues with camera performance on my model A+ raspberry pi after updating to Raspbian Jessie from Wheezy (by making a fresh instal).

Issues I've encountered so far include:
* When trying to take video at 720p at 49fps (using h264) the video switches to a clearly scaled up image rather than the native 720p video I was getting before upgrading.
* Mjpeg encoding is way under the framerates requested, where I request 30fps I'm lucky to get 10. Whereas I used to get framerates up to 49fps easily.

All these issues are encountered when using the v4l driver along with vlc.


My 720p 49fps h264 script:

Code: Select all

v4l2-ctl --set-fmt-video=width=1280,height=720,pixelformat=4
#v4l2-ctl -c compression_quality=100,sharpness=30
v4l2-ctl --set-ctrl video_bitrate=5000000 # good bitrate for 49fps 720p was 5000000
v4l2-ctl --set-ctrl rotate=180

v4l2-ctl -p 49

cvlc    --no-audio \
        v4l2:///dev/video0 \
        --v4l2-width 1280 \
        --v4l2-height 720 \
        --v4l2-chroma h264 \
        --sout '#standard{access=http{mime=multipart/x-mixed-replace;boundary=--7b3cc56e5f51db803f790dad720ed50$
        -I dummy
My mjpeg script:

Code: Select all

v4l2-ctl --set-fmt-video=width=640,height=480,pixelformat=5
v4l2-ctl --set-ctrl video_bitrate=10000000
v4l2-ctl --set-ctrl rotate=180
v4l2-ctl --set-ctrl contrast=20
v4l2-ctl -p 30

cvlc    --no-audio \
        v4l2:///dev/video0 \
        --v4l2-width 640 \
        --v4l2-height 480 \
        --v4l2-chroma MJPG \
        --sout '#standard{access=http{mime=multipart/x-mixed-replace;boundary=--7b3cc56e5f51db803f790dad720ed50$
        -I dummy

Any assistance would be greatly appreciated.

shuckle
Posts: 565
Joined: Sun Aug 26, 2012 11:49 am
Location: Finland

Re: Camera V1 + VLC + RPI:A + Jessie = Bad Performance?

Fri Jun 10, 2016 5:12 pm

Check viewtopic.php?f=38&t=142279

I bet it is vlc which causes this slowness. Not much you can do for it unless you can downgrade.

Return to “Camera board”