Cannot view motion streaming images in browser
Question
Hi, I installed Motion 3.2.12 on Raspbian and looks like it's running. I can view the control page //localhost:8080 ok. But I cannot see any image when accessing //localhost:8081. Instead, I'm getting a series of strange letters which look like this: --BoundaryString Content-type: image/jpeg Content-Length: 7697 ??
JFIF ?? ? ? ?C
(1#%(:3= 9387@H\N@DWE78PmQW_bgh
I'm really puzzled. Can you kindly help me with what the problem is and how am I able to see streaming images from motion in browser?
Thank you.
Below is the return from http://localhost:8080/0/config/list
<– back
Thread 0
•daemon = on
•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 = 2
•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 = mpeg4
•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 = 8081
•webcam_quality = 50
•webcam_motion = off
•webcam_maxrate = 1
•webcam_localhost = off
•webcam_limit = 0
•control_port = 8080
•control_localhost = off
•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
Environment
Motion version: |
3.2.12 |
ffmpeg version: |
|
Libraries: |
ffmpeg |
Server OS: |
Raspbian |
--
JasonYang - 21 Sep 2013
Answer