-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
grabber.start()出现问题 #2299
Comments
What do you get if you call the ffprobe program on that URL? |
I've gone through it again. The problem I encountered is that the audio encoding cannot be recognized. But strangely, I've already closed the audio channel:grabber.setAudioChannels(0); The following is the output of ffprobe with some sensitive information replaced: [1]+ 已完成 ffprobe rtsp://admin:[email protected]:554/Streaming/tracks/401?starttime=20241119t154020 The following is the output of the conversion in Java code: |
I see. I guess we should skip over streams that have no codecs. This should be fixed with commit 295e89f. |
[rtsp @ 0x7fbbc024a480] Could not find codec parameters for stream 1 (Audio: none, 16000 Hz, mono): unknown codec
Consider increasing the value for the 'analyzeduration' (10000) and 'probesize' (10000000) options
Input #0, rtsp, from 'rtsp://admin:[email protected]:554/Streaming/tracks/401?starttime=20241119t154020&endtime=20241119t154025z':
Metadata:
title : HIK Media Server V4.73.300
comment : HIK Media Server Session Description : standard
Duration: -3767106:-29:-10.-32, start: 0.041000, bitrate: N/A
Stream #0:0: Video: hevc (Main), yuvj420p(pc, bt709), 1920x1080, 24.92 tbr, 90k tbn
Stream #0:1: Audio: none, 16000 Hz, mono
org.bytedeco.javacv.FFmpegFrameGrabber$Exception: avcodec_find_decoder() error: Unsupported audio format or codec not found: 0. (For more details, make sure FFmpegLogCallback.set() has been called.)
The text was updated successfully, but these errors were encountered: