Jordan Sim
Jordan Sim

Reputation: 155

Can RTP payload type be changed in ffmpeg

I'm using ffmpeg to generate an RTP stream for testing purposes, but I need to change the RTP payload type to 107. Currently, it's 96.

This is the command I use to generate the stream:

ffmpeg -re -i video.h264 -an -c:v copy -f rtp -sdp_file localhost.sdp "rtp://127.0.0.1:1234"

Is it possible to change the payload type?

Thanks.

Upvotes: 2

Views: 1912

Answers (1)

cydonia
cydonia

Reputation: 78

Use -payload_type 107 before the output url, like: ... -payload_type 107 "rtp://..."

Upvotes: 5

Related Questions