-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
rtmp: unsupported video codec: 9 #1550
Comments
@aler9 do you need any traffic dumps or configuration for this bug? or what is this error means? |
Hello, i think the error speaks for itself, you're trying to publish a video track that uses an unsupported codec. Codec 9 is mpeg4-video: This may be a future enhancement, but at the moment the server doesn't support publishing MPEG4-video tracks. |
is there a way to use FFMPEG as encoder command? so that we can feed this feed to ffmpeg and give rtsp webrtc? i tired all ffmpeg commands that i know and it was a failure in the drone i can only indicate the RTMP path which is given inside the MEDATEX server example is : RTMP://10.250.200.117:1953/drone1 " this is the stream which is installed in the drone remote" how i can get the feed and use ffmepg to encode it? |
If the Drone requires a server, you have to use a RTMP server that supports the MPEG4-video codec. Maybe nginx-rtmp supports it. After you found a server, you can use ffmpeg to pull the stream from the RTMP server, convert it and publish it to MediaMTX. Otherwise, you can try to develop the feature yourself. Personally in this moment i haven't enough documentation about MPEG4-video, its difference with H264, how it's streamed with RTMP, so i don't have a way to quickly fix the issue. |
we can not use the ffmpeg inside MeduaMTX directly? like the below sample you gave?
|
@aler9 man you are the best :)) i will test it soon and give you feedback as soon as possible :) just question : does this mean i can send the RTMP and hope to get the streams as needed in RTSP? im abit confused that this codec support went to RTSP while in main page RTMP still showing only audio support |
@Tabarane wait a second, i just added the track definition to the server, that's just the first step into implementing this. Since v0.22.1, MPEG4-video tracks published to the server (through RTSP) are not recognized as "generic" but recognized as "MPEG4-video" tracks. The second step will be implementing decoding MPEG4-video tracks from RTSP to access units (base unit of the codec) and vice versa. Third step will be implementing encoding MPEG4-video tracks from access units to RTMP. In this way, it will be possible to publish MPEG4-video tracks from RTMP and read them with RTMP. BTW, MPEG4-video is an alias for MPEG-4 part 2 video, that is an alias for DivX / Xvid. |
understood, so this is only first step in 4 steps process :)) can not wait until it available , there is alot of things dependable on it as there is alot of DJI controller that purely using this only and i have around 35 drone plus |
@Tabarane please run this nightly release, make a drone publish to it for 10 seconds and post logs. |
Hello, this should be fixed by #2808. Please test this nightly release and let me know if it works (click on artifacts, binaries): |
This issue is mentioned in release v1.4.1 🚀 |
This issue is being locked automatically because it has been closed for more than 6 months. |
Which version are you using?
v0.21.5
Which operating system are you using?
Describe the issue
Error : (unsupported video codec: 9)
Describe how to replicate the issue
Did you attach the server logs?
no
Did you attach a network dump?
no
The text was updated successfully, but these errors were encountered: