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

why transcode audio to aac is not working? #1566

Closed
latel opened this issue Jan 24, 2025 · 2 comments
Closed

why transcode audio to aac is not working? #1566

latel opened this issue Jan 24, 2025 · 2 comments
Labels
question Further information is requested

Comments

@latel
Copy link

latel commented Jan 24, 2025

  1. why transcode audio to aac is not working?
  2. why there is a method SETUP failed: 461 Unsupported transport error log in ffprobe, which also can see in scrypted logs.

Thank you.

go2rtc

log:
  level: debug
  
api:
  listen: ":1984"    # default ":1984", HTTP API port ("" - disabled)

rtsp:
  listen: ":8554"    # RTSP Server TCP port, default - 8554
  default_query: "audio&video"  # optional, default codecs filters ?audio

streams:
  tapo_c120: 
    - rtsp://admin_tapo:[email protected]/stream1
    - "ffmpeg:tapo_c120#audio=aac"
ffprobe rtsp://10.10.10.11:9554/tapo_c120                 
ffprobe version 7.1 Copyright (c) 2007-2024 the FFmpeg developers
  built with Apple clang version 16.0.0 (clang-1600.0.26.4)
  configuration: --prefix=/opt/homebrew/Cellar/ffmpeg/7.1_3 --enable-shared --enable-pthreads --enable-version3 --cc=clang --host-cflags= --host-ldflags='-Wl,-ld_classic' --enable-ffplay --enable-gnutls --enable-gpl --enable-libaom --enable-libaribb24 --enable-libbluray --enable-libdav1d --enable-libharfbuzz --enable-libjxl --enable-libmp3lame --enable-libopus --enable-librav1e --enable-librist --enable-librubberband --enable-libsnappy --enable-libsrt --enable-libssh --enable-libsvtav1 --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-audiotoolbox --enable-neon
  libavutil      59. 39.100 / 59. 39.100
  libavcodec     61. 19.100 / 61. 19.100
  libavformat    61.  7.100 / 61.  7.100
  libavdevice    61.  3.100 / 61.  3.100
  libavfilter    10.  4.100 / 10.  4.100
  libswscale      8.  3.100 /  8.  3.100
  libswresample   5.  3.100 /  5.  3.100
  libpostproc    58.  3.100 / 58.  3.100
[rtsp @ 0x153b053b0] method SETUP failed: 461 Unsupported transport
Input #0, rtsp, from 'rtsp://10.10.10.11:9554/tapo_c120':
  Metadata:
    title           : go2rtc/1.9.8
  Duration: N/A, start: 0.000000, bitrate: N/A
  Stream #0:0: Audio: pcm_alaw, 8000 Hz, mono, s16, 64 kb/s
  Stream #0:1: Video: h264 (High), yuv420p(progressive), 2560x1440, 20 fps, 20 tbr, 90k tbn
@AlexxIT AlexxIT added the question Further information is requested label Jan 24, 2025
@AlexxIT
Copy link
Owner

AlexxIT commented Jan 24, 2025

  1. rtsp -> default_query: audio&video will ask one ANY audio and one ANY video from stream. Your stream has H264 video, PCMA audio and AAC audio. So you getting H264 video and PCMA audio.
  2. By default many apps (including ffprobe) request RTSP UDP. This is not supported by go2rtc. So ffprobe switching to RTSP TCP.

@latel
Copy link
Author

latel commented Jan 24, 2025

understand, thanks

@latel latel closed this as completed Jan 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants