[FFmpeg-devel] Compensating for mistakes of video encoder rtsp server implementations
Hayden Myers
HMyers at skylinenet.net
Mon Jun 28 23:37:57 EEST 2021
How does one approach the problem of an encoder's incorrect implementation of the rtsp protocol? My non-working example here is a Coretec mpeg-4 encoder. I'm not sure the manufacturer is still in business, but they're still in use. Using rtsp, the encoder sends no response to a setup message. After debugging, I learned the encoder wants the client_port pair parameter, a valid item for unicast streams. This is a multicast stream and client_port doesn't apply.
This isn't the first time I've experienced encoders not implementing the spec as written with regards to the port / client_port parameter. The client_port parameter has shown up in the setup reply for multicast streams instead of the port parameter. This results in a proper non matching transport in server reply error from ffmpeg. If udp_multicast is set as the rtsp_transport, the transport is set properly.
I'd like to patch, but see the solution as dirty and likely not accepted by the masses.
Hayden Myers
Principal Software Engineer
t: (410) 590-2027
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image478870.png
Type: image/png
Size: 36556 bytes
Desc: image478870.png
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20210628/406798ce/attachment.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image316005.png
Type: image/png
Size: 7149 bytes
Desc: image316005.png
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20210628/406798ce/attachment-0001.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image232390.png
Type: image/png
Size: 842 bytes
Desc: image232390.png
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20210628/406798ce/attachment-0002.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image821572.png
Type: image/png
Size: 817 bytes
Desc: image821572.png
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20210628/406798ce/attachment-0003.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image355525.png
Type: image/png
Size: 919 bytes
Desc: image355525.png
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20210628/406798ce/attachment-0004.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image971501.png
Type: image/png
Size: 653 bytes
Desc: image971501.png
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20210628/406798ce/attachment-0005.png>
More information about the ffmpeg-devel
mailing list