Je souhaite pour mon projet de robot intégré une caméra embarquée. J'arrive bien à récuperer mon flux vidéo en local avec motion mais impossible d'y accéder en distant. J'ai fouillé sur google tout ce que j'ai pu trouver ces derniers jours, refait ma configuration en testant un peu tout ce que je pouvais mais je dois avoué que je suis perdu.... Je ne vois pas ce que j'ai oublié.
voilà ma configuration si jamais je me suis trompé quelque part...<– back
Thread 0
daemon = off
process_id_file = /var/run/motion/motion.pid
setup_mode = off
videodevice = /dev/video0
v4l2_palette = 8
input = 8
norm = 0
frequency = 0
rotate = 0
width = 320
height = 240
framerate = 20
minimum_frame_time = 0
netcam_url = (not defined)
netcam_userpass = (not defined)
netcam_http = 1.0
netcam_proxy = (not defined)
netcam_tolerant_check = off
auto_brightness = off
brightness = 0
contrast = 0
saturation = 0
hue = 0
roundrobin_frames = 1
roundrobin_skip = 1
switchfilter = off
threshold = 1500
threshold_tune = off
noise_level = 32
noise_tune = on
despeckle = EedDl
area_detect = (not defined)
mask_file = (not defined)
smart_mask_speed = 0
lightswitch = 0
minimum_motion_frames = 1
pre_capture = 0
post_capture = 0
gap = 60
max_mpeg_time = 0
output_all = off
output_normal = on
output_motion = off
quality = 75
ppm = off
ffmpeg_cap_new = on
ffmpeg_cap_motion = off
ffmpeg_timelapse = 0
ffmpeg_timelapse_mode = daily
ffmpeg_bps = 500000
ffmpeg_variable_bitrate = 0
ffmpeg_video_codec = swf
ffmpeg_deinterlace = off
snapshot_interval = 0
locate = off
text_right = %Y-%m-%d\n%T-%q
text_left = (not defined)
text_changes = off
text_event = %Y%m%d%H%M%S
text_double = off
target_dir = /tmp/motion
snapshot_filename = %v-%Y%m%d%H%M%S-snapshot
jpeg_filename = %v-%Y%m%d%H%M%S-%q
movie_filename = %v-%Y%m%d%H%M%S
timelapse_filename = %Y%m%d-timelapse
webcam_port = 4567
webcam_quality = 50
webcam_motion = off
webcam_maxrate = 1
webcam_localhost = off
webcam_limit = 0
control_port = 8080
control_localhost = on
control_html_output = on
control_authentication = (not defined)
track_type = 0
track_auto = off
track_port = (not defined)
track_motorx = 0
track_motory = 0
track_maxx = 0
track_maxy = 0
track_iomojo_id = 0
track_step_angle_x = 10
track_step_angle_y = 10
track_move_wait = 10
track_speed = 255
track_stepsize = 40
quiet = on
on_event_start = (not defined)
on_event_end = (not defined)
on_picture_save = (not defined)
on_motion_detected = (not defined)
on_area_detected = (not defined)
on_movie_start = (not defined)
on_movie_end = (not defined)
on_camera_lost = (not defined)
sql_log_image = on
sql_log_snapshot = on
sql_log_mpeg = off
sql_log_timelapse = off
sql_query = insert into security(camera, filename, frame, file_type, time_stamp, event_time_stamp) values('%t', '%f', '%q', '%n', '%Y-%m-%d %T', '%C')
mysql_db = (not defined)
mysql_host = localhost
mysql_user = (not defined)
mysql_password = (not defined)
pgsql_db = (not defined)
pgsql_host = localhost
pgsql_user = (not defined)
pgsql_password = (not defined)
pgsql_port = 5432
video_pipe = (not defined)
motion_video_pipe = (not defined)
thread = No threads
<– back
voilà ce que j'ai quand je lance motion
root@raspberrypi:/# motion
[0] Processing thread 0 - config file /etc/motion/motion.conf
[0] Motion 3.2.12 Started
[0] ffmpeg LIBAVCODEC_BUILD 3482368 LIBAVFORMAT_BUILD 3478785
[0] Thread 1 is from /etc/motion/motion.conf
[1] Thread 1 started
[0] motion-httpd/3.2.12 running, accepting connections
[1] cap.driver: "uvcvideo"
[0] motion-httpd: waiting for data on port TCP 8080
[1] cap.card: "HP Webcam HD 2300"
[1] cap.bus_info: "usb-3f980000.usb-1.2"
[1] cap.capabilities=0x84200001
[1] - VIDEO_CAPTURE
[1] - STREAMING
[1] Config palette index 8 (YU12) doesn't work.
[1] Supported palettes:
[1] 0: YUYV (YUV 4:2:2 (YUYV))
[1] 1: MJPG (MJPEG)
[1] Selected palette YUYV
[1] Test palette YUYV (320x240)
[1] Using palette YUYV (320x240) bytesperlines 640 sizeimage 153600 colorspace 00000008
[1] found control 0x00980900, "Brightness", range -64,64
[1] "Brightness", default -8193, current 0
[1] found control 0x00980901, "Contrast", range 0,50
[1] "Contrast", default 57343, current 0
[1] found control 0x00980902, "Saturation", range 0,100
[1] "Saturation", default 57343, current 45
[1] found control 0x00980903, "Hue", range -100,100
[1] "Hue", default -8193, current 0
[1] found control 0x00980910, "Gamma", range 100,300
[1] "Gamma", default 57343, current 100
[1] mmap information:
[1] frames=4
[1] 0 length=153600
[1] 1 length=153600
[1] 2 length=153600
[1] 3 length=153600
[1] Using V4L2
[1] Resizing pre_capture buffer to 1 items
[1] Started stream webcam server in port 4567
^C[1] Thread exiting
[1] Calling vid_close() from motion_cleanup
[1] Closing video device /dev/video0
[0] httpd - Finishing
[0] httpd Closing
[0] httpd thread exit
[0] Motion terminating