Closed kaiiorg closed 2 years ago
Today, I tried using the unmodified client-publish-h264
example, publishing to rtsp-simple-server, and am getting the same errors and similar image distortion via both ffplay and vlc.
Hello, this can be done with gortsplib with a little work, but in my opinion a simpler solutions consists in using ffmpeg, that allows to perform this without writing any code:
ffmpeg -re -i rtsp://original-camera -c copy -f rtsp rtsp://rtsp-server
I'll see if I can get that to work, but it might be better for my particular usecase if I don't have any additional binaries or subprocesses to worry about. I don't have a lot of flash space available to me and the third party I'm working with should be given as few components as I can manage.
A working example that shows how to read and republish tracks has been added here.
Awesome. Thanks!
This issue is being locked automatically because it has been closed for more than 6 months. Please open a new issue in case you encounter a similar problem.
This may be a weird usecase, but I'm trying to use gortsplib to read an RTSP stream from a camera, then publish it to an endpoint configured on rtsp-simple-server. I've attempted to do so myself, but my naive attempt isn't working correctly. See kaiiorg/client-read-publish. For the record, I'm new to Go, so I may have committed some cardinal sin without realizing; sorry for that.
Additional information:
paths
key was modified:ffplay.exe -x 500 -rtsp_transport tcp "rtsp://192.168.62.145:8554/ExampleStream"
ffplay.exe -x 500 -rtsp_transport tcp "rtsp://192.168.62.145:8554/PublishedStream"
Full Usecase
One of the requirements of the program I'm writing is to: