How i can save video stream from mjpeg streamer

i want to use pi(3a+) as a dashcam recoder. i installed mjepg streamer (got good framerate compared to motioneye).

i need help in-

1. how can i save the streaming video on pi or on phone (android).

  1. change picture quality or resolution ( how to find mjpeg config setting page)
  2. if any alternate to fulfill to use pi as video recorder.(motioneye worked good but frame rate isnt smooth or maybe i am missing something)

i am new to pi and stuff using guide to make my way.

thanks

By default it stream to a webpage, it’s started with:

mjpg_streamer -i '$input' -o 'output_http.so -p 8082 -n'

You can not save it as a video, but you can save the frames to a folder.
To do this, you need to use the output_file.so plugin.
You can run mjpg-streamer -o "output_file.so --help" to get some info about what parameters you can use (probably -m and -d)
If you want to stream and save the file at the same time, you would need to edit the service file of mjpg-streamer and start it with somethink like:

mjpg_streamer -i "input_uvc.so -d /dev/video0" -o "output_http.so -p 8080" -o "output_file.so -f /path/to/frames -d 1000"

There is no settings page. You can use the input_uvc.so plugin to set stuff like resolution, FPS and JPEG quality.
run this to get the available options:

mjpg_streamer -i "input_uvc.so --help"

As alternatives you can use ffmpeg (also no settings page, you do everything from CLI like with mjpeg-streamer) or if you want a GUI, I would stick to motion.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.