1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

RPi + Other Software Help with 18ec:5555 Arkmicro Technologies Inc.

Discussion in 'Hardware Support' started by bob21, 22 May 2020.

  1. bob21

    bob21 Member

    Messages:
    41
    Hardware:
    RPi3
    Thanks, will do!
     
  2. bob21

    bob21 Member

    Messages:
    41
    Hardware:
    RPi3
    Hi again Paulchen and TP.. I hope you are both well.

    I am sorry to necro this thread. But after months of near flawless operation with
    Alpha 9, I am experiencing the same issues again. I turned my box on today, and the grabber (STK1160) is not detected.

    It is listed under v4l2-ctl, and I have tried to set the grabber with v4l2-ctrl -i, but the grabber is not usable.. I've not changed any configurations.. so not sure why I am suddenly getting this issue again?

    Here are some logs:

    Code:
    2021-01-07T13:49:31.781Z [hyperiond V4L2:/DEV/VIDEO0] (INFO) configured v4l device: /dev/video0
    2021-01-07T13:49:31.782Z [hyperiond V4L2:/DEV/VIDEO0] (DEBUG) (V4L2Grabber.cpp:582:init_device()) Set device input to: Composite0
    2021-01-07T13:49:31.937Z [hyperiond V4L2:/DEV/VIDEO0] (DEBUG) (V4L2Grabber.cpp:601:init_device()) Video standard=PAL
    2021-01-07T13:49:31.938Z [hyperiond V4L2:/DEV/VIDEO0] (DEBUG) (V4L2Grabber.cpp:696:init_device()) Set resolution to width=720 height=576
    2021-01-07T13:49:31.939Z [hyperiond V4L2:/DEV/VIDEO0] (DEBUG) (V4L2Grabber.cpp:727:init_device()) Pixel format=UYVY
    2021-01-07T13:49:31.975Z [hyperiond V4L2:/DEV/VIDEO0] (INFO) Started
    2021-01-07T13:49:31.975Z [hyperiond V4L2:/dev/video0] (DEBUG) (GrabberWrapper.cpp:48:start()) Grabber start()
    2021-01-07T13:49:31.777Z [hyperiond BOBLIGHT] (DEBUG) (BoblightServer.cpp:28:BoblightServer()) Instance created
    2021-01-07T13:49:31.976Z [hyperiond HYPERION] (INFO) Hyperion instance 'First LED Hardware instance' has been started
    2021-01-07T13:49:31.778Z [hyperiond COMPONENTREG] (DEBUG) (ComponentRegister.cpp:36:setNewComponentState()) LED device: enabled
    2021-01-07T13:49:31.922Z [hyperiond WEBSERVER] (DEBUG) (WebServer.cpp:91:handleSettingsUpdate()) Apply Webserver settings
    2021-01-07T13:49:31.922Z [hyperiond WEBSERVER] (DEBUG) (WebServer.cpp:91:handleSettingsUpdate()) Apply Webserver settings
    2021-01-07T13:49:31.922Z [hyperiond WEBSERVER] (DEBUG) (WebServer.cpp:109:handleSettingsUpdate()) Set document root to: :/webconfig
    2021-01-07T13:49:31.922Z [hyperiond WEBSERVER] (DEBUG) (WebServer.cpp:109:handleSettingsUpdate()) Set document root to: :/webconfig
    2021-01-07T13:49:31.925Z [hyperiond WEBSERVER] (INFO) Started on port 8090 name 'Hyperion Webserver'
    2021-01-07T13:49:31.956Z [hyperiond WEBSERVER] (DEBUG) (WebServer.cpp:175:handleSettingsUpdate()) Setup SSL certificate
    2021-01-07T13:49:31.959Z [hyperiond WEBSERVER] (DEBUG) (WebServer.cpp:191:handleSettingsUpdate()) Setup private SSL key
    2021-01-07T13:49:31.961Z [hyperiond WEBSERVER] (INFO) Started on port 8092 name 'Hyperion Webserver'
    2021-01-07T13:49:32.015Z [hyperiond HYPERION] (DEBUG) (PriorityMuxer.cpp:351:setCurrentTime()) Set visible priority to 0
    2021-01-07T13:49:32.017Z [hyperiond SMOOTHING] (DEBUG) (LinearColorSmoothing.cpp:701:selectConfig()) cfg [2]:  Type: linear - Time: 200 ms, outputRate 25.000000 Hz, interpolationRate: 25.000000 Hz, timer: 40 ms, Dithering: 0, Decay: 1.000000 -> HalfTime: 100.000000 ms
    2021-01-07T13:49:32.019Z [hyperiond HYPERION] (DEBUG) (Hyperion.cpp:559:handlePriorityChangedLedDevice()) priority[0], previousPriority[255]
    2021-01-07T13:49:32.020Z [hyperiond HYPERION] (DEBUG) (Hyperion.cpp:569:handlePriorityChangedLedDevice()) new source available -> switch LED-Device on
    2021-01-07T13:49:32.127Z [hyperiond V4L2:/DEV/VIDEO0] (ERROR) Frame too small: 828010 != 829440
    Last line shows frame too small, like before.

    Has there been any progress on the bug fixes with the capture cards? :)
     
  3. TPmodding

    TPmodding Administrator Staff Member Administrator

    Messages:
    1,978
    Hardware:
    RPi1/Zero, RPi2, RPi3, +Arduino, +nodeMCU/ESP8266
    did you set up the grabber?
    2021-01-07T13:49:31.938Z [hyperiond V4L2:/DEV/VIDEO0] (DEBUG) (V4L2Grabber.cpp:696:init_device()) Set resolution to width=720 height=576
    in web-ui to this width and height? or is it on auto?
     
  4. jeroen warmerdam

    jeroen warmerdam Raspberry 3B / APA102 / Hyperion.NG relaisbox

    Messages:
    368
    Hardware:
    RPi3
  5. bob21

    bob21 Member

    Messages:
    41
    Hardware:
    RPi3
    It was on auto, that has always worked. But I have just set to 1920x1080 via the web UI (I am assuming this is the resolution of the scaler?) but the log still shows it to be 720x576:

    Code:
    2021-01-08T11:11:42.474Z [hyperiond V4L2:/DEV/VIDEO0] (INFO) configured v4l device: /dev/video0
    2021-01-08T11:11:42.474Z [hyperiond V4L2:/DEV/VIDEO0] (DEBUG) (V4L2Grabber.cpp:582:init_device()) Set device input to: Composite0
    2021-01-08T11:11:42.475Z [hyperiond V4L2:/DEV/VIDEO0] (DEBUG) (V4L2Grabber.cpp:601:init_device()) Video standard=PAL
    2021-01-08T11:11:42.475Z [hyperiond V4L2:/DEV/VIDEO0] (DEBUG) (V4L2Grabber.cpp:696:init_device()) Set resolution to width=720 height=576
    2021-01-08T11:11:42.476Z [hyperiond V4L2:/DEV/VIDEO0] (DEBUG) (V4L2Grabber.cpp:727:init_device()) Pixel format=UYVY
    2021-01-08T11:11:42.501Z [hyperiond V4L2:/DEV/VIDEO0] (INFO) Started
    2021-01-08T11:11:42.502Z [hyperiond V4L2:/dev/video0] (DEBUG) (GrabberWrapper.cpp:48:start()) Grabber start()
    
    Here is my v4l output, it also shows 720x576:

    Code:
    Driver Info:
       Driver name  : stk1160
       Card type  : stk1160
       Bus info  : usb-3f980000.usb-1.5
       Driver version  : 5.4.79
       Capabilities  : 0x85200001
         Video Capture
         Read/Write
         Streaming
         Extended Pix Format
         Device Capabilities
       Device Caps  : 0x05200001
         Video Capture
         Read/Write
         Streaming
         Extended Pix Format
    Priority: 2
    Video input : 0 (Composite0: ok)
    Video Standard = 0x000000ff
       PAL-B/B1/G/H/I/D/D1/K
    Format Video Capture:
       Width/Height  : 720/576
       Pixel Format  : 'UYVY' (UYVY 4:2:2)
       Field  : Interlaced
       Bytes per Line  : 1440
       Size Image  : 829440
       Colorspace  : SMPTE 170M
       Transfer Function : Default (maps to Rec. 709)
       YCbCr/HSV Encoding: Default (maps to ITU-R 601)
       Quantization  : Default (maps to Limited Range)
       Flags  :
    Streaming Parameters Video Capture:
       Frames per second: 25.000 (25/1)
       Read buffers  : 2
    
    User Controls
    
      brightness 0x00980900 (int)  : min=0 max=255 step=1 default=128 value=128 flags=slider
      contrast 0x00980901 (int)  : min=0 max=127 step=1 default=64 value=64 flags=slider
      saturation 0x00980902 (int)  : min=0 max=127 step=1 default=64 value=64 flags=slider
      hue 0x00980903 (int)  : min=-128 max=127 step=1 default=0 value=0 flags=slider
      chroma_agc 0x0098091d (bool)  : default=1 value=1 flags=update
      chroma_gain 0x00980924 (int)  : min=0 max=127 step=1 default=40 value=15 flags=inactive, slider, volatile
    
    It shows composite, which is correct...

    When I install mplayer and run that command I get a lot of output, it looks as though there are a lot of errors:

    Code:
    Creating config file: /root/.mplayer/config
    MPlayer 1.3.0 (Debian), built with gcc-8 (C) 2000-2016 MPlayer Team
    do_connect: could not connect to socket
    connect: No such file or directory
    Failed to open LIRC support. You will not be able to use your remote control.
    
    Playing tv://.
    TV file format detected.
    Selected driver: v4l2
     name: Video 4 Linux 2 input
     author: Martin Olschewski <[email protected]>
     comment: first try, more to come ;-)
    Selected device: stk1160
     Capabilities:  video capture  read/write  streaming
     supported norms: 0 = NTSC; 1 = NTSC-M; 2 = NTSC-M-JP; 3 = NTSC-M-KR; 4 = NTSC-443; 5 = PAL; 6 = PAL-BG; 7 = PAL-H; 8 = PAL-I; 9 = PAL-DK; 10 = PAL-M; 11 = PAL-N; 12 = PAL-Nc; 13 = PAL-60; 14 = SECAM; 15 = SECAM-B; 16 = SECAM-G; 17 = SECAM-H; 18 = SECAM-DK; 19 = SECAM-L; 20 = SECAM-Lc;
     inputs: 0 = Composite0; 1 = Composite1; 2 = Composite2; 3 = Composite3; 4 = S-Video;
     Current input: 0
     Current format: UYVY
    Selected input hasn't got a tuner!
    v4l2: ioctl set mute failed: Invalid argument
    vo: couldn't open the X11 display ()!
    vo: couldn't open the X11 display ()!
    vo: couldn't open the X11 display ()!
    SDL SetVideoMode failed: OpenGL not available
    [gl] using extended formats. Use -vo gl:nomanyfmts if playback fails.
    ==========================================================================
    Opening video decoder: [raw] RAW Uncompressed Video
    Could not find matching colorspace - retrying with -vf scale...
    Opening video filter: [scale]
    Movie-Aspect is undefined - no prescaling applied.
    [swscaler @ 0x200d840] bicubic scaler, from uyvy422 to yuv422p using C
    [swscaler @ 0x200d840] using unscaled uyvy422 -> yuv422p special converter
    VO: [gl_nosw] 720x576 => 720x576 Planar 422P
    SDL SetVideoMode failed: OpenGL not available
    FATAL: Cannot initialize video driver.
    VDecoder init failed :(
    Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
    libavcodec version 58.35.100 (external)
    Selected video codec: [ffrawuyvy] vfm: ffmpeg (RAW UYVY)
    ==========================================================================
    Audio: no sound
    Starting playback...
    v4l2: select timeout
    Movie-Aspect is undefined - no prescaling applied.
    VO: [gl_nosw] 720x576 => 720x576 Planar 422P
    SDL SetVideoMode failed: OpenGL not available
    FATAL: Cannot initialize video driver.
    Movie-Aspect is undefined - no prescaling applied.
    VO: [gl_nosw] 720x576 => 720x576 Planar 422P
    SDL SetVideoMode failed: OpenGL not available
    FATAL: Cannot initialize video driver.
    v4l2: select timeout
    Movie-Aspect is undefined - no prescaling applied.
    VO: [gl_nosw] 720x576 => 720x576 Planar 422P
    SDL SetVideoMode failed: OpenGL not available
    FATAL: Cannot initialize video driver.
    Movie-Aspect is undefined - no prescaling applied.
    VO: [gl_nosw] 720x576 => 720x576 Planar 422P
    SDL SetVideoMode failed: OpenGL not available
    FATAL: Cannot initialize video driver.
    v4l2: select timeout
    Movie-Aspect is undefined - no prescaling applied.
    VO: [gl_nosw] 720x576 => 720x576 Planar 422P
    SDL SetVideoMode failed: OpenGL not available
    FATAL: Cannot initialize video driver.
    Movie-Aspect is undefined - no prescaling applied.
    VO: [gl_nosw] 720x576 => 720x576 Planar 422P
    SDL SetVideoMode failed: OpenGL not available
    FATAL: Cannot initialize video driver.
    v4l2: select timeout
    Movie-Aspect is undefined - no prescaling applied.
    VO: [gl_nosw] 720x576 => 720x576 Planar 422P
    SDL SetVideoMode failed: OpenGL not available
    FATAL: Cannot initialize video driver.
    Movie-Aspect is undefined - no prescaling applied.
    VO: [gl_nosw] 720x576 => 720x576 Planar 422P
    SDL SetVideoMode failed: OpenGL not available
    FATAL: Cannot initialize video driver.
    v4l2: select timeout
    Movie-Aspect is undefined - no prescaling applied.
    VO: [gl_nosw] 720x576 => 720x576 Planar 422P
    SDL SetVideoMode failed: OpenGL not available
    FATAL: Cannot initialize video driver.
    
    FATAL: Could not initialize video filters (-vf) or video output (-vo).
    
    v4l2: select timeout
    v4l2: ioctl set mute failed: Invalid argument
    v4l2: 0 frames successfully processed, 1 frames dropped.
    
    Exiting... (End of file)
    
    Where do I go from here?
     
  6. bob21

    bob21 Member

    Messages:
    41
    Hardware:
    RPi3
    Well, idk why but I set back to auto and it's detected and working again! I wonder how long it will last this time!?
     
  7. jeroen warmerdam

    jeroen warmerdam Raspberry 3B / APA102 / Hyperion.NG relaisbox

    Messages:
    368
    Hardware:
    RPi3
  8. bob21

    bob21 Member

    Messages:
    41
    Hardware:
    RPi3
    I can get that, but I wonder if that will actually help? The STK1160 is supposed to be fully supported. Is that not the case now?

    No one seems to know why the STK1160 isn't working... basically *the* main supported card (or at the very least one of the 2 supported cards)... I don't have a problem dropping money on another card if that's the solution, but I do have a problem ordering another card, waiting 2 weeks, only to find it's got exactly the same issues when it gets here because it's an alpha bug and not the card. Why does it work 99% of the time? I hadn't changed anything on my end.

    In any case, it's working again now. If all I have to do is set to manual then back to auto every 3 months, I can do that while I wait for non-alpha versions. Maybe the next step is to open an issue on git so this can be investigated.

    Also, I noticed in the reviews of the above card that the output resolution is limited to 720x576... the same as what I see for my card in the logs, so that seems to be common with these cheapo capture cards.
     
  9. jeroen warmerdam

    jeroen warmerdam Raspberry 3B / APA102 / Hyperion.NG relaisbox

    Messages:
    368
    Hardware:
    RPi3

    I dont know what is the problem with STK1160 but it can be the card itself inside, chip coming loose / have to solder it, gets too hot or whatever. ;)

    I mean software doesn't change on her own so mostly when these thing happen is my experience that hardware is faulty or just faulty enough to have sometimes problems and other times it works. Especially when it worked before on Hyperion.ng

    The capture card is set at my friend no mistaken 1080p in Hyperion.ng 2.09 Alpha
    And you quote that the hdmi cards promise 1080p but in fact never go higher then 720p.
    I have to say that my AV grabber receives 1080p from the converter but output is 720p . These are analog and not digital. Maybe the problem is the hdmi capture cards have to do too much to run on the power supply from usb and port cant deliver that high and card scales down. Who knows.
     
    Last edited: 10 January 2021
    • Like Like x 1
  10. bob21

    bob21 Member

    Messages:
    41
    Hardware:
    RPi3
    Ok thanks. Well ok then, I'll grab one when it's on sale tomorrow and we'll see how it goes. I'll post with an update when I know.