hjoon0510 / research-journal

기록일지 (문제, 이슈, 에러, 스크린샷, 작업내용, 해결방법 등을 기록하는 저장소입니다.)
Apache License 2.0
1 stars 0 forks source link

20200919 (php, phpmyadmin, camera) #97

Open hjoon0510 opened 3 years ago

hjoon0510 commented 3 years ago

php 와 phpmyadmin 을 설치하였다.아파치 한글꺠짐현상을 해결하였다.( utf-8)

==================
sudo vi /etc/phpmyadmin/config.inc.php 
* 변경전: //$cfg['Servers'][$i]['AllowNoPassword'] = TRUE;
* 변경후: $cfg['Servers'][$i]['AllowNoPassword'] = TRUE;

sudo mysql --user=root --password
use mysql;
update user set plugin="" where user='root';
flush privileges;
quit; 

usb camera 가 동작하지 않는다.


pi@raspberrypi:~ $ cheese

(cheese:1409): cheese-WARNING **: 21:21:04.127: Device '/dev/video0' is busy: gstv4l2object.c(3758): gst_v4l2_object_set_format_full (): /GstCameraBin:camerabin/GstWrapperCameraBinSrc:camera_source/GstBin:bin28/GstV4l2Src:v4l2src1:
Call to S_FMT failed for YU12 @ 640x480: 장치나 자원이 동작 중

pi@raspberrypi:~ $

pi@raspberrypi:~ $ ^C
pi@raspberrypi:~ $ sudo vlc v4l2:///dev/video0
VLC is not supposed to be run as root. Sorry.
If you need to use real-time priorities and/or privileged TCP ports
you can use vlc-wrapper (make sure it is Set-UID root and
cannot be run by non-trusted users first).
pi@raspberrypi:~ $ cheese^C
pi@raspberrypi:~ $ ^C
pi@raspberrypi:~ $ vlc v4l2:///dev/video0
VLC media player 3.0.8 Vetinari (revision 3.0.8-0-gf350b6b5a7)
[01600aa8] vlcpulse audio output error: PulseAudio server connection failure: Connection refused
[0157db48] main libvlc: 기본 인터페이스로 vlc 실행. vlc 인터페이스 없이 사용하려면 'cvlc' 을 사용하세요.
libv4l2: error turning on stream: 장치에 남은 공간이 없음
[b3c00c50] v4l2 demux error: cannot start streaming: No space left on device
[b3c00c50] v4l2 demux error: not a radio tuner device
libv4l2: error turning on stream: 장치에 남은 공간이 없음
[b3c02538] v4l2 stream error: cannot start streaming: No space left on device
libv4l2: error turning on stream: 장치에 남은 공간이 없음
[ab200cb8] v4l2 demux error: cannot start streaming: No space left on device
[ab200cb8] v4l2 demux error: not a radio tuner device
libv4l2: error turning on stream: 장치에 남은 공간이 없음
[ab2058c8] v4l2 stream error: cannot start streaming: No space left on device
QObject::~QObject: Timers cannot be stopped from another thread
pi@raspberrypi:~ $
hjoon0510 commented 3 years ago

https://www.e-consystems.com/blog/camera/ultra-hd-usb-camera-for-raspberry-pi-4/ https://www.meccanismocomplesso.org/en/how-to-use-a-generic-usb-webcam-on-raspberry-pi/

sudo apt install cheese (NOTE: Raspbian OS causes an runtime error. So please use fswebcam software) cheese

sudo apt install fswebcam eog fswebcam image.jpg fswebcam image.jpg --no-banner -i 0

sudo apt install ffmpeg ffmpeg -t 120 -f v4l2 -framerate 25 -video_size 640x80 -i /dev/video0 output.mkv

sudo apt-get install libav-tools avconv -t 10 -f video4linux2 -i /dev/video0 video0.avi

sudo service motion restart ; sudo motion

https://www.youtube.com/watch?v=wvebg9CQv_w (2018 asian game soccer, 2h 30m, yotube video)