-
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
Publishing AV1 over RTSP from FFmpeg does not work (Clock rate not found) #2261
Comments
Hello, FFmpeg doesn't support publishing AV1 with RTSP yet. Open an issue in the FFmpeg bug tracker. |
Hello It connects well, preroll,playing and so on. When I try to connect to the rtsp address using latest vlc, latest ffplay or gstreamer, I can't get a picture. Any help will be very appreciated |
@RobotnickIsrael here's a tested GStreamer pipeline that shows how to encode a stream in AV1 and send it with RTSP to the server:
|
Hi @aler9 Then I take these files and send them to mediamtx: gstreamer gives an error after about 10 seconds of flowing pipeline: When I try to connect to the rtsp server on that path I get nothing, with both original files (tried with ffmpeg+vlc+gstreamer). mediamtx logs: Now, If I manage to connect with ffplay before the session was destroyed (why would it stop publish if there are no clients? Any ideas whats going on? *I try to pre-encode the file so it will be easier to stream it, no need to encode av1 on runtime. |
@RobotnickIsrael i tested the commands you provided and in my case everything worked perfectly. First i encoded 40 seconds of a test stream with FFmpeg:
Then i used GStreamer to parse the file and send its content to the server through RTSP:
result:
Make sure that the versions of FFmpeg and GStreamer you're using are both up to date. I used GStreamer 1.24.2, built from source:
and FFmpeg 5.1, built from source:
IMHO ready-to-use packages of GStreamer and FFmpeg cannot be trusted since AV1 is too cutting edge. If you still have problems, this is an issue that is not related in any way to the server, so you can move the discussion into the community / mailing list of GStreamer or FFmpeg. |
This issue is being locked automatically because it has been closed for more than 6 months. |
Which version are you using?
git master (e74c458)
Which operating system are you using?
Describe the issue
Publishing AV1 from FFmpeg over RTSP results in a "400 - Bad Request":
Describe how to replicate the issue
ffmpeg -stream_loop -1 -re -i Videos/Wanderers.mov -pix_fmt yuv420p -c:v libsvtav1 -preset 8 -b:v 2000k -an -f rtsp rtsp://localhost:8554/pillowstrim
Did you attach the server logs?
yes
Did you attach a network dump?
no
Other info
FFmpeg output:
The text was updated successfully, but these errors were encountered: