Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Supported dynamic resolution change by DV timings & ioctl() timeout #164

Merged
merged 5 commits into from
Oct 14, 2018
Merged

Commits on Sep 12, 2018

  1. Supported dynamic resolution change by DV timings & timeout

    input_uvc had two problems:
    
    1) It hangs if you disconnect the camera cable (or HDMI cable from capture board) while mjpg-streamer was running on ioctl(VIDIOC_DQBUF). I added select() befure this syscall and now mjpg streamer closes after timeout (5 sec. by default). It can be changed by option -timeout.
    
    2) When using video capture devices, it is possible to change the resolution spontaneously when changing the source. I added support of DV timings events and now mjpg-streamer don't hang on changing source disconnecting/connecting cable - it changes resolution automatically and and continues streaming.
    
    Both these changes are necessary for work Auvidea B101 board:
    https://auvidea.com/b101-hdmi-to-csi-2-bridge-15-pin-fpc/
    
    This is a very promising device for video processing. It's officially supports by Raspberry Pi team:
    https://www.raspberrypi.org/forums/viewtopic.php?f=38&t=120702
    mdevaev committed Sep 12, 2018
    Configuration menu
    Copy the full SHA
    29fb2b9 View commit details
    Browse the repository at this point in the history
  2. minor improvements

    mdevaev committed Sep 12, 2018
    Configuration menu
    Copy the full SHA
    09a9428 View commit details
    Browse the repository at this point in the history
  3. review fixes

    mdevaev committed Sep 12, 2018
    Configuration menu
    Copy the full SHA
    2d18dc7 View commit details
    Browse the repository at this point in the history
  4. small refactoring

    mdevaev committed Sep 12, 2018
    Configuration menu
    Copy the full SHA
    55b1ea3 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    856d237 View commit details
    Browse the repository at this point in the history