How to play rtp_mpegts stream on client side #2650
-
Hello, I have ffmpeg stream with -f rtp_mpegts option. Pion go part recieves stream however video cannot work. Is there any way to play rtp_mpegts stream on client side video tag? Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments
-
Hey @donmezburak Browser's don't support mpegts via RTP. What codecs are you forwarding? You will need to unpack the mpegts and then re-packetize unfortunately. Happy to help with the code for that! https://github.com/flavioribeiro/donut/ does most of the work already! Instead of mpegts via SRT it will be via RTP. |
Beta Was this translation helpful? Give feedback.
-
Hi Sean, I am using libx264 codec. Thanks for your answer. actually we are serving live stream of computer screens and I want to record stream on server side but I could not due to rtp protocol. Probably I changed our protocol option. |
Beta Was this translation helpful? Give feedback.
-
@donmezburak Since you are using ffmpeg and RTP could you do something like rtp-forwarder instead? Do you have to use mpegts inside RTP? |
Beta Was this translation helpful? Give feedback.
-
No, I do not have to use mpegts. I just used that to save stream easily. You are great man. I will look rtp-forwarder, probably it fixes my issue. |
Beta Was this translation helpful? Give feedback.
@donmezburak Since you are using ffmpeg and RTP could you do something like rtp-forwarder instead?
Do you have to use mpegts inside RTP?