Menu

Video output problem on Raspberry Pi - Stripes

Help
John-Jood
2020-11-30
2024-05-14
  • John-Jood

    John-Jood - 2020-11-30

    Hello

    I'm trying to use Zbarcam 0.22 to scan qrcodes on my Raspberry Pi. Unfortunately when i try to make picture with command line zbarcam --prescale=300x200 the result is an unreadable striped picture (see attached file).
    However when i use another tool like Raspistill my camera is perfectly wokring.

    Can you please help me with my issue ?

    Please find here the output of zbarcam -v --prescale=300x200 :

    zbar_video_request_size: request size: 300 x 200
    _zbar_video_open: opened camera device /dev/video0 (fd=5)
    _zbar_v4l2_probe: mmal service 16.1 on platform:bcm2835-v4l2 driver bm2835 mmal (version 5.4.72)
    _zbar_v4l2_probe:     capabilities: CAPTURE OVERLAY READWRITE STREAMING
    ERROR: zbar video in v4l2_reset_crop():
        system error: querying crop support (VIDIOC_CROPCAP): Inappropriate ioctl for device (25)
    v4l2_probe_formats: Caller requested an specific size: 300 x 200
    v4l2_probe_formats: current format: BGR3(33524742) 296 x 200 (line=0x390 size=0x30c00)
    v4l2_probe_formats: setting requested size: 300 x 200
    v4l2_probe_formats: final format: BGR3(33524742) 296 x 200 (line=0x378 size=0x2b5c0)
    v4l2_query_controls: Control class User:
    v4l2_query_controls: int        Brightness                       - 0x980900
    v4l2_query_controls: int        Contrast                         - 0x980901
    v4l2_query_controls: int        Saturation                       - 0x980902
    v4l2_query_controls: int        Red Balance                      - 0x98090e
    v4l2_query_controls: int        Blue Balance                     - 0x98090f
    v4l2_query_controls: bool       Horizontal Flip                  - 0x980914
    v4l2_query_controls: bool       Vertical Flip                    - 0x980915
    v4l2_query_controls: menu       Power Line Frequency             - 0x980918
    v4l2_query_controls:            0: Disabled
    v4l2_query_controls:            1: 50 Hz
    v4l2_query_controls:            2: 60 Hz
    v4l2_query_controls:            3: Auto
    v4l2_query_controls: int        Sharpness                        - 0x98091b
    v4l2_query_controls: menu       Color Effects                    - 0x98091f
    v4l2_query_controls:            0: None
    v4l2_query_controls:            1: Black & White
    v4l2_query_controls:            2: Sepia
    v4l2_query_controls:            3: Negative
    v4l2_query_controls:            4: Emboss
    v4l2_query_controls:            5: Sketch
    v4l2_query_controls:            6: Sky Blue
    v4l2_query_controls:            7: Grass Green
    v4l2_query_controls:            8: Skin Whiten
    v4l2_query_controls:            9: Vivid
    v4l2_query_controls:            10: Aqua
    v4l2_query_controls:            11: Art Freeze
    v4l2_query_controls:            12: Silhouette
    v4l2_query_controls:            13: Solarization
    v4l2_query_controls:            14: Antique
    v4l2_query_controls:            15: Set Cb/Cr
    v4l2_query_controls: int        Rotate                           - 0x980922
    v4l2_query_controls: int        Color Effects, CbCr              - 0x98092a
    v4l2_query_controls: Control class MPEG-compression:
    v4l2_query_controls: menu       Video Bitrate Mode               - 0x9909ce
    v4l2_query_controls:            0: Variable Bitrate
    v4l2_query_controls:            1: Constant Bitrate
    v4l2_query_controls: int        Video Bitrate                    - 0x9909cf
    v4l2_query_controls: bool       Repeat Sequence Header           - 0x9909e2
    v4l2_query_controls: int        H264 I-Frame Period              - 0x990a66
    v4l2_query_controls: menu       H264 Level                       - 0x990a67
    v4l2_query_controls:            0: 1
    v4l2_query_controls:            1: 1b
    v4l2_query_controls:            2: 1.1
    v4l2_query_controls:            3: 1.2
    v4l2_query_controls:            4: 1.3
    v4l2_query_controls:            5: 2
    v4l2_query_controls:            6: 2.1
    v4l2_query_controls:            7: 2.2
    v4l2_query_controls:            8: 3
    v4l2_query_controls:            9: 3.1
    v4l2_query_controls:            10: 3.2
    v4l2_query_controls:            11: 4
    v4l2_query_controls: menu       H264 Profile                     - 0x990a6b
    v4l2_query_controls:            0: Baseline
    v4l2_query_controls:            1: Constrained Baseline
    v4l2_query_controls:            2: Main
    v4l2_query_controls:            4: High
    v4l2_query_controls: Control class Camera:
    v4l2_query_controls: menu       Auto Exposure                    - 0x9a0901
    v4l2_query_controls:            0: Auto Mode
    v4l2_query_controls:            1: Manual Mode
    v4l2_query_controls: int        Exposure Time, Absolute          - 0x9a0902
    v4l2_query_controls: bool       Exposure, Dynamic Framerate      - 0x9a0903
    v4l2_query_controls: unknown    Auto Exposure, Bias              - 0x9a0913 - Ignored
    v4l2_query_controls: menu       White Balance, Auto & Preset     - 0x9a0914
    v4l2_query_controls:            0: Manual
    v4l2_query_controls:            1: Auto
    v4l2_query_controls:            2: Incandescent
    v4l2_query_controls:            3: Fluorescent
    v4l2_query_controls:            4: Fluorescent H
    v4l2_query_controls:            5: Horizon
    v4l2_query_controls:            6: Daylight
    v4l2_query_controls:            7: Flash
    v4l2_query_controls:            8: Cloudy
    v4l2_query_controls:            9: Shade
    v4l2_query_controls:            10: Greyworld
    v4l2_query_controls: bool       Image Stabilization              - 0x9a0916
    v4l2_query_controls: unknown    ISO Sensitivity                  - 0x9a0917 - Ignored
    v4l2_query_controls: menu       ISO Sensitivity, Auto            - 0x9a0918
    v4l2_query_controls:            0: Manual
    v4l2_query_controls:            1: Auto
    v4l2_query_controls: menu       Exposure, Metering Mode          - 0x9a0919
    v4l2_query_controls:            0: Average
    v4l2_query_controls:            1: Center Weighted
    v4l2_query_controls:            2: Spot
    v4l2_query_controls: menu       Scene Mode                       - 0x9a091a
    v4l2_query_controls:            0: None
    v4l2_query_controls:            8: Night
    v4l2_query_controls:            11: Sports
    v4l2_query_controls: Control class JPEG-compression:
    v4l2_query_controls: int        Compression Quality              - 0x9d0903
    v4l2_get_supported_resolutions: 3280x2464 (-1.00 fps)
    v4l2_get_supported_resolutions: 2468x1856 (-1.00 fps)
    v4l2_get_supported_resolutions: 1656x1248 (-1.00 fps)
    v4l2_get_supported_resolutions: 844x640 (-1.00 fps)
    v4l2_get_supported_resolutions: 32x32 (-1.00 fps)
    WARNING: zbar video in v4l2_probe_iomode():
        system error: USERPTR failed. Falling back to mmap: Invalid argument (22)
    _zbar_v4l2_probe: using I/O mode: MMAP
    _zbar_window_attach: falling back to XImage
    v4l2_set_format: set new format: BGR3(33524742) 296 x 200 (0x30c00)
    v4l2_init: using 4 buffers (of 4 requested)
    WARNING: zbar processor in _zbar_processor_handle_input():
        output window is closed: user closed display window
    zbar_video_open: closed camera (fd=-1)
    dump_stats: symbol sets allocated   = 4  
    dump_stats:     scanner syms in use = 89   recycled  = 0  
    dump_stats:     image syms in use   = 0   recycled  = 86  
    dump_stats: symbols allocated       = 0  
    dump_stats:      recycled[0]        = 0  
    dump_stats:      recycled[1]        = 0  
    dump_stats:      recycled[2]        = 0  
    dump_stats:      recycled[3]        = 0  
    dump_stats:      recycled[4]        = 0  
    _zbar_qr_destroy: max finder lines = 31x127
    
     
  • Franco

    Franco - 2024-05-14

    This feature is truly exceptional. @suyu

     

Log in to post a comment.