Play audio and video rtp with ffmpeg

962 views
Skip to first unread message

Chen Cong

unread,
Apr 12, 2017, 10:42:24 PM4/12/17
to discuss-webrtc
Hi,

I use janus to forward rtp packet and use ffplay to play both audio and video rtp.


ffplay need a sdp file to play rtp packet, so I make a sdp file ,such as :


m=audio 1234 RTP/AVP 107
a=rtpmap:107 H264
c=IN IP4 192.168.1.165
m=video 1235 RTP/AVP 111
a=rtpmap:111 opus/48000/2
c=IN IP4 192.168.1.165


however, it did not work. When I  only  play a video rtp or a audio rtp, it works well.

so anyone knows what wrong with the sdp file , or does ffmpeg support playing audio and video rtp in one sdp file?

Ajay Choudary

unread,
Apr 18, 2017, 3:55:20 AM4/18/17
to discuss-webrtc
May be port binding issue, 

In your sample SDP 1234 -> audio RTP,  so 1235 is supposed to be Audio RTCP.

Better use only even ports for RTP audio/video and try again.

-Ajay

Chen Cong

unread,
May 25, 2017, 9:47:45 PM5/25/17
to discuss-webrtc
Thanks, it`s helpful.

在 2017年4月18日星期二 UTC+8下午3:55:20,Ajay Choudary写道:

xiang liu

unread,
May 27, 2017, 3:55:17 AM5/27/17
to discuss-webrtc
@chen cong   do you make this work?

在 2017年5月26日星期五 UTC+8上午9:47:45,Chen Cong写道:
Reply all
Reply to author
Forward
0 new messages