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

gen2-rtsp-streaming appears to be broken on macOS 13.1 with M1 #444

Open
artificiel opened this issue Jan 13, 2023 · 1 comment
Open

gen2-rtsp-streaming appears to be broken on macOS 13.1 with M1 #444

artificiel opened this issue Jan 13, 2023 · 1 comment

Comments

@artificiel
Copy link

hello! trying the gen2-rtsp-streaming does this:

gen2-rtsp-streaming % python3 main.py
Available devices:
[0] 18443010B1A3BD0800 [X_LINK_UNBOOTED]
Setup finished, RTSP stream available under "rtsp://localhost:8554/preview"

all seems good; then when starting a stream in another terminal:

Traceback (most recent call last):
  File "(...)depthai-experiments/gen2-rtsp-streaming/main.py", line 35, in do_create_element
    return Gst.parse_launch(self.launch_string)
gi.repository.GLib.Error: gst_parse_error: no element "appsrc" (1)

note that in addition to the brew gstreamer things I needed a pip install gobject PyGObject, and that the M1 brew adjustment referenced in https://stackoverflow.com/q/64882584 are no longer needed.

FYI output in the ffplay terminal (confirms the server is not working):

~ % ffplay -fflags nobuffer -fflags discardcorrupt -flags low_delay -framedrop rtsp://localhost:8554/preview
ffplay version 5.1.2 Copyright (c) 2003-2022 the FFmpeg developers
  built with Apple clang version 14.0.0 (clang-1400.0.29.202)
  configuration: --prefix=/opt/homebrew/Cellar/ffmpeg/5.1.2_1 --enable-shared --enable-pthreads --enable-version3 --cc=clang --host-cflags= --host-ldflags= --enable-ffplay --enable-gnutls --enable-gpl --enable-libaom --enable-libbluray --enable-libdav1d --enable-libmp3lame --enable-libopus --enable-librav1e --enable-librist --enable-librubberband --enable-libsnappy --enable-libsrt --enable-libtesseract --enable-libtheora --enable-libvidstab --enable-libvmaf --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libxvid --enable-lzma --enable-libfontconfig --enable-libfreetype --enable-frei0r --enable-libass --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libspeex --enable-libsoxr --enable-libzmq --enable-libzimg --disable-libjack --disable-indev=jack --enable-videotoolbox --enable-neon
  libavutil      57. 28.100 / 57. 28.100
  libavcodec     59. 37.100 / 59. 37.100
  libavformat    59. 27.100 / 59. 27.100
  libavdevice    59.  7.100 / 59.  7.100
  libavfilter     8. 44.100 /  8. 44.100
  libswscale      6.  7.100 /  6.  7.100
  libswresample   4.  7.100 /  4.  7.100
  libpostproc    56.  6.100 / 56.  6.100
rtsp://localhost:8554/preview: Server returned 400 Bad Request
1   HIToolbox                           0x000000019ead45c8 _ZN15MenuBarInstance22EnsureAutoShowObserverEv + 120
2   HIToolbox                           0x000000019ead4188 _ZN15MenuBarInstance14EnableAutoShowEv + 60
3   HIToolbox                           0x000000019ea77310 SetMenuBarObscured + 372
4   HIToolbox                           0x000000019ea76ee8 _ZN13HIApplication15HandleActivatedEP14OpaqueEventRefhP15OpaqueWindowPtrh + 172
5   HIToolbox                           0x000000019ea70fcc _ZN13HIApplication13EventObserverEjP14OpaqueEventRefPv + 296
6   HIToolbox                           0x000000019ea37cd0 _NotifyEventLoopObservers + 176
7   HIToolbox                           0x000000019ea7096c AcquireEventFromQueue + 432
8   HIToolbox                           0x000000019ea5fc84 ReceiveNextEventCommon + 320
9   HIToolbox                           0x000000019ea5fb2c _BlockUntilNextEventMatchingListInModeWithFilter + 72
10  AppKit                              0x000000019860c424 _DPSNextEvent + 632
11  AppKit                              0x000000019860b5b4 -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 728
12  libSDL2-2.0.0.dylib                 0x00000001012eb084 Cocoa_PumpEventsUntilDate + 172
13  libSDL2-2.0.0.dylib                 0x00000001012eb1dc Cocoa_PumpEvents + 56
14  libSDL2-2.0.0.dylib                 0x0000000101266b70 SDL_PumpEventsInternal + 64
15  ffplay                              0x00000001007c3a74 main + 1832
16  dyld                                0x0000000194f83e50 start + 2544
@Erol444
Copy link
Member

Erol444 commented Jan 21, 2023

Hi @artificiel ,
Looks a bit like version problem. Are versions of all libraries correct (math to the required ones)? Might be an issue because it's on M1 and some lib doesn't support this platform.
Thanks, Erik

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants