raspivid의 제한(?) 인지 1920*1080이 최대라
-md 설정을 이용한 최대 해상도인 2592*1944(5M)는 스트리밍이 불가능...
그래도 확실히 1920보다는 해상도가 오르니 나은건가?
요건 안되고
$ raspivid -o - -t 0 -n -md 2 -w 2592 -h 1944 | cvlc -vvv stream:///dev/stdin --sout '#rtp{sdp=rtsp://:8554/}' :demux=h264
얘는 되고..
$ raspivid -o - -t 0 -n -md 2 | cvlc -vvv stream:///dev/stdin --sout '#rtp{sdp=rtsp://:8554/}' :demux=h264
RASPIVID -mode, -md Sets a specified sensor mode, disabling the automatic selection. Possible values are : Mode Size Aspect Ratio Frame rates FOV Binning 0 automatic selection 1 1920x1080 16:9 1-30fps Partial None 2 2592x1944 4:3 1-15fps Full None --width, -w Set image width <size> Width of resulting video. This should be between 64 and 1920. --height, -h Set image height <size> Height of resulting video. This should be between 64 and 1080. |
[링크 : https://www.raspberrypi.org/documentation/raspbian/applications/camera.md]
캡쳐 해보니.. 화각이랑 해상도가 달라지긴 하네..
2M (1920x1080)
5M(2592x1944)
$ raspivid -t 0 -n -md 2 -v raspivid Camera App v1.3.12 Width 1920, Height 1080, filename (null) bitrate 17000000, framerate 30, time delay 0 H264 Profile high H264 Quantisation level 0, Inline headers No H264 Intra refresh type (null), period -1 Wait method : Capture forever Initial state 'record' Preview No, Full screen Yes Preview window 0,0,1024,768 Opacity 255 Sharpness 0, Contrast 0, Brightness 50 Saturation 0, ISO 0, Video Stabilisation No, Exposure compensation 0 Exposure Mode 'auto', AWB Mode 'auto', Image Effect 'none' Metering Mode 'average', Colour Effect Enabled No with U = 128, V = 128 Rotation 0, hflip No, vflip No ROI x 0.000000, y 0.000000, w 1.000000 h 1.000000 Camera component done Encoder component done Starting component connection stage Connecting camera stills port to encoder input port Enabling encoder output port |
$ raspivid -t 0 -n -md 2 -w 2592 -h 1944 -v raspivid Camera App v1.3.12 Width 2592, Height 1944, filename (null) bitrate 17000000, framerate 30, time delay 0 H264 Profile high H264 Quantisation level 0, Inline headers No H264 Intra refresh type (null), period -1 Wait method : Capture forever Initial state 'record' Preview No, Full screen Yes Preview window 0,0,1024,768 Opacity 255 Sharpness 0, Contrast 0, Brightness 50 Saturation 0, ISO 0, Video Stabilisation No, Exposure compensation 0 Exposure Mode 'auto', AWB Mode 'auto', Image Effect 'none' Metering Mode 'average', Colour Effect Enabled No with U = 128, V = 128 Rotation 0, hflip No, vflip No ROI x 0.000000, y 0.000000, w 1.000000 h 1.000000 Camera component done Encoder component done Starting component connection stage Connecting camera stills port to encoder input port mmal: mmal_vc_port_enable: failed to enable port vc.ril.video_encode:in:0(OPQV): EINVAL mmal: mmal_port_enable: failed to enable connected port (vc.ril.video_encode:in:0(OPQV))0xc9d330 (EINVAL) mmal: mmal_connection_enable: output port couldn't be enabled mmal: main: Failed to connect camera video port to encoder input mmal: Argument is invalid Closing down Close down completed, all components disconnected, disabled and destroyed mmal: Failed to run camera app. Please check for firmware updates |
음... 왜 안되지 ... ㅠㅠ
[링크 : https://www.raspberrypi.org/forums/viewtopic.php?f=43&t=59559]
5M로 설정하면 주기적으로 에러가 발생하는데..
[73d00508] core input error: ES_OUT_SET_(GROUP_)PCR is called too late (pts_delay increased to 320 ms)
[73d00508] core input error: ES_OUT_RESET_PCR called
[73d00508] core input debug: Buffering 0%
[73d00508] core input debug: Buffering 12%
[73d00508] core input debug: Buffering 24%
[73d00508] core input debug: Buffering 37%
[73d00508] core input debug: Buffering 49%
[73d00508] core input debug: Buffering 62%
[73d00508] core input debug: Buffering 74%
[73d00508] core input debug: Buffering 87%
[73d00508] core input debug: Buffering 99%
[73d00508] core input debug: Stream buffering done (360 ms in 624 ms)
[73d00508] core input debug: Decoder wait done in 0 ms
5M
+
2016.05.31
음.. 비디오 코어 자체가 fullHD 인코딩이라.. 그 이상의 해상도는 무리인건가?
rpicam v2 에서도 그럼 8M 로 받아와도 2M로 밖에 전송이 불가능할지도?
'embeded > raspberry pi' 카테고리의 다른 글
raspistill 빠르게 사진 찍기 (0) | 2016.06.09 |
---|---|
라즈베리 파이 gstreamer / vlc ... 실패? (0) | 2016.05.27 |
으아아아아 앙대 ㅠㅠ 케이블 단선? (4) | 2016.05.25 |
라즈베리 mpeg2 / vc-1 라이센스 (0) | 2016.05.23 |
i2cdetect에서 감지실패할 경우 (0) | 2016.04.15 |