oddity-ai / oddity-rtsp

Oddity's suite of tools for handling RTSP streams.
Apache License 2.0
45 stars 8 forks source link

ffplay Unsupported Transport #29

Closed simon-fu closed 8 months ago

simon-fu commented 8 months ago

steps:

  1. Build and run
    
    $ git clone git@github.com:oddity-ai/oddity-rtsp.git

$ cd oddity-rtsp

$ cargo build --release

$ echo 'server: host: 0.0.0.0 port: 5554 media:

$ LOG=oddity_rtsp_server=info target/release/oddity-rtsp-server /tmp/config.yaml


2.  play
```shell
$ ffplay "rtsp://localhost:5554/example"
ffplay version 6.1 Copyright (c) 2003-2023 the FFmpeg developers
  built with Apple clang version 15.0.0 (clang-1500.1.0.2.5)
  configuration: --prefix=/opt/homebrew/Cellar/ffmpeg/6.1-with-options_3 --enable-shared --cc=clang --host-cflags= --host-ldflags='-Wl,-ld_classic' --enable-gpl --enable-libaom --enable-libdav1d --enable-libmp3lame --enable-libopus --enable-libsnappy --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libx265 --enable-libfontconfig --enable-libfreetype --enable-frei0r --enable-libass --enable-demuxer=dash --enable-opencl --enable-audiotoolbox --enable-videotoolbox --enable-neon --disable-htmlpages --enable-libfdk-aac --enable-libspeex --enable-nonfree
  libavutil      58. 29.100 / 58. 29.100
  libavcodec     60. 31.102 / 60. 31.102
  libavformat    60. 16.100 / 60. 16.100
  libavdevice    60.  3.100 / 60.  3.100
  libavfilter     9. 12.100 /  9. 12.100
  libswscale      7.  5.100 /  7.  5.100
  libswresample   4. 12.100 /  4. 12.100
  libpostproc    57.  3.100 / 57.  3.100
[rtsp @ 0x124818640] method SETUP failed: 461 Unsupported Transport
Input #0, rtsp, from 'rtsp://localhost:5554/example':    0B f=0/0
  Metadata:
    title           : Big Buck Bunny
  Duration: N/A, start: 0.083333, bitrate: N/A
  Stream #0:0: Video: h264 (High), yuv420p(progressive), 1280x720 [SAR 1:1 DAR 16:9], 24 fps, 24 tbr, 90k tbn
2024-02-18 17:26:22.926 ffplay[85388:35015790] TSM AdjustCapsLockLEDForKeyTransitionHandling - _ISSetPhysicalKeyboardCapsLockLED Inhibit

And there is no sound when playing.

simon-fu commented 8 months ago

Only RTSP over TCP (interleaved) is supported right now I got it, sorry for disturbing.